Forum Discussion
Altera_Forum
Honored Contributor
15 years agoadditional printk shows the start and end addresses:
atse.0: claiming resource (0 of 5) p:C01CE8D4 bus:platform rtype:mem rname:atse_resource_desc_mem rstart:0x11 800000 rend:0x11801FFF atse.0: claiming resource (1 of 5) p:C01CE8D4 bus:platform rtype:mem rname:atse_resource_sgdma_rx_mem rstart: 0x11803C40 rend:0x1180403F atse.0: claiming resource (2 of 5) p:C01CE8D4 bus:platform rtype:mem rname:atse_resource_sgdma_tx_mem rstart: 0x11803C00 rend:0x11803FFF atse.0: failed to claim resource 2 of the failed resource. matching these addresses with what is expected in from custom_fpga.h (SOPC Builder) shows a mismatch. it turns out that config.c had hardcoded the size of the SGDMA RX and TX to 0x400! (line: .end = nasgdma_rx_csr + 0x400 - 1) I changed this to use the SGDMA_RX_END and SGDMA_TX_END instead defined in custom_fpga.h in config.c and it works.