cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Guys, I am working on SPC584B-DISP Board.In this board i need bootloader option so that i am try to use example SPC584Bxx_RLA Bootloader Test Application for Discovery 2 .In this example download code from serial UART .

Ravi S
Associate II

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 ...

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
52 REPLIES 52
Ravi S
Associate II

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

ODOUV.1
ST Employee

Hello,

your problem 2 is known:

0693W00000KcgkWQAR.pngSo 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?

0693W00000KcgnaQAB.pngYour bootloader must be in Copy in RAM 0x00FC0000

Your application program must be in Execute from Flash 0x01000000

BRs,

-Olivier

Ravi S
Associate II

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

Ravi S
Associate II

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

Hello Sir,

the firmware updater documentation can be found in your project here:

0693W00000KcnQEQAZ.pngBRs,

-Olivier

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:

0693W00000KcnSUQAZ.pngBR,

-Olivier

I have that document sir .As per this document only i am doing but no result.

I have that document sir .As per this document only i am doing but no result.

I done this steps sir not forgot .

I attached the screenshot for your 0693W00000KcnZkQAJ.pngfor your reference.

ODOUV.1
ST Employee

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:

0693W00000Kco3WQAR.pngMCU 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