Tool/software:
How can I put all my boot loader source code into RAM and run them in RAM during erasing Flash? During erasing Flash, my boot loader still need to receive message from CAN bus and send data to CAN bus.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
How can I put all my boot loader source code into RAM and run them in RAM during erasing Flash? During erasing Flash, my boot loader still need to receive message from CAN bus and send data to CAN bus.
Hi Rick,
The bootloader code runs from RAM only. Once the SBL has begun execution you can erase the flash as SBL runs from RAM, But once you erase the flash it will erase SBLalso.
my boot loader still need to receive message from CAN bus and send data to CAN bus.
Yes this will still be possible. If the SBL is running it will continue to send and receive the CAN messages.
The boot loader that I said is not TI SBL is the boot loader of mine. I needs to use my boot loader to erase my application. But when my boot loader is erasing my application, the Flash is busy and boot loader still need to get source code from Flash to run. So I want to put all my boot loader into RAM and then to erasing my application. I want to use the following RAT. But how can I know I am using RAT not others?
The boot loader that I said is not TI SBL is the boot loader of mine. I needs to use my boot loader to erase my application. But when my boot loader is erasing my application, the Flash is busy and boot loader still need to get source code from Flash to run.
Hi Rick, Do you have XIP from flash in your bootloader code? If no then what i said earlier would still hold true? Yes you can use RAT but what I am not able to understand is why is it you need to use RAT in this case?
How could I check my boot loader code has XIP from flash? I need to put all my boot loader into RAM and run the boot loader in RAM. It will be faster and it can erase flash when boot loader is running.
How could I check my boot loader code has XIP from flash?
You can look at syscfg or linker file if the attribute of flash is set to execute.
But in my opinion it will be from RAM as SBL examples from TI all are execute from RAM, if you have followed the reference example it will be from RAM
Could you help check my .cmd file and .syscfg file to make sure my boot loader code has XIP from flash?
It seems that I cannot put it here. It seems that it has some problem. Can send it to you by your email address? Thank you!
Hi Rick,
Please reach out to your local sales executive and have him share it to me. I cannot share my email id here.