did you try reading writing the apb peripheral from the debugger? It does different access then
we have done little work with smartfusion, but with one project we had no issues, there I used a dual port block ram interface to the hard cpu and to the fpga fabric
Thanks, would the design you mention be the one listed under the SMF2000 resources (SMFSDRAM.zip)? I couldn't find any custom hdl/firmware files in that zip.
Using the Memory tab in Eclipse, I don't get a hard fault when reading/writing the apb3 slave memory space! Interestingly, it seems as if it's a byte access issue. For example, this will crash:
uint8_t rdVal;
uint8_t *pUserLogic8 = (uint8_t*) (0x50000000);
rdVal = *(pUserLogic8 +3 );
but this wont:
uint8_t rdVal;
uint8_t *pUserLogic8 = (uint8_t*) (0x50000000);
rdVal = *(pUserLogic8 +4 );
Do you see anything obvious with the screenshots of the project settings?
Replying here instead of starting a new one because I have a very similar issue using a Smartberry board. By chanche, was this isssue on the same board? In any case, can you confirm the latest post describes a tested solution? Thanks all