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.
Solved! Go to Solution.
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
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".
And regarding the second question:
Regards,
Lukas
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?
No, this is not allowed. If it is a requirement, the only option is to develop own flash resident bootloader.
Regards,
Lukas
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?
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