Bootloader on MPC5777C

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

Bootloader on MPC5777C

跳至解决方案
3,997 次查看
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 项奖励
回复
1 解答
3,932 次查看
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 项奖励
回复
5 回复数
3,972 次查看
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.pnglukaszadrapa_1-1643730095746.png

 


And regarding the second question:

lukaszadrapa_0-1643730021690.pnglukaszadrapa_0-1643730021690.png

 

Regards,
Lukas

0 项奖励
回复
3,958 次查看
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?

标记 (1)
0 项奖励
回复
3,951 次查看
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 项奖励
回复
3,944 次查看
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 项奖励
回复
3,933 次查看
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 项奖励
回复