Forum Discussion
BeB
Occasional Contributor
1 year agosegmentation fault with nios2-terminal and printf/alt_printf statements
Hello, I am running into segmentation faults using either alt_printf or printf to output debug messages from a nios 2 application via the nios2-terminal application. The code runs fine without the ...
tehjingy_Altera
Regular Contributor
1 year agoHi
Do you have any update on this case?
Regards
Jingyang, Teh
- BeB1 year ago
Occasional Contributor
Hello,
Sorry for the late reply.
It seems that changing the size of the stdout uart buffer solved the problem. A too large buffer causes the segmentation fault. Reducing the buffer size eliminated the issue (with the exact same code otherwise!).
Thank you,
Bertrand