RS232 Second Channel does not work. - Resolved

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Beertree
Posts: 24
Joined: Wed Apr 29, 2015 4:49 pm
Has thanked: 5 times
Been thanked: 5 times
Contact:

RS232 Second Channel does not work. - Resolved

Postby Beertree » Fri Mar 25, 2016 12:14 pm

Good day,
I am using a PIC18F46K22 with two uarts. I have writte a small program which uses RS232 Channel 1 and works fine. When I change to RS232 Channel 2, it does not work? What can be the faillure? Do I have to change anything else?

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7625
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2156 times
Been thanked: 3011 times
Contact:

Re: RS232 Second Channel does not work.

Postby medelec35 » Sat Mar 26, 2016 2:33 pm

Hi Beertree,
Channel2 is not being set up at all when it should be.
This would also have an effect on channel 1 stopping it from working as well.

So it looks like its a bug.
I will move topic to the bugs selection for Matrix staff to look at, for an official fix

Martin
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7625
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2156 times
Been thanked: 3011 times
Contact:

Re: RS232 Second Channel does not work.

Postby medelec35 » Sat Mar 26, 2016 3:40 pm

I believe I have tracked down the cause of the issue.
There is a bug within PIC_CAL_UART.c
For an unofficial fix, can you replace PIC_CAL_UART.c within:
C:\Program Files (x86)\Flowcode 6\CAL\PIC if 64 bit windows
or
C:\Program Files\Flowcode 6\CAL\PIC if 32 bit windows

If flowcode is already running, best to reload flowchart after fix.

Can you let us know if fix works for you please.

Martin
Attachments
PIC_CAL_UART.c
(24.16 KiB) Downloaded 381 times
These users thanked the author medelec35 for the post (total 3):
Beertree (Sun Mar 27, 2016 12:59 pm) • kersing (Sun Mar 27, 2016 1:10 pm) • Benj (Tue Mar 29, 2016 10:49 am)
Rating: 17.65%
 
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin

Beertree
Posts: 24
Joined: Wed Apr 29, 2015 4:49 pm
Has thanked: 5 times
Been thanked: 5 times
Contact:

Re: RS232 Second Channel does not work.

Postby Beertree » Sun Mar 27, 2016 12:59 pm

Good day Medelec,
it seems to be working perfectly now. I will test it withhin the next week in another two Targets and will give you a final Feedback then. I am astonished how fast you solved the Problem, thank you very much!
These users thanked the author Beertree for the post (total 2):
medelec35 (Sun Mar 27, 2016 1:28 pm) • Benj (Tue Mar 29, 2016 10:53 am)
Rating: 11.76%
 

Beertree
Posts: 24
Joined: Wed Apr 29, 2015 4:49 pm
Has thanked: 5 times
Been thanked: 5 times
Contact:

Re: RS232 Second Channel does not work.

Postby Beertree » Sat Apr 02, 2016 12:05 pm

Good day, Medelec. I testet the fix now in a few different scenarios with different baudrates and hardware and everything works just perfect. Thanks again!
These users thanked the author Beertree for the post (total 2):
medelec35 (Sat Apr 02, 2016 12:08 pm) • Benj (Tue Apr 05, 2016 10:04 am)
Rating: 11.76%
 

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7625
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2156 times
Been thanked: 3011 times
Contact:

Re: RS232 Second Channel does not work.

Postby medelec35 » Sat Apr 02, 2016 12:08 pm

Hi Beertree,
Thanks for keeping us up dated.
We appreciate it very much.
Glad all scenarios now working for you.

Martin
These users thanked the author medelec35 for the post:
Benj (Tue Apr 05, 2016 10:04 am)
Rating: 5.88%
 
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin