Site Search

Is it possible to view the log of functions before the main() function when Nios II starts up?

Nios II

Category: Nios® II
Tools: Nios II EDS
device:-


It is possible to display the log of crt0.s and alt_main.c before the main() function is called when the Nios II core starts up on the JTAG UART by setting it in the BSP Editor.
First, display Setting ⇒ Advanced ⇒ hal ⇒ log_port from the Main tab of BSP Editor, and set Value to jtag_uart.
Then display the log_flags and set the Value to 1, 2, or 3.
The higher the value, the finer the log display.

After setting the above, run the Nios II program on the actual machine and you will see the execution logs in crt0.s and alt_main.c.


Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.