Hello,
On a RM48 custom board want to use the external SDRAM together with FreeRTOS (approx. hdk setup)
Emif setting and test-routines are successful without FreeRTOS – with FreeRTOS any access from a (privileged) task leads to an abort, even when using the test function before any task creation /scheduler start.
Setup in halcogen (03.06.00)
This writes on sys_mpu.asm _mpuInit_
FreeRtos is also managing MPU, I don’t know if the settings of _mpuInit_ will be overwritten. However in os_port.c - prvSetupDefaultMPU( void ) is a MPU setup for FreeRtos.
There I tried some setups for the first configurable Region e.g.:
prvMpuSetRegion(portFIRST_CONFIGURABLE_REGION, 0x80000000, portMPU_SIZE_128MB | portMPU_REGION_ENABLE, portMPU_REGION_READ_WRITE | portMPU_REGION_DEVICE);
without getting the access.
So my question is how to setup the MPU/FreeRTOS for using the external SDRAM?
Thanks,
Andreas