Forum Discussion
CAlex
Contributor
3 years agoHow to set the SPL and the sdimage correctly with baremetal applications
Hi, I'm working on cycloneV soc with the newest soceds 20.1 so the bsp-editor cant be used as a uboot setting. I want to start the baremetal application from a sdcard. SDimage: A2: u-boot-wit...
tehjingy_Altera
Regular Contributor
3 years agoHi
For the printf did you include the <stdio.h> header or the <alt_printf.h> header? Could you use the alt_printf.h one.
You do not need to mkimage it, you just flash the binary into the qspi using the command:
quartus_hps -c 1 -o pv -a 0x000000 <<application.binary>>
Regards
Jingyang, Teh
CAlex
Contributor
3 years agoHi,
I didn't use the alt_printf.h for there will be some mutliple include issues.
I've read the alt_printf.h and found out for cycloneVsoc ALT_PRINTF() is the same as printf.
"quartus_hps -c 1 -o pv -a 0x000000 <<application.binary>>" for this order, where should I use it?
SPL or debug console? Or other places?
Reguards.