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 agoi solved it finally!it is so easy when i got it.
Only set "Exception Vecoter" in CPU seting to SDRAM not EPCS_FLASH_CONTROLLER in SOPC Builder. If exception vector be pointed to epcs_flash_controller, then interrupt of fprintf() happened, it can't jump to the correct location. Thanks to normad, dsl and slacker.