esp-iot-solution icon indicating copy to clipboard operation
esp-iot-solution copied to clipboard

usb dongle cli is not working (AEGHB-1032)

Open inbarab opened this issue 8 months ago • 0 comments

Answers checklist.

  • [x] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • [x] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • [x] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

Version:v5.2.3

Espressif SoC revision.

esp32-s3

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

Development Kit.

esp32-s3 dev kit

Power Supply used.

USB

What is the expected behavior?

working on release 2.0 console should print prompt, echo input and print output

What is the actual behavior?

  1. esp_data_back define CFG_TUD_CDCACM does not exist, so, in effect, there is no output
  2. Command_Parse: data is a memory leak - only released when a new line is received
  3. Command_Parse: format_buf is a memory leak - never released
  4. Command_Parse: cInputIndex should be static, otherwise command only has one char all the time
  5. Command_Parse: extra debug printf left on line 53
  6. Command_Parse: does not echo input before line feed
  7. Command_Parse: copying 1024 byte buffer (cOutputString) into 256 byte buffer (data) on line 55:memcpy(data, (uint8_t*)cOutputString, strlen(cOutputString));

Steps to reproduce.

compile and run esp-iot-solution\examples\usb\device\usb_dongle as per instructions

Debug Logs.


More Information.

No response

inbarab avatar Mar 25 '25 15:03 inbarab