Porting LM3S8962 demo to LM3S9B92

tim124 wrote on Sunday, August 23, 2009:

Im currently trying to port the Luminary 8962 demo to work with the new 9B92 dev boards. I know there are differences in clocking and io, and no LCD but so far it wont even make it to main. Ive changed all the paths to point to the newest driverlib files and changed the target device in keil but so far no luck. Stepping through in debug i notice that it loops for a long time in the top of "vPortSVCHandler" with R0 counting up and up. Finally it gets stuck at 0x00000106 shown below.

0x00000104 E7FE      B        __scatterload_rt2_thumb_only (0x00000104)
0x00000106 E7FE      B        0x00000106

Anything else i should be changing?

tim124 wrote on Sunday, August 23, 2009:

I’m using FreeRTOS V5.4.2

edwards3 wrote on Sunday, August 23, 2009:

It does not sound like your problem is FreeRTOS related if you are not even getting as far as main(). FreeRTOS does not require any special code in the startup, but it does require the vector table to be populated with the FreeRTOS SVC, PendSVC and SysTick interrupt handler.

I presume you have some example code for the 9B92 from TI? Can you use the start up code from that?

tim124 wrote on Monday, August 24, 2009:

I had always though luminary kept the vector tables the same will all their micros but I will have to check as this new device has a lot more features.

tim124 wrote on Monday, August 24, 2009:

The example 9B92 startup files have a few extra vectors at the bottom of the table for the new peripherals. I’m guessig this could be making the difference.
I’ll give it a try at a more reasonable hour…

tim124 wrote on Tuesday, August 25, 2009:

Yep, the new 9000 series have a longer vector table than all the 1000-8000 parts which needs copying in. This fixed the issue. I swapped a few IO definitions and now I have most of the demo working!