XMC4800 Firmware update

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

cross mob
User11870
Level 1
Level 1
First like given 5 replies posted Welcome!
Hello,
I am using XMC4800 for an EtherCAT slave module. Although we can update firmware via ASC Bootloader using Infineon's memtool, our users want to update firmware via EtherCAT FoE or, at least, USB device port. Is there any available FoE or USB solution?
I found that Infineon has an application note "Firmware update via SD card" (for XMC4500), where can I download the example code for this AN? I think I can modify this example for FoE, USB updating.
Thank you
0 Likes
10 Replies
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
0 Likes
lock attach
Attachments are accessible only for community members.
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Beside this you may need these files which are described in the application note.
0 Likes
User11870
Level 1
Level 1
First like given 5 replies posted Welcome!
Thank you, I will have a try.
0 Likes
User11325
Level 1
Level 1
Hello mophong,

If you don't mind sharing, what is your status on this?

I have been delegated the same task as you are trying to solve, namely application update via EtherCAT FoE.

What I have been thinking is a bootloader that can initiate EtherCAT in init mode, and depending on mode request, pre-op or boot, the bootloader will load the application (if pre-op mode was requested), or receive a new application (if boot mode was requested).

The way that DAVE's EtherCAT app init's is by loading the eeprom.h/flash first. Is there a way to load a truely minimalistic EtherCAT where only FoE mailbox is provided for the bootloader, and then a full initialization is done by the application when it is loaded?

Regards Mathias
0 Likes
MichaelIFX
Employee
Employee
50 replies posted 25 replies posted 10 replies posted
Hi,
please find the example on Firmware update via FoE
ETHCAT_FWUPDATE_SSC_APPLICATION_XMC48

inside DAVE or from the example download side:
http://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html

Make sure to have a complete understanding of this example first:
ETHCAT_SSC_XMC48


BR

Michael
0 Likes
MichaelIFX
Employee
Employee
50 replies posted 25 replies posted 10 replies posted
On the example download page and inside DAVE you als find examples for firmware update via USB:

USB Firmware update XMC acting as device: USBD_MS_BOOTLOADER_IAP_XMC47

USB Firmware update XMC acting as host: USBH_MS_BOOTLOADER_IAP_XMC45

BR

Michael
0 Likes
Not applicable
Hello

I wrote TFTP loader for 4500. I suppose it can adapted for 4800 too.
Please see https://www.infineonforums.com/threads/4509-TFTP-Loader

Vladimír
0 Likes
Not applicable
wow. so many solutions. its very fantastic thread.. learning things 🙂
0 Likes
User11870
Level 1
Level 1
First like given 5 replies posted Welcome!
Just leaving the thread for period and now we have many solutions here!
Thanks MichaelIFX for the very new FoE update example, I should try it soon.
So far I have solved USB update method including:
- USB Mass storage based on XMC4500 example
- USB VCOM + Windows host application (written in C#)
If anyone wanna try the USB VCOM solution, I will share it.
Cheers,
0 Likes
User13960
Level 3
Level 3
First like received
Hi mophong,

I know a long time has passed since your last post but is it possible to try your USB VCOM + Windows host application (written in C#) ?

Thanks very much
PHAB
0 Likes