Part Number: TMS320F280049C
Hi Team,
Recently, I've been using 280049 to develop the bootloader, and I've fulfilled the program upgrading function in the bootloader. When switching from the bootloader to the app, I used the asm ("LB 0x00084002") command. When switching from the app to the bootloader, I used the watchdog to reset the chip. There are some questions I would like to ask you all.
For Bootloader and app, these two projects are stored in two independent sectors of FLASH and do not conflict with each other, but both projects use the same RAM memory area to store global variables during operation and files copied from FLASH to RAM code (ramfuncs). In this case,
1. Will there be a memory conflict on the RAM? If after power-on and switching from the bootloader to the app, do some global variables and codes (ramfuncs) stored in the RAM in the bootloader still exist? and is there any possibility of affecting the running of the app?
2. Do I need to clear the RAM before this switching?
3. After switching from the bootloader to the app, if I re-execute the c_int00 function to build the C language environment, will the c_int00 function clear the RAM (mainly the .bss and .ebss sections) to ensure that the memory is cleared before swtching to the app main()?
4. When bootloader and app use RAM, do they need to use different memory areas independently?
Kind regards,
Katherine