KW45 First Time Programming

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KW45 First Time Programming

Jump to solution
4,597 Views
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 Kudos
Reply
1 Solution
2,029 Views
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.

View solution in original post

0 Kudos
Reply
23 Replies
3,894 Views
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 Kudos
Reply
3,841 Views
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 Kudos
Reply
2,642 Views
cnew01
Contributor IV

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

0 Kudos
Reply