This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM46L852: FreeRTOS + MPU - Disabling MPU makes me crash

Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN

Hi!

I'm trying to use my RM46 with FreeRTOS (halcogen) and the MPU.

Currently, when I try to start the scheduler, the prvMpuDisable function crashes my system: I get stuck in the undefEntry.

Where my code ends up:

The line that makes my code crash inside portASM.asm

Do you have any idea what could cause this?

Additional information:

Here's my CCS configuration

Here's an export of the System Register taken after the fault occurred

521177 13
R System_Registers_CP15_ID_CODE 0x0000000B 0x411FC143
R System_Registers_CP15_MAIN_ID 0x0000000B 0x411FC143
R System_Registers_CP15_CACHE_TYPE 0x0000000B 0x8003C003
R System_Registers_CP15_TCM_TYPE 0x0000000B 0x00010001
R System_Registers_CP15_MPU_TYPE 0x0000000B 0x00000C00
R System_Registers_CP15_MULTIPROCESSOR_ID 0x0000000B 0x00000000
R System_Registers_CP15_PROCESSOR_FEATURE_0 0x0000000B 0x00000131
R System_Registers_CP15_PROCESSOR_FEATURE_1 0x0000000B 0x00000001
R System_Registers_CP15_DEBUG_FEATURE_0 0x0000000B 0x00010400
R System_Registers_CP15_AUXILIARY_FEATURE_0 0x0000000B 0x00000000
R System_Registers_CP15_MEMORY_MODEL_FEATURE_0 0x0000000B 0x00210030
R System_Registers_CP15_MEMORY_MODEL_FEATURE_1 0x0000000B 0x00000000
R System_Registers_CP15_MEMORY_MODEL_FEATURE_2 0x0000000B 0x01200000
R System_Registers_CP15_MEMORY_MODEL_FEATURE_3 0x0000000B 0x00000011
R System_Registers_CP15_INSTRUCTION_SET_ATTRIBUTE_0 0x0000000B 0x01101111
R System_Registers_CP15_INSTRUCTION_SET_ATTRIBUTE_1 0x0000000B 0x13112111
R System_Registers_CP15_INSTRUCTION_SET_ATTRIBUTE_2 0x0000000B 0x21232131
R System_Registers_CP15_INSTRUCTION_SET_ATTRIBUTE_3 0x0000000B 0x01112131
R System_Registers_CP15_INSTRUCTION_SET_ATTRIBUTE_4 0x0000000B 0x00010142
R System_Registers_CP15_INSTRUCTION_SET_ATTRIBUTE_5 0x0000000B 0x00000000
R System_Registers_CP15_CURRENT_CACHE_SIZE_ID 0x0000000B 0xF003E019
R System_Registers_CP15_CURRENT_CACHE_LEVEL_ID 0x0000000B 0x09000000
R System_Registers_CP15_CACHE_SIZE_SELECTION 0x0000000B 0x00000000
R System_Registers_CP15_SYSTEM_CONTROL 0x0000000B 0x09E50878
R System_Registers_CP15_AUXILIARY_CONTROL 0x0000000B 0x0C0000A7
R System_Registers_CP15_COPROCESSOR_ACCESS 0x0000000B 0x00F00000
R System_Registers_CP15_DATA_FAULT_STATUS 0x0000000B 0x00000409
R System_Registers_CP15_INSTRUCTION_FAULT_STATUS 0x0000000B 0x00000000
R System_Registers_CP15_AUX_DATA_FAULT_STATUS 0x0000000B 0x00800000
R System_Registers_CP15_AUX_INSTRUCTION_FAULT_STATUS 0x0000000B 0x00000000
R System_Registers_CP15_DATA_FAULT_ADDRESS 0x0000000B 0x08000018
R System_Registers_CP15_INSTRUCTION_FAULT_ADDRESS 0x0000000B 0x00000000
R System_Registers_CP15_MPU_REGION_BASE_ADDRESS 0x0000000B 0x00000000
R System_Registers_CP15_MPU_REGION_SIZE_ENABLE 0x0000000B 0x00000000
R System_Registers_CP15_MPU_REGION_ACCESS 0x0000000B 0x00000000
R System_Registers_CP15_MPU_REGION_NUMBER 0x0000000B 0x00000000
R System_Registers_CP15_TCM_BTCM_REGION 0x0000000B 0x08000039
R System_Registers_CP15_TCM_ATCM_REGION 0x0000000B 0x00000039
R System_Registers_CP15_TCM_TCM_SELECTION 0x0000000B 0x00000000
R System_Registers_CP15_PERFORMANCE_MONITOR_CONTROL 0x0000000B 0x41141810
R System_Registers_CP15_COUNT_ENABLE_SET 0x0000000B 0x00000000
R System_Registers_CP15_COUNT_ENABLE_CLEAR 0x0000000B 0x00000000
R System_Registers_CP15_OVERFLOW_FLAG_STATUS 0x0000000B 0x00000000
R System_Registers_CP15_COUNTER_SELECTION 0x0000000B 0x00000000
R System_Registers_CP15_CYCLE_COUNT 0x0000000B 0x00000859
R System_Registers_CP15_EVENT_SELECTION 0x0000000B 0x00000000
R System_Registers_CP15_PERFORMANCE_MONITOR_COUNT 0x0000000B 0x00000000
R System_Registers_CP15_USER_ENABLE 0x0000000B 0x00000000
R System_Registers_CP15_INTERRUPT_ENABLE_SET 0x0000000B 0x00000000
R System_Registers_CP15_INTERRUPT_ENABLE_CLEAR 0x0000000B 0x00000000
R System_Registers_CP15_SLAVE_PORT_CONTROL 0x0000000B 0x00000000
R System_Registers_CP15_FCSE_PID 0x0000000B 0x00000000
R System_Registers_CP15_CONTEXT_ID 0x0000000B 0x00000000
R System_Registers_CP15_USER_READ_WRITE_THREAD_PROCESS_ID 0x0000000B 0x00000000
R System_Registers_CP15_USER_READ_ONLY_THREAD_PROCESS_ID 0x0000000B 0x00000000
R System_Registers_CP15_PRIVILEDGED_ONLY_THREAD_PROCESS_ID 0x0000000B 0x00000000
R System_Registers_CP15_SECONDARY_AUXILIARY_CONTROL 0x0000000B 0x00010002
R System_Registers_CP15_NVAL_IRQ_ENABLE_SET 0x0000000B 0x00000000
R System_Registers_CP15_NVAL_FIQ_ENABLE_SET 0x0000000B 0x00000000
R System_Registers_CP15_NVAL_RESET_ENABLE_SET 0x0000000B 0x00000000
R System_Registers_CP15_NVAL_DEBUG_REQUEST_ENABLE_SET 0x0000000B 0x00000000
R System_Registers_CP15_NVAL_IRQ_ENABLE_CLEAR 0x0000000B 0x00000000
R System_Registers_CP15_NVAL_FIQ_ENABLE_CLEAR 0x0000000B 0x00000000
R System_Registers_CP15_NVAL_RESET_ENABLE_CLEAR 0x0000000B 0x00000000
R System_Registers_CP15_NVAL_DEBUG_REQUEST_ENABLE_CLEAR 0x0000000B 0x00000000
R System_Registers_CP15_BUILD_OPTIONS_1 0x0000000B 0x08000000
R System_Registers_CP15_BUILD_OPTIONS_2 0x0000000B 0xBF1A4400
R System_Registers_CP15_CORRECTABLE_FAULT_LOCATION 0x0000000B 0x02000009

You have my thanks