-
Notifications
You must be signed in to change notification settings - Fork 88
Description
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