Other Parts Discussed in Thread: CONTROLSUITE
Hey all,
This falls under the umbrella of a general question about the bootloader. I was wondering about a few particular details and I didn't come across an answer in any documentation I had found.
1) When booting from external EEPROM using the bootloader is it assumed that the linker file is written to configure the MCU to run out of RAM only? My thinking is yes, but I couldn't find a definitive answer.
2) If the bootloader fails the micro will attempt to boot from flash. Would you normally produce a version of code to boot from Flash which would also setup the OTP registers to boot from an external device? I'm not really sure what limits or requirements are placed on the backup code in Flash, or how to best set the OTP registers.
3) Looking through the bootloader/boot ROM documentation in controlSUITE (C:\ti\controlSUITE\libs\utilities\boot_rom\2803x\2803x_boot_rom_v1\source\). I looked at the code provided for example I2C_Boot.c. Would the project you're compiling actually need to include the C code provided to setup the I2C bus? I thought the bootloader would bypass the need to write C code for configuring the I2C module. Or would that code go into the backup Flash image? I'm just a little confused about the code examples provided and what the purpose is. I thought you just needed to create a program that runs from RAM, and run the hex2000 utility to create the required hex file.
Just looking for some clarification on these points.