Part Number: TMS320F2812
Hi,
I have a very general query targeting any Microcontroller in general and TMS320F2812 in specific. The queries are as following:
1) Consider a compiler output to be in COFF format. Now in order burn it to flash, it need to be converted to some suitable format like ASCII-Hex /Intel-Hex. As we know COFF contains sections and segments. Now OS can load data from .data/.bss sections and code from .text section. Now in ASCII-Hex /Intel-Hex format we don't have any sections so how a Micrcontroller/Processor (like C671x) will load data into ram and execute instruction from Flash (NOR).
2) How does a microcontroller know which part of the program (variables etc) need to loaded into RAM before jumping to main function??? how does it distinguish between data and instructions??? In short how a microcontroller loads variables from Flash (NOR burned with Intel-hex), who tell the microcontorller what to load in RAM and what to execute from flash.
Regards,
Aimal