So we just got some TMS570 dev sticks (with the TMS570LS20216 MCU) and we're trying to run some benchmark code.
I'm starting with the demo software that came with it, and have just modified it. However, the code fails because I can't malloc. To simplify, I added the following line as the first line of main (in sys_main.c)
testmalloc = malloc(8*sizeof(char));
However, when I actually try to run it I end up in the undefined interrupt loop and when I look at the debugger I see several assembly lines that map to _undefined.
Here's the disassembly in the debugger for main:
0x00024398: E92D4008 STMFD R13!, {R3, R14}
0x0002439C: E3A00008 MOV R0, #8
0x000243A0: EBFFF25C BL _undefined
0x000243A4: E59FC150 LDR R12, _undefined
0x000243A8: E58C0000 STR R0, [R12]
0x000243AC: EBFFEA27 BL _undefined
0x000243B0: E3A00004 MOV R0, #4
0x000243B4: EBFFD701 BL _undefined
0x000243B8: EBFFEA24 BL _undefined
0x000243BC: EF000004 SWI #4
0x000243C0: EBFFEDDF BL _undefined
0x000243C4: E59F0138 LDR R0, _undefined
0x000243C8: E59F2130 LDR R2, _undefined
0x000243CC: E3A01008 MOV R1, #8
Any ideas on what I'm doing wrong? Do I need to use a specific malloc call that I don't know about? Is there something in the demo project that sets a configuration that doesn't work for this?
I'm pretty lost right now, so any help would be appreciated.