Flash via CAN

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AURIXuser
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hi Community!

I want to flash software via CAN on my AURIX TC3xx.
As far as I could figure out there are drivers available, e.g. https://www.vector.com/de/de/produkte/produkte-a-z/embedded-components/flash-bootloader/.
Is there any option to use the CAN BSL via pin 14.0 and 14.1 to bring the software simply into the flash?
The CAN BSL only writes the software into DSPR, but not into flash as far as I could figure out.

Thanks for your help!
AURIXuser

0 Likes
1 Solution
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Dear Users,

I have checked the CAN BSL is to load code into RAM instead of Flash. So maybe needs a program loaded to RAM and it then loads code from CAN into Flash.

https://www.infineon.com/dgdl/Infineon-AURIX_Flash_Programming_1_KIT_TC397_TFT-Training-v01_00-EN.pd...

There is no found AURIX application note for this purpose, however below application note is for your reference.

https://www.infineon.com/dgdl/Infineon-AP32269_XMC4000_CAN_BSL-AN-v01_00-EN.pdf?fileId=5546d4624933b...

AURIX supports both ASC & CAN protocols for the Bootstrap Loaders (BSL). It can be connected through port pin 14.0 & 14.1 or port pin 15.2 & 15.3 (ASC protocol only).

The BootROM provides mechanisms to load a user program via the selected interface by moving code into the Program Scratchpad RAM of CPU0 (CPU0_PSPR). The loaded code is started after exiting the BootROM.

User also need to configure the HWCFGx pins to enter the BSL mode.

 

dw

View solution in original post

0 Likes
3 Replies
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Dear Users,

For communication and data transfer to the target’s on-chip FLASH or external FLASH/OTP memories via DAP or JTAG, the devices UAD2pro/UAD2next/UAD3+ of the Universal Access Device-family are used. Moreover, UDE MemTool supports also device specific ASC or CAN bootstrap loaders as well as host-target communication via a RS232 host interface (COMx) or the K-Line interface.

https://www.infineon.com/cms/en/tools/aurix-tools/Flash-Tools/PLS/

dw

0 Likes
AURIXuser
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hi dw,

Thanks for your reply. DAP is the standard way to bring software into the flash, what I'm currently using. If doing via CAN bootstrap loader, the primary bootloader is hardware implemented in AURIX to bring the SW into RAM. There is no option to directly transfer to flash?! The Flash CAN bootloader is the secondary bootloader which needs some additional piece of software?

Thanks,
AURIXuser

0 Likes
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Dear Users,

I have checked the CAN BSL is to load code into RAM instead of Flash. So maybe needs a program loaded to RAM and it then loads code from CAN into Flash.

https://www.infineon.com/dgdl/Infineon-AURIX_Flash_Programming_1_KIT_TC397_TFT-Training-v01_00-EN.pd...

There is no found AURIX application note for this purpose, however below application note is for your reference.

https://www.infineon.com/dgdl/Infineon-AP32269_XMC4000_CAN_BSL-AN-v01_00-EN.pdf?fileId=5546d4624933b...

AURIX supports both ASC & CAN protocols for the Bootstrap Loaders (BSL). It can be connected through port pin 14.0 & 14.1 or port pin 15.2 & 15.3 (ASC protocol only).

The BootROM provides mechanisms to load a user program via the selected interface by moving code into the Program Scratchpad RAM of CPU0 (CPU0_PSPR). The loaded code is started after exiting the BootROM.

User also need to configure the HWCFGx pins to enter the BSL mode.

 

dw

0 Likes