Forum Discussion
Altera_Forum
Honored Contributor
12 years agoDS-5 debug problem!
I use the ds-5 to debug ucosii on terasic DE-1 SOC. I want to control the FPGA PIO and I add the altera API to do this. But when I debug the program, commands window shows that “Target Message: ...
Altera_Forum
Honored Contributor
12 years agoYou start using Altera examples from d:/Altera/14.0/embedded/examples/software or SoC Design Examples http://www.altera.com/support/examples/soc/soc.html ?
Hwlib examples usual using printf() to console, which must be sended to host and displayed in DS-5 window. Even if not use printf(), before main() must be initialized stdin and stdout... For this possibility in .ds used commands "set semihosting enabled false" and "set semihosting enabled true". If commenting last command with "#", application not started, as from flash, because system call to host "SVC 123456" not have a handler. Problem is described in previous post -- bad linking .axf result, first ASM command on 02000000 is not "B" and later not lie other interrupts. May be and with address 00100000 all will work -- suddently DDR is mapped to all 4 G of adresses round-robin ? This know Altera Guru, and they is silently :)