This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I just want to know how to do what BrandonAzbell suggests in the last paragraph of his first answer here: putting .lib functions into RAM - C2000 microcontrollers forum - C2000™︎ microcontrollers - TI E2E support...
I tried this but I am not really sure if it worked:
Hi,
I would like to tell you two things here.
Now, if you simply want to run(access in this case) FPUtables from the RAM using your Flash, you can use the following like Brandon mentioned. This goes into your linker command file.
FPUmathTables : LOAD = FLASHB, RUN = RAMLS5, RUN_START(_FPUmathTablesRunStart), LOAD_START(_FPUmathTablesLoadStart), LOAD_SIZE(_FPUmathTablesLoadSize), PAGE = 1
This simply loads all the Tables to Flash, and then copies into RAM. Now you can extern any table from your C code and it will be accessible to you. This method assumes that you are using Flash for running your program.
Now if you are running your program in RAM, then it's simple:
FPUmathTables : > RAMGS3, PAGE = 1
RAMGS3 is a global RAM section. You will need to see where your RAM section lies in the device and then define RAMGS3 appropriately.
Please let me know if you need further help.
Ritvik
Hi,
I understand that utilizing flash space isn't a good idea. I assumed that you ran your code either on Flash or on RAM, using a debugger.
I am not fully aware of the working of standalone mode. But I guess your concern with standalone mode is that it ignores Globals while initializing the space (I think so!!).
You can follow the second approach I suggested, but try putting your Tables in some other RAM section(other than global) which is not utilized and then run your program.
I am not sure if this will work because I need to test it myself. Only then can I give you a concrete solution.
Also, it would be great if you could send me a small sample code (or pseudo code) of what you are trying to in standalone mode. Probably I can help you better then.
Regards
Ritvik