S32K144 Boot Mode

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

S32K144 Boot Mode

5,507 Views
koehlerl
Contributor IV

Hello,

how can I change the Boot Mode from Flash to UART.

Witch Pins are used for select the Boot Mode? 

Thanks and Regard

Lutz K.

Tags (1)
0 Kudos
6 Replies

3,281 Views
tony_wu
Contributor I

Hello lukaszadrapa,

How to add RCHW, start address, delay and app key into my ap code?

I follow the release note to do, but s32k144 application doesn't work.

0 Kudos

3,281 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

there’s no in-built serial bootloader on S32K144. To support this requirement, it is necessary to use flash resident SW bootloader.

 

Currently there’s only Rappid bootloader which supports S32K144:

http://www.nxp.com/products/software-and-tools/run-time-software/rappid-initialization-for-power-arc...

 

Direct link to the bootloader:

https://www.nxp.com/webapp/Download?colCode=RAPPID_BOOTLOADER_UTILITY

 

The Rappid bootloader does not use a pin to tell the bootloader if bootloader or application should start.

After reset, the Rappid bootloader is always started. The bootloader starts to search for valid boot header (part of application image). See please user manual and release notes for details. There’s RCHW, start address, delay and app key in this section. If valid boot header is found, the bootloader waits for defined delay (value defined in boot header) – if Rappid Bootloader (application running on PC) sends a request for update during this delay then bootloader is started and we can update user application (or read the flash  memory or erase the flash memory). If the request is not received then user application is started.

 

If this bootloader is not sufficient for you, it is necessary to develop own bootloader. Here is an example of such bootloader:

http://www.nxp.com/assets/documents/data/en/application-notes/AN5319.pdf

http://www.nxp.com/assets/documents/data/en/application-notes-software/AN5319SW.zip

I wrote this for PowerPC devices but the principle is the same. I’m sharing this just to have clue how it works. If you write own bootloader, you can use any condition to start the bootloader (state of GPIO pin after reset, command received via serial interface, key in the flash memory…).

Regards,

Lukas

0 Kudos

3,281 Views
koehlerl
Contributor IV

Hello,

thank you for answering my question.

But I need some more Information:

I found this document (see attachment) to the RAppID Bootloader. Is it true for S32K144 too.

Has the S32K144 a Boot assist Module (BAM) ?

When yes, where can I find the protocol to communicate with the BAM ?

When I buy a brand new S32K144 is then the Rappid bootloader located in the Flash, or need I for the first programming the JTAG?

Best regards

Lutzr

Von: lukaszadrapa

Gesendet: Mittwoch, 17. Mai 2017 12:29

An: Köhler, Lutz <lutz.koehler@acd-antriebstechnik.de>

Betreff: Re: - Re: S32K144 Boot Mode

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: S32K144 Boot Mode

reply from Lukas Zadrapa<https://community.nxp.com/people/lukaszadrapa?et=watches.email.thread> in S32K - View the full discussion<https://community.nxp.com/message/906236?commentID=906236&et=watches.email.thread#comment-906236>

0 Kudos

3,281 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, latest version of Rappid bootloader supports also S32K144.

No, there's no BAM on S32K144. This device supports only boot from internal flash.

Flash on brand new S32K144 device is in erased state. Nothing is pre-programmed. Rappid bootloader must be programmed to the flash by JTAG.

Regards,

Lukas

0 Kudos

1,928 Views
bolei
Contributor II

hello Lukas, 

could the Rappid bootloader flashed to the chip via open-sda?

and, is there a link for me to download the "Rappid bootloader"?

regards, 

bo 

0 Kudos

3,281 Views
koehlerl
Contributor IV

Hello Lukas,

it is planned, that the S32K144 gets a BAM in the future?

Regards

Lutz

Von: lukaszadrapa

Gesendet: Mittwoch, 17. Mai 2017 13:11

An: Köhler, Lutz <lutz.koehler@acd-antriebstechnik.de>

Betreff: Re: - Re: S32K144 Boot Mode

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: S32K144 Boot Mode

reply from Lukas Zadrapa<https://community.nxp.com/people/lukaszadrapa?et=watches.email.thread> in S32K - View the full discussion<https://community.nxp.com/message/906239?commentID=906239&et=watches.email.thread#comment-906239>

0 Kudos