Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling/Linking with vscode/Platformio #2

Open
JL1946 opened this issue Apr 24, 2019 · 0 comments
Open

Compiling/Linking with vscode/Platformio #2

JL1946 opened this issue Apr 24, 2019 · 0 comments

Comments

@JL1946
Copy link

JL1946 commented Apr 24, 2019

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant