I'm trying to update some FPGA configuration registers. I've found the addresses for the registers in http://wfcache.advantech.com/support/TMDXEVM6678L_Technical_Reference_Manual_2V00.pdf
Is there something special I need to do before changing these values? I've tried connecting with the probe, running the GEL file to initialize everything/map memory, and then changing the values via the memory browser for a quick test. This doesn't seem to work.
I'm most interested in changing the clock source (SPI + 0x50), but for a sanity check I'm trying to control the debug LEDs (SPI + 0x8, bits 3-0). For the SPI base address I'm using 0x20BF0000 as the base address (as defined in the tech reference manual).
I've also tried changing the LEDs via a program, and that didn't seem to work either:
unsigned char mask[2] = {0xAA, 0x55};
int i = 0;
while (1)
{
Task_sleep(100);
*(volatile unsigned char*)(CSL_SPI_BASE + 0x8) = mask[i];
if (++i > 1) i=0;
}