Part Number: TMDSCNCD28335
Hi,
I've an issue using the DELAY_US macro in my project.
It's just a smal, simple blinking project to get the enviromnent working.
int main(void)
{
int i = 0;
InitSysCtrl();
Gpio_select();
DINT;
InitPieCtrl();
IER = 0x0000;
IFR = 0x0000;
InitPieVectTable();
for (i=0; i<10;i++)
{
GpioDataRegs.GPATOGGLE.bit.GPIO31 = 0x1;
DELAY_US(10000L);
}
return 0;
}
When I use the linker file 28335_RAM_lnk.cmd the DELAY_US macro is working.
But using the linker file F28335.cmd the execution of the macro leads to an illegal ISR function:
//
// ILLEGAL_ISR - Illegal operation TRAP
//
interrupt void
ILLEGAL_ISR(void)
{..}
Where is my fault?
I'm using the following components:
Windows 10 Enterprise 64Bit Build 17763
Code Composer Studio 11.1.
C2000 Compiler TI v21.6.0.LTS
For the F28335:
Docking-Stn USB-EMU TXN100
F28335 control card release 2.2