Hi Kyle,
I made a small change to the compiler source code, not sure yet if it works but I need to test.
There is check in the function 'pic_assign_from_value()' if something is a constant and if so the message is given that whereis cannot be applied to a constant. However, the compiler documentation states it should be possible to use whereis on a constant array
which I would need for a DMA transfer to get the address of the const array.
So I made the following changes where it checks for a constant in pic_op.c.
Change: if (!lbl) {
Into: ((!lbl) & (!value_is_array(src))) {
The message is still given for a single constant but not for an array and the code seems to be generated.
I will now test to see if it actually works in combination with DMA.
Kind regards,
Rob