tostmann / busware-esp32

Apache License 2.0
1 stars 1 forks source link

Rebuild of USB Serial example not successful #1

Open chri-kai-in opened 1 month ago

chri-kai-in commented 1 month ago

Hello,

i tried to build the USBserial example in my platformio environment I did perform the following steps.

1) clone repository on top-level "busware-esp32" 2) open subfolder "Simple/USBSerial" in Platformio 3) activate environment "busware-eul-c3-serial-transparent" in platformio.ini, as i want to build this 4) awaited re-configuration of project in platformio 5) started "build" within activated build target.

Unfortunately build was not succesful -> error message "pins_arduino.h: No such file or directory".

FRom what i found during net search this might be linked to board and board_build.variant definition in platformio.ini.

With this i found folder "busware-esp32/variants" to be missing in the repository, It is referenced in platformio.ini for board variants but not present in the repository.

Side finding: placement of "#if defined (CONFIG_IDF_TARGET_ESP32C3)" ifdef block seems to conflict with #if...#elif...#endif for definition of MYNAME

Would you please be so kind and provide the "busware-esp32/variants" folder as well in your repository ?

Thank You very much !

tostmann commented 1 month ago

sorry, the missing directory has been pushed

chri-kai-in commented 1 month ago

Thank You !

Which library do you use to provide the "AsyncTCP.h" ? I have chosen "AsyncTCP" with which the build works, but i am not sure it is the correct one, as there are multiple libraries providing this functionality.

After some changes in main.ino and pins_arduino.h i am able to compile and build the sample without warnings ( mostly re-definition of existing defines from Arduino framework, which are rooted in the pins_arduino.h)

Unfortunately upload seems not to work properly, after adjusting your scripts (merge_firmware.py) to my wndows environment i was able to flash my EUL USB Stick, but upload process hangs after 100% writing the nvram. Hash verification is not reported and hard reset is not executed. In the following the stick does not communicate on serial connection, and need to be flashed with "--no-stub" option, but can be salvaged with upload of original firmware, provided in the repository.

As i wanted to change the serial transparent SW and de-activiate the blue status LED after first 50 (or something similar) blinks - is the example you provide in the repository the latest release for serial tranparent firmware ?

Would be OK if not, as it is example code, i just wanted to know if my attempts to remove the LED blinking can be succesful.