adissida wrote on Tuesday, September 08, 2015:
Hi! New with FreeRTOS, and so far it is impressive! Love it.
Now I want to make use of the external SDRAM. I have a rutine that check the SDRAM and it works grate when using heap_3. I have also two leds blinking independently different freq. So freertos works grate. Now I add heap_5 and define the SDRAM start and size (0x7A12000, 16MB of SDRAM):
'#include “FreeRTOS.h”
'#include “task.h”
int main (void)
{
const HeapRegion_t xHeapRegions[] =
{
{ ( uint8_t * ) 0xD0000000UL, 0x7A12000 },
{ NULL, 0 }
};
void vPortDefineHeapRegions(xHeapRegions);
trvInitHercules();
xTaskCreate( trvBlinkMCULED, (const signed portCHAR *)"Blink MCU", configMINIMAL_STACK_SIZE, NULL, mainLED_TASK_PRIORITY1, NULL );
xTaskCreate( trvBlinkAlarmLED, (const signed portCHAR *)"Blink Alarm", configMINIMAL_STACK_SIZE, NULL, mainLED_TASK_PRIORITY2, NULL );
vTaskStartScheduler();
return 0;
}
The memory test in trvInit() passes, and then should leds start blinking, but no. I have followed all instructions that I found regardingn external SDRAM. What could be wrong?