Bootloader on MPC5777C

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

Bootloader on MPC5777C

Jump to solution
1,637 Views
berat24
Contributor III

Hello everyone,

I have two different questions about bootloader on MPC5777C.

I generated s-record file and then converted it to 64-bit boundary successfully.

I would like to learn when I should set SIU_RSR[BOOTCFG] pins as 01 for serial boot.

Also, Could you inform me about when I start to send start adress, code length and code data after reset.

Sincerely.

Berat.

0 Kudos
Reply
1 Solution
1,572 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

It is possible to have more than one DCF record that writes to the same DCF client. DCF records are processed sequentially in the order they are read from flash memory. The later record overrides a DCF client value set by a previous record. Notice that not all DCF clients allow overwrites (UTEST Miscellaneous can be overwritten).
You can write the DCF records one by one until you reach the end of UTEST.

There’s also note:
“Be careful when programming the UTEST Miscellaneous,
XOSC ANA, and VREG Enable DCF clients. DCF records are
processed sequentially in the order they are read from flash
memory. DCF records that control actions such as enabling/
disabling voltage regulators or detectors should not be
programmed more than once with different values.”

Regards,
Lukas

View solution in original post

0 Kudos
Reply
5 Replies
1,612 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Berat,
the BOOTCFG pins are latched at the end of the reset cycle. So, you should externally force the pins to required state, reset the MCU and the MCU will start in serial boot mode after reset release.
Notice that BOOTCFG pins have effect only in legacy mode (can be changed by Miscellaneous DCF record, legacy mode is default) and when life cycle is different than "In Field".

lukaszadrapa_1-1643730095746.png

 


And regarding the second question:

lukaszadrapa_0-1643730021690.png

 

Regards,
Lukas

0 Kudos
Reply
1,598 Views
berat24
Contributor III

Dear @lukaszadrapa 

Firstly, I appreciate to you.

I would like to ask one more question.

Is there any way where my mcu jumps to bootloader mode while my user application is running? What I mean by this is that can I make my mcu jump to boot assist module without requiring reset and do serial boot load?

Tags (1)
0 Kudos
Reply
1,591 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

No, this is not allowed. If it is a requirement, the only option is to develop own flash resident bootloader.

Regards,

Lukas

0 Kudos
Reply
1,584 Views
berat24
Contributor III

Dear @lukaszadrapa

Thank you again for your kind response.

As far as I understood, UTEST flash can be programmed once. Therefore, I would like ask you how many times I can update DCF miscellaneous record? 

0 Kudos
Reply
1,573 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

It is possible to have more than one DCF record that writes to the same DCF client. DCF records are processed sequentially in the order they are read from flash memory. The later record overrides a DCF client value set by a previous record. Notice that not all DCF clients allow overwrites (UTEST Miscellaneous can be overwritten).
You can write the DCF records one by one until you reach the end of UTEST.

There’s also note:
“Be careful when programming the UTEST Miscellaneous,
XOSC ANA, and VREG Enable DCF clients. DCF records are
processed sequentially in the order they are read from flash
memory. DCF records that control actions such as enabling/
disabling voltage regulators or detectors should not be
programmed more than once with different values.”

Regards,
Lukas

0 Kudos
Reply