MPU protection falut


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
===================================================

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