Forum Discussion
Altera_Forum
Honored Contributor
8 years agoCyclone V SoC Preloader will not run bare metal app
Hello all, I've been working on this problem for several days now. I've read every website/pdf I can find (e.g. these forums, rocketboards, altera pdfs, etc, etc, etc, etc) regarding bare metal...
Altera_Forum
Honored Contributor
8 years agoYahoo! After a few tries enabling and disabling code lines I eventually found out what caused my application to fail.
It was simply due to some of the printf calls I added when I used the debugger jtag uart. I removed them and now the full application boots and runs smoothly. I need more tests to be 100% sure, but I think the problem is solved. Anyway I'm concerned on some points, although now they are not greatly relevant: - I said above 'some' of the printf calls. Actually most of them are still there, but somehow they don't affect the execution - when I compiled the reference design source code, I got many errors regarding printf and I had to change some includes: for example I had to comment out the# include <alt_printf.h> lines; probably I'm now using a wrong HAL function? - I wonder if it's possible to connect to jtag uart even without the debugger and get that printfs out. When I developed Nios2 application I used the nios2-terminal command from the shell to activate the console, but I can't find a similar function for CV SoC