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

RSPIF not supported #98

Open
mcuxmx opened this issue Dec 27, 2020 · 1 comment
Open

RSPIF not supported #98

mcuxmx opened this issue Dec 27, 2020 · 1 comment

Comments

@mcuxmx
Copy link

mcuxmx commented Dec 27, 2020

I use "internal_kvstore_with_spif.json" as the bootloader configuration file. Then change
"target.components_add": ["SPIF"],
for
"target.components_add": ["RSPIF"],
I found out that SPIFReducedBlockDevice.cpp was not compiled, and there was a link error.

log:

Link: mbed-bootloader-NUCLEO_F412ZG
BUILD/NUCLEO_F412ZG/GCC_ARM-RELEASE/mbed-os/features/storage/system_storage/SystemStorage.o: In function mbed::BlockDevice::get_default_instance()': /home/user/mbed/mbed-bootloader/./mbed-os/features/storage/system_storage/SystemStorage.cpp:111: undefined reference to SPIFReducedBlockDevice::SPIFReducedBlockDevice(PinName, PinName, PinName, PinName, int)'
BUILD/NUCLEO_F412ZG/GCC_ARM-RELEASE/mbed-os/features/storage/system_storage/SystemStorage.o: In function SPIFReducedBlockDevice::~SPIFReducedBlockDevice()': /home/user/mbed/mbed-bootloader/./mbed-os/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.h:59: undefined reference to vtable for SPIFReducedBlockDevice'
collect2: error: ld returned 1 exit status
[ERROR] BUILD/NUCLEO_F412ZG/GCC_ARM-RELEASE/mbed-os/features/storage/system_storage/SystemStorage.o: In function mbed::BlockDevice::get_default_instance()': /home/user/mbed/mbed-bootloader/./mbed-os/features/storage/system_storage/SystemStorage.cpp:111: undefined reference to SPIFReducedBlockDevice::SPIFReducedBlockDevice(PinName, PinName, PinName, PinName, int)'
BUILD/NUCLEO_F412ZG/GCC_ARM-RELEASE/mbed-os/features/storage/system_storage/SystemStorage.o: In function SPIFReducedBlockDevice::~SPIFReducedBlockDevice()': /home/user/mbed/mbed-bootloader/./mbed-os/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.h:59: undefined reference to vtable for SPIFReducedBlockDevice'
collect2: error: ld returned 1 exit status

[mbed] ERROR: "/usr/bin/python3" returned error.
Code: 1
Path: "/home/user/mbed/mbed-bootloader"
Command: "/usr/bin/python3 -u /home/user/mbed/mbed-bootloader/mbed-os/tools/make.py -t GCC_ARM -m NUCLEO_F412ZG --profile release --source . --build ./BUILD/NUCLEO_F412ZG/GCC_ARM-RELEASE -c --artifact-name mbed-bootloader-NUCLEO_F412ZG --app-config configs/internal_kvstore_with_rspif.json"
Tip: You could retry the last command with "-v" flag for verbose output

@teetak01
Copy link
Contributor

Hi @mcuxmx is this driver compiling with normal Mbed OS build? Note that the bootloader is baremetal build, so it needs to mention explicitly all the components needed, so you might need to add rspif also as a new component.

https://github.com/PelionIoT/mbed-bootloader/blob/master/configs/internal_kvstore_with_spif.json#L16-L18

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

2 participants