cancel
Showing results for 
Search instead for 
Did you mean: 

SPC560B54 FlexCAN bootloader

prashanth.mohan22
Associate III

Hi,

Actually now I'm working on the FlexCAN boot operation and I have few queries to be addressed to start over.

  1. I have this rudimentary question for an embedded engineer, sorry for it. how do I know the code length/size of my software?
  2. while pushing code on SRAM via FlexCAN boot, what should be the register value for PCONFx registers?
  3. In the 3rd step of FlexCAN boot sequence, how do I push my software to the SRAM? Please help me with the files or process or the sequence in which the code has to be pushed serially in CAN ID 0x013

Thanks for your time in advance.

Best Regards,

Prashanth Mohan

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello ,

You can find in the Reference Manual or in the SPC5Studio Tools suite

Best regards

Erwan

0690X000008vrzmQAA.png

View solution in original post

7 REPLIES 7
prashanth.mohan22
Associate III

My idea here is to flash SPC board directly via CANH, CANL pins.

Erwan YVIN
ST Employee

Hello ,

1) It should be the size of out.bin

0690X000008BhL0QAK.png

You can use this command to check the size of each functions

ppc-freevle-eabi-nm.exe -S -C --size-sort out.elf

400aa030 00000242 T vector52

400b0bb0 000002e2 T FlashCheckStatus

400ae050 000002f6 T can_lld_transmit

400af9c0 0000048c T spc_clock_init

400aed40 000005ee T updater_getData

400acb60 0000071c t can_lld_l1_handler

400ac3a0 000007b4 t can_lld_l0_handler

400ad360 00000c38 T can_lld_start

Which device do you use ?

3) to push your software in SRAM , you have to update the linker file.

For your information , we have some bootloader example by CAN in SPC5Studio Tools suite

SPC58ECxx_RLA Bootloader Application for Discovery

Best regards

Erwan

prashanth.mohan22
Associate III

Hi Erwan,

Very thanks for your response, I'm using SPC560B-DIS board. Do we have Bootloader Application for Discovery for SPC560Bxx??

Regards,

Prashanth

prashanth.mohan22
Associate III

Hi @Erwan YVIN​,

where can I find the elf analysis tool? say ppc-freevle-eabi-nm.exe that you have mentioned in your response

Thanks

Prashanth

prashanth.mohan22
Associate III

Hi @Erwan YVIN​ ,

Do we have any application note, or flow chart for SPC560B series on bootloader implementation to better understand the generated code?

Thanks

Prashanth

Hello ,

You can find the useful in the following directory :

c:\SPC5Studio\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.xxxxx\toolchain\bin\

Best regards

Erwan

Erwan YVIN
ST Employee

Hello ,

You can find in the Reference Manual or in the SPC5Studio Tools suite

Best regards

Erwan

0690X000008vrzmQAA.png