Part Number: TMS320F280025C
Dear expert,
We are trying to run Delay_us() on RAM.
As I know this function is required to run on RAM.
After adding below pragma code, I saw that when I called DELAY_US() inside ISR running from Flash.
DELAY_US() still run on flash.
I have to also move ISR to run on RAM to make DELAY_US() run on RAM.
Is this a requirement moving ISR from Flash to RAM when calling RAM function inside?
May I grant your help for this?
# pragma CODE_SECTION (SysCtl_delay ,".TI.ramfunc")
#define DEVICE_DELAY_US(x) SysCtl_delay(((((long double)(x)) / (1000000.0L / \
(long double)DEVICE_SYSCLK_FREQ)) - 9.0L) / 5.0L)
ISR run on Flash => But Delay_us can't run on RAM

Move ISR to RAM => Delay_us can run on RAM

.map
Best Regards,
Eric Chen





