Other Parts Discussed in Thread: LAUNCHXL2-570LC43
Tool/software:
I am using the development board LAUNCHXL2-570LC43. I wrote code for a bootloader over CAN and Serial with the FLASH API. The code I started with was generated by the HAL code generator tool.
If I have cache disabled everything is fine. If I enable cache, when I call the function _dCacheInvalidate_(), the processor resets. The invalidate cache code is generated by the HAL tool:
_dCacheInvalidate_
MOV R0,#0
DSB
MCR P15, #0, R0, C15, C5, #0
DSB
bx lr
.endasmfunc
This appears correct.
Can you tell me what could be causing a reset. I need to invalidate cache after a flash erase or flash write.