You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: