Forum Discussion
Altera_Forum
Honored Contributor
13 years agoI had a quick look at the design you sent me and didn't find anything wrong. I saw also in your test software that you are using the IOWR macro and the base address constant defined in system.h. This is better as it will avoir cache and wrong address problems.
Here are a few suggestions to help debug further:[list][*]add a system id component to the QSys project, and configure the IDE to check it before uploading the software. That way if for whatever reason the FPGA image isn't in sync with the software BSP, you'll get an error message[*]add a JTAG UART component and put a printf() in your test software, to be sure your CPU is actually running and isn't stuck somewhere.[/list]As an example you could test with this function:void main()
{
int x=0;
while(1)
{
IOWR(TEST_SLAVE_0_BASE,0,x++);
printf("wrote something\n");
}
}