Re: MPU protection falut


Jiří Kubias <jiri.kubias@...>
 

Sorry once again.

Im trying to work with DMA. How ever when I try to bind the dma I receive MPU FAULT. 

Platform is SAME70 - custom board.

My code:

    printk("a0 %s\n", CONFIG_SPI_SAM_DMA_NAME);
    dev_cfg->dev_dma = device_get_binding(CONFIG_SPI_SAM_DMA_NAME);
if (!dev_cfg->dev_dma) {
SYS_LOG_ERR("%s device not found", CONFIG_SPI_SAM_DMA_NAME);
return -ENODEV;
}
printk("a1\n");


and the console output  is 
a0 DMA_0
***** MPU FAULT *****
 Data Access Violation
 MMFAR Address: 0x412198
***** Hardware exception *****
Current thread ID = 0x204024b4
Faulting instruction address = 0x40e376
Fatal fault in essential thread! Spinning...

In attachment is kernel config. DMA is configured.

Any help is appreciated.

Regards, 
Jiri 




2018-09-07 9:19 GMT+02:00 Jiří Kubias <jiri.kubias@...>:

Hi,
Im trying to work with DMA. How ever when I try to bind the dma I receive MPU FAULT. 

My code:

    printk("a0 %s\n", CONFIG_SPI_SAM_DMA_NAME);
    dev_cfg->dev_dma = device_get_binding(CONFIG_SPI_SAM_DMA_NAME);
if (!dev_cfg->dev_dma) {
SYS_LOG_ERR("%s device not found", CONFIG_SPI_SAM_DMA_NAME);
return -ENODEV;
}
printk("a1\n");




--
===================================================
Ing. Jiri Kubias
 
e-mail: jiri.kubias@...
mobile: 775 593 956
===================================================




--
===================================================
Ing. Jiri Kubias
 
e-mail: jiri.kubias@...
mobile: 775 593 956
===================================================

Join devel@lists.zephyrproject.org to automatically receive all group messages.