ESP32_ymodem_example
ESP32_ymodem_example copied to clipboard
Compiling/Linking with vscode/Platformio
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:
- changed the name to main.c
- 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"
- Added #define CONFIG_SPIFFS_SIZE 0x16E360 (1.5 MB max file size)
- 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...