KW45 First Time Programming

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KW45 First Time Programming

跳至解决方案
4,608 次查看
cnew01
Contributor IV

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?

0 项奖励
回复
1 解答
2,040 次查看
cnew01
Contributor IV

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.

在原帖中查看解决方案

0 项奖励
回复
23 回复数
3,895 次查看
cnew01
Contributor IV

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?

0 项奖励
回复
3,842 次查看
luis_maravilla
NXP Employee
NXP Employee

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;

0 项奖励
回复
2,643 次查看
cnew01
Contributor IV

I will clarify that LPUART0 TX and RX pins are accessible on this custom board through a header.

0 项奖励
回复