Other Parts Discussed in Thread: UNIFLASH, C2000WARE, SYSCONFIG
Hello,
I am currently developping a bootloader application. I am still in the requirement deifnition stage and I would like ask some questions before proceeding.
- I would like to know if there are examples similar to our application. We need a custom bootloader that will reside on flash instead of using a ROM bootloader. The communication peropheral will be MCAN or CAN-FD. I have seen that in flash examples on driverlib, there is a kernel, can this be used to be programmed in flash directly and adapt it to be used in our application? Also, I would like to know if the libraries found in flash tooling are compatible with the example if there is any.
- I would like to undestand better how the project should be distributed. What I had in mind is to have two separate CCS projects, one for bootloader and another for application. The booloader code will contain the flash entry point so whenever the device is reset, it will enter into bootloading state. The aplication code will be in a separate project which will be programmed in different sectors. However, I do not understand how to find the entry point of the application program as it will be different from the usual entry point 0x80000 if I am not mistaken. The entry point of application would be the first flash addres where the app resides? For instance, if the application starts at sector9, the entry point would be first addres of sector9?
- How should I manage the different .cmd files? Should they be the same and reserve the flash sector for app and bootloading or there should be two separate .cmd files? Also, if both bootlaoder and app need to upload code to RAM, how can i erase the RAM before jumping to a differnet code?
- How should I reset the device? I would like if possible to reset all the cofiguration prior to entering bootloader or application.
- We would like to have the posbility of updating the bootloader, is there any example where the code is put into ram, erase the bootloader sector and program the new bootloader?
- Is it possible to use uniflash in Linux or something similar? We would like also to be able of programming the bootloader + application from scratch for new devices.
Thanks,
David Capdevila
