I am trying to program a custom KW45-based PCB for the first time. I tried using MCUXpresso. The J-Link could upload my program over SWD but when I tried entering debug mode the board halts at address 0x14816fdc. Further research has shown that the NBU for the Bluetooth coprocessor needs to be uploaded. I've tried AN13838, but my board cannot be discovered over UART. I've been looking into AN14003, but it's information is out of date with regards to the current SPSDK. What do I do?
已解决! 转到解答。
Closing this thread. There was a design error in the custom hardware that had a permanent pull up on the boot_config pin. Once removed, the issue was resolved and the NBU could be programmed as specified in AN14003.
I've tried following an14003 section 5 (omitting section 3) using the evk sb3. The one modification I made was setting
loader_info.partition_desc = PLATFORM_OtaGetOtaInternalPartitionConfig();
I'm still encountering the same error once merging the generated binary and the SB3. What would you reccomend I look into?
PLATFORM_OtaGetOtaInternalPartitionConfig returns internal partition configuration structure, what you could try is make the initialization manually, to ensure the internal flash is selected and the values start at 0.
Let me know if that worked for you.
OtaPartition_t Test_ota_partition =
{
/*start_offset*/ 0,\
/*size*/ 0,\
/*sector_size*/ 0,\
/*page_size*/ 0,\
/*internal_flash*/ true,\
/*spi_baudrate*/ 0,\
};
loader_info.partition_desc = &Test_ota_partition;