Tool/software: Linux
I have the SOC booting and running Linux on the ARM side and I have the MPM loading and starting the DSP, however, the DSP does not toggle the LED1 pin on the EVM board. If I boot the board from CCS and the debugger running just the DSP, I have no issues. I am not using any other peripherals and am just writing to the raw registers in the DSP code as shown below.
#define GPIO_1_BASE 0x0260A000 #define GPIO_1_DIR01 *(unsigned int *)(GPIO_1_BASE + 0x10) #define GPIO_1_OUT01 *(unsigned int *)(GPIO_1_BASE + 0x14) int main(void) { GPIO_1_DIR01 &= ~(1 << 11); while(1) { GPIO_1_OUT01 = 0x800; int justWork = 0; for(justWork = 0; justWork < 1000000; justWork++ ); GPIO_1_OUT01 = 0x000; for(justWork = 0; justWork < 1000000; justWork++ ); } return 0; }
What am I missing here? I am using the "stock" kernel of linux. Do I need to build it without access to the GPIO? Can I? It would be preferred to let Linux only have access to the USB, uSD, and Ethernet if possible as we already have an application developed that handles the other side of things.