ESP32_ymodem_example icon indicating copy to clipboard operation
ESP32_ymodem_example copied to clipboard

Compiling/Linking with vscode/Platformio

Open JL1946 opened this issue 5 years ago • 0 comments

Hello: I've been trying to run compile and link your code in VSCode with the Platformio extension but not having any success. I made the following changes to the file:

  1. changed the name to main.c
  2. moved added the following includes: #include "../components/spiffs/spiffs_vfs.h" #include "../components/spiffs/spiffs_config.h" #include "../components/spiffs/spiffs.h" #include "../components/spiffs/spiffs_nucleus.h" #include "../components/ymodem/ymodem.h"
  3. Added #define CONFIG_SPIFFS_SIZE 0x16E360 (1.5 MB max file size)
  4. Not using wifi for the time

The compile works but the linker cannot link with the following errors:

.pioenvs/firebeetle32/src/main.o:(.literal.app_main+0x1c): undefined reference to spiffs_is_mounted' .pioenvs/firebeetle32/src/main.o:(.literal.app_main+0x78): undefined reference to vfs_spiffs_register' .pioenvs/firebeetle32/src/main.o:(.literal.app_main+0x7c): undefined reference to Ymodem_Receive' .pioenvs/firebeetle32/src/main.o:(.literal.app_main+0x84): undefined reference to Ymodem_Transmit' .pioenvs/firebeetle32/src/main.o: In function list$constprop$0': main.c:(.text.list$constprop$0+0x1ad): undefined reference to spiffs_fs_stat' .pioenvs/firebeetle32/src/main.o: In function app_main': main.c:(.text.app_main+0x9f): undefined reference to vfs_spiffs_register' main.c:(.text.app_main+0x16b): undefined reference to spiffs_fs_stat' main.c:(.text.app_main+0x1b3): undefined reference to Ymodem_Receive' main.c:(.text.app_main+0x252): undefined reference to `Ymodem_Transmit'

If possible, please try to port to vscode/platformio and reply back with configuration I should use. Thanks in advance for your help. Regards...

JL1946 avatar Apr 24 '19 17:04 JL1946