I’m attempting to get a simple led blinker up and running on a msp430f5529 thats on the the TI AFE4490 Eval board.
When I try to create a task the system hangs.
I’m pretty sure I have clocks and such configured correctly. If I blink leds without creating a task it works and I used blinking leds to narrow down where in the FreeRTOS code things were dying.
I tracked the hang down to this line 113 in heap_1.c
/* Ensure the heap starts on a correctly aligned boundary. */ pucAlignedHeap = ( unsigned char * ) ( ( ( portPOINTER_SIZE_TYPE ) &ucHeap[ portBYTE_ALIGNMENT ] ) & ( ( portPOINTER_SIZE_TYPE ) ~portBYTE_ALIGNMENT_MASK ) );
If I specify a configTOTAL_HEAP_SIZE that’s > 560 bytes then this line crashes.
Using a heap size of 512 bytes allows it to get further on but then I hit an ASSERT in tasks.c at line 518.
/* Check the alignment of the calculated top of stack is correct. */ configASSERT( ( ( ( unsigned long ) pxTopOfStack & ( unsigned long ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
So I don’t seem to have something set right in my memory setup. The FAQ says that if creating tasks hangs then it most likely related to the tick interrupt. I can’t absolutely say that the tick timer is working but the interrupt vectors in the ti-txt file look correct.
I’m using Code Composer Studio 5.5.0.00077
Any info or suggestions to try are welcome