Bootloader on MPC5777C

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bootloader on MPC5777C

ソリューションへジャンプ
3,995件の閲覧回数
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,930件の閲覧回数
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,970件の閲覧回数
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,956件の閲覧回数
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,949件の閲覧回数
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,942件の閲覧回数
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,931件の閲覧回数
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 件の賞賛
返信