Part Number: TMS320F28069M
Other Parts Discussed in Thread: C2000WARE
Hi folks,
I'm working on a project with the LaunchPadXL (Ver:1.2)
My goal is to run the program from flash but use one sector of the flash to store user settings in it.
If i run the program in debug mode on the ram, it works perfectly. Every time i tried to run it from flash memory, as soon as i call one of the flash api function (erase and write) the program jumps to a location outside of program code (0x3ff4fa).
What i'm doing so far:
added
Flash28_API:
{
-lFlash2806x_API_wFPU_Library.lib(.econst)
-lFlash2806x_API_wFPU_Library.lib(.text)
} LOAD = FLASHD,
RUN = RAML0,
LOAD_START(_Flash28_API_LoadStart),
LOAD_SIZE(_Flash28_API_LoadSize),
RUN_START(_Flash28_API_RunStart),
PAGE = 0
to command file
used
#pragma CODE_SECTION(init_flash, "ramfuncs");
to run this functions from ram (init_flash for delay_us, which works fine)
I did NOT lock the csm, the passwords are all "FFFF".
In my understanding, i have to copy the flash api into ram (what i'm trying to do with the command file entry).
But i don't know if i have the actual library or only the symbol map. If my library is just the symbol map, were do i get the real library?
The library is copied from C2000Ware v3.01.00.00.
Is there more i can try? Do i have to install a extern flash memory to save user defined variables?