Hi everybody,
at the moment I am trying to get a working standalone version of the RTSC SWI template included in SYS/BIOS 6.30. I am using CCSv4.2.
I made a new project file with the SWI example. When I am debugging the example everything is working as expected.
After generating an AIS .bin file with AISGen tool, I flash the binary to NAND and reboot OMAPL138. When connecting to ARM target I see that the program counter stays in the area where the interrupt vector table is present. The address is 0xFFFF0004 => undefined exception.
After an ARM CPU reset the program counter (PC) changes to an address where _c_int00 is stored. After that a couple of initialization commands for task, clk, semaphore, swi and so on [these threading modules are part of this example] are made. But it seems that the PC does not reach main(). Instead somewhere during initialization an undefined exception occurs and put the PC to 0xFFFF0004 address, where the PC remains in an endless while loop.
AISgen config should be allright (ROM version, DDR2 and PLL config) [same settings which are used in uboot]. I tried different platforms "OMAPL138EVM", "Hawkboard with ROM 1.0", "Hawkboard with ROM 1.1", everytime with the same behaviour.
Can anybody give me some advice or hints what could be responsible for this.
I actually need only an easy SWI example, which works when flashing to NAND, in order to be able to set the ARM CPU in privileged mode for further configuration of SYSCFG registers.
I hope somebody can help me. Thanks and best regards
Gregor