2022-03-10 04:07 AM
In this I can able to download bin file from UART next step jump to app in this step not working if any one have idea please help .......
Thanks advance ...
2022-03-15 04:08 AM
Yes sir. I want to flash the SPC584B from other MCU(STM32 ) via UART
I explain one more time .
I have two MCU One is SPC584b-Disp board other one is STM32 or some other MCU.
I what to send bin file from STM32 to SPC584B-Disp via UART if i have any update .SPC584B-Disp board need bootloader code after restart wait for 5 s that time if any code available send the new .bin file from STM32 to SPC5 board via UART. Bootloader need to write code into the flash once completed jump to new code this is i want sir .
That's why i try to use SPC584Bxx_RLA Bootloader Test Application for Discovery 2 example code for my application I am facing above mention issue.
Pls try to give some idea to solve this issue .
Thanks regards
Ravi.S
2022-03-15 06:38 AM
Hello,
your problem 2 is known:
So you have to use option Copy in RAM
(because 0xFC0000 and 0x1000000 are in same partition0)
Then you enter into problem 1 ...
you write binary in flash at 0x100000 but it does not start
Did you check your application program to generate this binary was configure to run from 0x1000000?
Your bootloader must be in Copy in RAM 0x00FC0000
Your application program must be in Execute from Flash 0x01000000
BRs,
-Olivier
2022-03-15 08:49 PM
Hi Olivier sir,
Thanks for your replay i will check and update ASAP.
But what is the main difference between Load in RAM and Copy in RAM if you have any documents pls share with me.
Thanks regards
Ravi.S
2022-03-15 10:38 PM
Hi sir,
As per your suggestion I done following thinks
1.Load the bootloader code into address 0x00FC0000 using Copy in RAM method.
2.Using external MCU send following data to SPC584B-DISP board.
Step 1:-
External MCU Send Password(FE ED FA CE CA FE BE EF) to SPC5 MCU. SPC5 MCU once receive password and compare and response(00 00 00 01 CA FE BE EF) ack is OK.
Step 2:-
External MCU Send Bin file size(00 00 00 00 00 00 4F 38) to SPC5 MCU.SPC5 MCU echo the bin size to External MCU OK.
Step 3.
External MCU Send bin file 8 byte at a time .SPC5 MCU receive data and write into flash(0x01000000) and echo response to External MCU OK.
Step 4:-
Final step Jump to app not Happening.
If I make any mistake please let me know.
Thanks
Ravi.S
2022-03-16 01:18 AM
Hello Sir,
the firmware updater documentation can be found in your project here:
BRs,
-Olivier
2022-03-16 01:22 AM
Hello Sir,
may be you forgot this step?
Step0:
When you generate your application binary, you must generate it to run from flash at address 0x01000000:
BR,
-Olivier
2022-03-16 01:29 AM
I have that document sir .As per this document only i am doing but no result.
2022-03-16 01:30 AM
I have that document sir .As per this document only i am doing but no result.
2022-03-16 01:34 AM
I done this steps sir not forgot .
I attached the screenshot for your for your reference.
2022-03-16 02:30 AM
Thank you for your confirmation,
Looking deeper in document and in code, It seems to be the normal behavior.
It is explained in document in step3:
MCU must be restarted after programming to enter into new program, because the jump to new program is not called at end of programming.
Best Regards,
-Olivier