01-26-2018 06:13 AM
We have been working on a Microblaze based design for some time now. We are using Vivado 2017.2 and developing firmware using SDK of the same version. We are adding another DMA channel to move data from our IP engine to DDR3 external memory. I noticed while learning DMA using the Example DMA with SG and interrupt that the __MICROBLAZE__ pre-processor definition is not defined. I then checked my whole project for this and it is not defined anywhere. According to ug1043 page 29 it states and I quote: "When compiling with the Microblaze compiler, the pre-processor provides the definition __MICROBLAZE__ automatically. You can use this definition in any conditional code." My question is why is it not defined and could there be problems not having it?
When I build my projects I export hardware from Vivado to SDK with bit stream and use SDK for all firmware development. Everything seems to work fine, but is there something lurking?
02-02-2018 03:14 AM
I'm not trying to use it, I want to know why my project does not see it. If it is defined (by default) then why does my BSP look like this. It looks like this in all usage locations. SDK 2017.2
02-02-2018 03:33 AM
This is a problem with Eclipse (visual part only). It doesn't identify the macros correctly while highlighting/greying out code