Forum Discussion
Altera_Forum
Honored Contributor
15 years agoNois CPU halt at fprintf
hi,everyone: I have to output information by UART in my project, When program loaded from FLASH(EPCS),then CPU halt at fprintf(),so do with getc(),fscanf(),but not fwrite(). but it is ok in de...
Altera_Forum
Honored Contributor
15 years agoTypically, when it's "running" from flash, it's really copying code from flash into RAM and then executing that code.
How do you know that your code stops at fprintf() when loading from EPCS/flash? Have you run a minimal memtest (with a simple DMA in your system) on the memory you're loading to? What is your offchip memory? Regards, slacker