Forum Discussion
ReubenS
New Contributor
1 year agoNios V Command Shell/juart-terminal input for std::cin
Cyclone 10 GX, programmed with a jic with a factory and two application images, using the GSFI bootloader method. Given that programming takes several minutes, for development I want to be able to in...
BoonBengT_Altera
Moderator
1 year agoHi @ReubenS,
Thank you for posting in Intel community forum and hope all is well.
Would perhaps recommend to check on the following item below:
- Ensure that the UART driver (especially any stdio redirection) is initialized before any use of cin/cout.
- Use fgets() and printf() temporarily to isolate the problem from cin (could avoid issues related to cin buffering or stream corruption)
- Ensure watchdogs is not trigger during blocked i/o (if cin blocks waiting for inputs and the watchdog is not serviced there could be weird behavior observed)
Hope that clarify.
Best Wishes
BB