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.
Hi champs,
We use header file to know library function prototype and call the functions in flash memory.
Is there any method we can copy specific library functions from flash to RAM and execute it? (not use .TI.ramfunc method)
Regards,
Luke
Luke,
Take a look at the final post on this thread, you can use binit tables that will get auto loaded before .main executes(no mem copy needed). Let me know if this solves your issue.
Best
Matthew
Matthew,
I use led blinky example project to test this boot-time copy table method, it works well.
One question, when I use this method and load .out file into CPU2, I find that CPU2 will not run to main() automatically. I have to do CPU Reset -> Restart and then CPU2 stops at main() function. Do you know the reason please?
Regards,
Luke
Luke,
CPU1 controls when CPU2 comes out of reset, so you will need to run a small bit of code from CPU1 to release it. There may be a GEL command to take care of this as well while debugging.
Best,
Matthew
Matthew,
In CCS debug mode, we don't need to take care when CPU2 comes out of reset, right?
Speaking of my question, if I don't use boot-time copy table, CPU2 will run to main() automatically when I finish code loading. However, CPU2 will not run to main() if using boot-time copy table, I am curious what causes this difference?
Regards,
Luke
Luke,
I need to loop in some others, please give us a few days to respond.
Best,
Matthew
Hi Luke,
I was unable to recreate the issue. I loaded the dual core led Blinky example with ramfuncs using the BINIT, I see CPU2 is run till main immediately after loading the .out.
Have you set any breakpoints on the CPU2 side, or is main included in the ramfuncs section?
Regards,
Veena
Veena,
I try the example again today but I cannot reproduce that situation I faced, the CPU2 run till main function after loading the code, I don't know what was happening then.
Anyway, thanks for your help.
Regards,
Luke