Page 1 of 1
RS232 Serial
Posted: Tue Feb 02, 2021 2:24 am
by alanwms
I'm having a tough time with FC9 finding the terminal that allows me to see serial commands - I had this in previous FC versions? I do have the test and debug add on.
Let me know where I'm going wrong.
Re: RS232 Serial
Posted: Tue Feb 02, 2021 6:40 am
by medelec35
Hi alanwms,
The option for UART to be displayed with the console is off by default.
Select the UART(RS232) component in the panel.
Right click and select properties.
Select Yes for the Console data option.
Re: RS232 Serial
Posted: Tue Feb 02, 2021 4:26 pm
by alanwms
I see - I did have that enabled but sending a serial_string[11] did nothing. I changed the send function to a simple word "HELLO" and that worked. Any idea why my string variable names serial_string does not work? The initial value is "HELLO"
Re: RS232 Serial
Posted: Tue Feb 02, 2021 4:31 pm
by alanwms
Now I see the issue - The initial value assigned to the string is not working. I used the calculation box to assign "Hello" to the variable "serial_string" and that worked.
Is the initial variable value not working?
Just one more request - When I was referring to the serial console of the past - It seems that I could type in a response in simulation. Is that possible?
Re: RS232 Serial
Posted: Tue Feb 02, 2021 5:07 pm
by medelec35
alanwms wrote: ↑Tue Feb 02, 2021 4:31 pm
Is the initial variable value not working?
I have an issue like that which was down to silicon with PIC18F27K40
I will see if it happens on a different chip and get back to you.
alanwms wrote: ↑Tue Feb 02, 2021 4:31 pm
Just one more request - When I was referring to the serial console of the past - It seems that I could type in a response in simulation. Is that possible?
Yes you can.
You will need to go to the component menu and under API, select
Injector (Human Interface)
Re: RS232 Serial
Posted: Tue Feb 02, 2021 8:12 pm
by medelec35
Working fine with Arduino Uno.
What target device do you have?
Re: RS232 Serial
Posted: Tue Feb 02, 2021 9:25 pm
by alanwms
My target is PIC24FJ64GB002
Thanks for the human interface pointer Martin - You are the man!