esp-iot-solution
esp-iot-solution copied to clipboard
usb dongle cli is not working (AEGHB-1032)
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?
- esp_data_back define CFG_TUD_CDCACM does not exist, so, in effect, there is no output
- Command_Parse: data is a memory leak - only released when a new line is received
- Command_Parse: format_buf is a memory leak - never released
- Command_Parse: cInputIndex should be static, otherwise command only has one char all the time
- Command_Parse: extra debug printf left on line 53
- Command_Parse: does not echo input before line feed
- 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