Hi all, I tried the serial print demo which worked...
# caravel
m
Hi all, I tried the serial print demo which worked fine , but when I tried my own code with the same functions and headers included , then it starts printing special characters. Do I have to make changes to any other files in order to implement the code.
1
m
no you shouldn't need to. Special characters normally means the baud is wrong. Could you have changed that either on caravel or on your host?
m
Sir, could you please tell me what should be the actual baud rate.
I'm unaware of any changes done or how it should be done
t
Baud rate is fixed at 9600 assuming a 10MHz input clock.
m
Thank you sir, I have confirmed that mine is 9600 and looking further for errors in associated files.
t
It also bears noting that the format is one start bit, one stop bit, 8 data bits, and no parity.
m
Thank you sir, the issue is now solved. It was with uncommenting the defenitions. But something I noticed was that the print before the while loop is not actually printed. As the make monitor command is given it is shown only when a default key (not a,b,c) in the switch case is pressed.