How to solve this hardfault concerning memory access restriction?
The code goes to
HAL_I2S_Receive_DMA at __HAL_UNLOCK(hi2s);
and
void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
{
uint32_t tmpisr;
__IO uint32_t count = 0;
uint32_t timeout = SystemCoreClock / 9600;
/* calculate DMA base and stream number */
DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress;
tmpisr = regs->ISR; => hardfault_handler
Failed to execute MI command:
-data-evaluate-expression "((DMA_Base_Registers *)hdma->StreamBaseAddress)->ISR"
Error message from debugger back end:
Cannot access memory at address 0xf8960000
Failed to execute MI command:
-data-evaluate-expression "((DMA_Base_Registers *)hdma->StreamBaseAddress)->Reserved0"
Error message from debugger back end:
Cannot access memory at address 0xf89c0004
Failed to execute MI command:
-data-evaluate-expression "((DMA_Base_Registers *)hdma->StreamBaseAddress)->IFCR"
Error message from debugger back end:
Cannot access memory at address 0xf8870008
What did I miss here?
