Hi all!
I am preparing the code structure for my device. My device has 2 C28 cpus and 1 arm cortex as connectivity manager. I dont know if I should care about each cpus code files but what I assume is that eventually I will have one binary or hex file for my appclication code (all 3 cpus). I can write this app code first with programmer and later update it with bootloader via modbus tcp and/or RS485.
So, I attached a diagram below about what i need.
I will have 2 app firmware which are stored in the flash in the different flash slots or segments. But lets say I might have n firmware to generallize and n flash segments.
After power-on or reset I want my cpu to run the start up code. This start up code will check which app firmware will be used and then do the crc check for this firmware. If crc is ok it will run the app if not it will run the boot loader. Boot loader is to load new app firmware to flash memory. It will load via tcp modbus and/or rs485.
What is the easiest way to do it?
Where can I start?
Which docs, app notes should I read?
At first glance i though it makes sense to create 2+n css projects. So one project for each app firmware, startup code and bootloader. Then I will add crc info to each elf file and conver them to a binary or hex file. Then I will write each file to different memory locas with flasher or programmer. Is it true approach?
Also I think there are some integrated bootloader code which is stored in the rom. Are they able to install app firmware via tcp modbus or rs485?
Any kind of help, hint and clue would be really appreciated. Thanks in advance.
cheers,
