CAL UART comms stops if the baud rate is updated

An area to discuss 32-bit PIC specific problems and examples

Moderator: Benj

Zane
Flowcode v5 User
Posts: 195
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 91 times
Been thanked: 75 times
Contact:

CAL UART comms stops if the baud rate is updated

Postby Zane » Tue May 30, 2017 3:34 pm

Hi Ben,

I am using a 32MX270F256B and when using the CAL UART, if the baud rate is updated the comms will stop. If the update baud icon is disabled the comms works fine. I have attached the test program that i have been using.

I have also installed the patches you have created that takes care of all the timing and peripheral issues too.

Thanks

Zane
Attachments
Flowcode1.fcfx
(10.52 KiB) Downloaded 64 times
These users thanked the author Zane for the post:
Benj (Tue Jun 13, 2017 10:19 am)
Rating: 5.88%
 

User avatar
LeighM
Matrix Staff
Posts: 1766
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 417 times
Been thanked: 582 times
Contact:

Re: CAL UART comms stops if the baud rate is updated

Postby LeighM » Tue Jun 06, 2017 9:58 am

Hi Zane,
Could you please try the attached CAL file?
Thanks
Leigh
PIC32BIT_CAL_UART.c
(22.97 KiB) Downloaded 66 times
These users thanked the author LeighM for the post:
Zane (Thu Jun 08, 2017 7:27 am)
Rating: 5.88%
 

Zane
Flowcode v5 User
Posts: 195
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 91 times
Been thanked: 75 times
Contact:

Re: CAL UART comms stops if the baud rate is updated

Postby Zane » Thu Jun 08, 2017 7:28 am

Hi Leigh,

I have tried this but it has not been successful.

Thanks Zane
These users thanked the author Zane for the post:
LeighM (Thu Jun 08, 2017 8:15 am)
Rating: 5.88%
 

User avatar
LeighM
Matrix Staff
Posts: 1766
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 417 times
Been thanked: 582 times
Contact:

Re: CAL UART comms stops if the baud rate is updated

Postby LeighM » Thu Jun 08, 2017 8:17 am

OK. Thanks for testing. I'll stick this PIC32 issue on Ben's pile :)
These users thanked the author LeighM for the post:
Zane (Sat Jun 10, 2017 12:23 am)
Rating: 5.88%
 

User avatar
Benj
Matrix Staff
Posts: 13983
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4247 times
Been thanked: 4008 times
Contact:

Re: CAL UART comms stops if the baud rate is updated

Postby Benj » Tue Jun 13, 2017 10:47 am

Thanks for letting us know of the problem.

I have replicated it and have found a fix.

Simply copy the attached file into your "Flowcode 7/CAL/PIC32BIT" folder and the problem should be resolved.

PIC32BIT_CAL_UART.c
(22.93 KiB) Downloaded 67 times


Let us know how you get on.
These users thanked the author Benj for the post:
Zane (Wed Jun 14, 2017 10:58 am)
Rating: 5.88%
 

Zane
Flowcode v5 User
Posts: 195
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 91 times
Been thanked: 75 times
Contact:

Re: CAL UART comms stops if the baud rate is updated

Postby Zane » Wed Jun 14, 2017 10:59 am

Hi Ben,

Thanks for the update i will try it later on this week.

Thanks

Zane
These users thanked the author Zane for the post:
Benj (Wed Jun 14, 2017 3:06 pm)
Rating: 5.88%
 

Zane
Flowcode v5 User
Posts: 195
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 91 times
Been thanked: 75 times
Contact:

Re: CAL UART comms stops if the baud rate is updated

Postby Zane » Thu Jun 15, 2017 11:25 pm

Thanks Ben, your magic worked a treat, it is functioning as expected now :D
These users thanked the author Zane for the post:
Benj (Fri Jun 16, 2017 10:56 am)
Rating: 5.88%