Other Parts Discussed in Thread: HALCOGEN
Hello,
I have a Hercules RM48 HDK devboard. I created a HALCoGen FreeRTOS project for it. I did not change any HALCoGen default settings. Then I added code to create 1 task, followed by code to enable the scheduler (vTaskStartScheduler). The task code simply implements a while (1) loop toggling an LED every second. This code works and the LED flashes at the expected rate.
In the task code, I then added a call to pvPortMalloc(20 bytes) prior to entering the while (1) loop. When the code runs it aborts with a prefetch error. As soon as I step into pvPortMalloc() with the debugger the prefetch occurs.
Note that calls to pvPortmalloc() succeed when called from the startup code (outside of the task, before calling xTaskCreate).
Can anyone shed some light on this? I zipped up the entire CCS project including my changes (see apptest.c) for your inspection.4380.halcogen_48L952.zip
Thank you,
Keith