Programming the S32K144 using the J-Link Commander CLI

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

Programming the S32K144 using the J-Link Commander CLI

Jump to solution
1,020 Views
vladimirk
Contributor I

Hi,

I am using the S32K144 MCU for a project which requires the MCU to have a bootloader placed at the beginning of flexNVM. The project also requires that I use CMake and build from the command line. I have successfully compiled and built my bin and elf files and now I have a question about flashing the firmware onto the board.

I need to use the J-Link software to flash, particularly the J-Link Commander CLI tool. I was wondering what are the correct steps for doing this (what are the commands that I need to send) to avoid accidentally locking (bricking) the device if I skip some steps. 

It would also be great to know if there are any additional step when also flashing the application firmware onto the board. Is there any difference when flashing for the first time and reflashing after I already have the bootloader and application firmware on the device. 

The bootloader firmware can be either .elf or .bin, but the application firmware is .bin. 

The memory map layout is the following:

- 0x0 - 0x400  -> vector table of bootloader

- 0x400 - 0x410 -> flash configuration of bootloader (This should be unlocked, I am not using any memory partitions)

- 0x1000 - 0x7FFFF (end of flash) -> application binary

- 0x10000000 (start of flexNVM) - 0x10002000 -> bootloader text section

Thanks in advance!

0 Kudos
Reply
1 Solution
994 Views
RomanVR
NXP Employee
NXP Employee

Hello @vladimirk 

Please refer to "S32Kxxx"  documentation provided by SEGGER, where you can find valuable information about programming via J-Link. This includes detailed instructions for using the J-Link commander sequence and important considerations to avoid bricking the device by unintentionally activating readout protection of the internal flash.

Please let me know if this information is useful and if you have more doubts.

- RomanVR.

 

Best Regards!

View solution in original post

0 Kudos
Reply
1 Reply
995 Views
RomanVR
NXP Employee
NXP Employee

Hello @vladimirk 

Please refer to "S32Kxxx"  documentation provided by SEGGER, where you can find valuable information about programming via J-Link. This includes detailed instructions for using the J-Link commander sequence and important considerations to avoid bricking the device by unintentionally activating readout protection of the internal flash.

Please let me know if this information is useful and if you have more doubts.

- RomanVR.

 

Best Regards!
0 Kudos
Reply