Search found 232 matches

by Brendan
Sat Nov 21, 2020 2:19 pm
Forum: Programming Tips & Tricks
Topic: PIC32MZ UART Configuration Problems - Solved !
Replies: 0
Views: 96

PIC32MZ UART Configuration Problems - Solved !

Hello All. Working on a project with PIC32MZ2048EFG144 and really struggling with getting the UART to stream anything other than garbled characters, and given former comments and problems regarding the PIC32MZ, I wanted to share what I have found to work without issue. I have not invoked flow contro...
by Brendan
Fri Nov 20, 2020 5:50 pm
Forum: Bug Reports
Topic: Interrupt component fails on PIC32MZ
Replies: 2
Views: 36

Re: Interrupt component fails on PIC32MZ

Hi Stefan.

Good spot!
Happy to confirm the interrupt is now functional.

Thank you for your help :D

Best regards,
Brendan
by Brendan
Fri Nov 20, 2020 4:16 pm
Forum: Bug Reports
Topic: Interrupt component fails on PIC32MZ
Replies: 2
Views: 36

Interrupt component fails on PIC32MZ

Hi team. Attached is an extract from a project which exemplifies an issue with the interrupt component when deployed with the challenging PIC32MZ2048EFG144. Exactly the same macro is called in the loop as by interrupt. Clock settings therefore appear AOK and the loop approach works fine, but all int...
by Brendan
Tue Oct 20, 2020 2:16 am
Forum: Flowcode V8
Topic: Defining USB Serial No. Descriptor for USB Serial Component
Replies: 2
Views: 115

Re: Defining USB Serial No. Descriptor for USB Serial Component

Hi Ben. My sincere thanks for your time to kindly provide this information, and a huge help - Thank you! From the instructions provided, it's clear I should have been a little more specific by saying that I'm coding for both 8-bit and 16-bit PICs requiring unique serials (mostly 16-bit these days), ...
by Brendan
Mon Oct 19, 2020 7:11 pm
Forum: Flowcode V8
Topic: Defining USB Serial No. Descriptor for USB Serial Component
Replies: 2
Views: 115

Defining USB Serial No. Descriptor for USB Serial Component

Hello all.

Quick question (hopefully)...

Just need to ask the easiest/best way to set the USB Serial Number in the descriptors for the USB Serial component?

Thanks,
Brendan
by Brendan
Wed May 13, 2020 5:46 pm
Forum: General Programming
Topic: Setting PB2CLK for PIC32MZ2048EFG144 - Unlock Sequence
Replies: 2
Views: 774

Re: Setting PB2CLK for PIC32MZ2048EFG144 - Unlock Sequence

Thank you Stefan, a very useful link! I originally came across the following and couldn't believe that simply changing a clock prescaler could be so cumbersome - but evidently it is. https://www.microchip.com/forums/m935190.aspx Tech used to be so much less bloated - and much more productive :? Than...
by Brendan
Wed May 13, 2020 1:29 am
Forum: General Programming
Topic: Setting PB2CLK for PIC32MZ2048EFG144 - Unlock Sequence
Replies: 2
Views: 774

Setting PB2CLK for PIC32MZ2048EFG144 - Unlock Sequence

Hello experts, I'm needing to change PB2CLK for correct UART speed, though I've come across need to exercise an unlock sequence before being able to change the prescaler. Presently the UART has to be declared at 4x speed in Flowcode with the default SYSCLK division of 2 (PB2CLK = 100MHz), so fundame...
by Brendan
Thu Apr 16, 2020 2:15 am
Forum: Feature Requests
Topic: USB Serial Flow Control
Replies: 5
Views: 789

Re: USB Serial Flow Control

Thank you so much guys !!! :D :D :D The approach uses PuTTY or terminal variants to facilitate easier off-site updates with generic terminal tools (etc), allowing changes to the system-stored test sequence updated from text file via Vcom. Exemplary professional support as always, and can't thank you...
by Brendan
Wed Apr 15, 2020 3:06 pm
Forum: Feature Requests
Topic: USB Serial Flow Control
Replies: 5
Views: 789

USB Serial Flow Control

Hi team. A number of my projects leverage the convenience of the USB serial component where supported by the micro. I'm now developing a few projects requiring that a large amount of data (e.g. 10-50kB) is copied to PuTTY terminal, received by the uC, and stored to EEPROM. However, flow control does...
by Brendan
Fri Apr 03, 2020 11:38 am
Forum: Bug Reports
Topic: "usb_serial_config.h": No such file or directory
Replies: 10
Views: 1782

Re: "usb_serial_config.h": No such file or directory

Just to update - Sorry it's been a while :oops: Port 80 was reportedly always open, so given that I have the same license on my personally-owned machine I arbitrarily copied general and updated files/directories from my personal computer to my work computer. The only difference between machines bein...
by Brendan
Thu Feb 20, 2020 6:20 pm
Forum: Programming Tips & Tricks
Topic: Setting PIC32MX and PIC32MZ Clock Options
Replies: 1
Views: 1941

Setting PIC32MX and PIC32MZ Clock Options

Re-posting my comments made elsewhere... Hi Guys. As MX and MZ clock settings feature strongly in this thread, I thought I'd share something that I came across and enabled me to quickly confirm appropriate clock settings and transfer them to configuration option in Flowcode. No reliance on Harmony o...
by Brendan
Thu Feb 20, 2020 5:53 pm
Forum: General Programming
Topic: Microchip questions for you all.
Replies: 25
Views: 5327

Re: Microchip questions for you all.

Hi Guys. As MX and MZ clock settings feature strongly in this thread, I thought I'd share something that I came across and enabled me to quickly confirm appropriate clock settings and transfer them to configuration option in Flowcode. No Harmony, no other info, and it just worked! I therefore recomm...
by Brendan
Wed Feb 12, 2020 6:22 pm
Forum: Bug Reports
Topic: "usb_serial_config.h": No such file or directory
Replies: 10
Views: 1782

Re: "usb_serial_config.h": No such file or directory

Thanks again Ben - I've no doubt you're on the money (again :) )

I'll report back once I've contacted IT to open port 80 for Flowcode.

Best regards,
Brendan
by Brendan
Wed Feb 12, 2020 5:03 pm
Forum: Bug Reports
Topic: "usb_serial_config.h": No such file or directory
Replies: 10
Views: 1782

SOLVED: Re: "usb_serial_config.h": No such file or directory

Thanks Ben - You're a star !!! :D I replaced the existing USB_Serial.fcpx file with that you kindly provided and the project built straight off the bat without a hitch. I suspect that FC8 would have updated to latest if the updates database worked. If, in the meantime, you have any thoughts on that,...
by Brendan
Wed Feb 12, 2020 4:31 pm
Forum: Bug Reports
Topic: "usb_serial_config.h": No such file or directory
Replies: 10
Views: 1782

Re: "usb_serial_config.h": No such file or directory

Thank you Ben - Very much appreciated. Following your message I noted that the confirmed directry under root was hidden, so I un-hid it and unzipped the provided files to the directed folder - noting that the same number of files existed (and usb_serial_config.h was in there) but I over-wrote them a...
by Brendan
Tue Feb 11, 2020 5:43 pm
Forum: Bug Reports
Topic: "usb_serial_config.h": No such file or directory
Replies: 10
Views: 1782

Re: "usb_serial_config.h": No such file or directory

Thanks for getting back so quickly Ben - Entirely appreciated. Interestingly, when I try this with the full database option enabled, I get this... FC8_No_Updates.png I'm guessing I'm being blocked by system policies or something? Ideally, if you have some other means by which I can install the neces...
by Brendan
Tue Feb 11, 2020 5:18 pm
Forum: Bug Reports
Topic: "usb_serial_config.h": No such file or directory
Replies: 10
Views: 1782

Re: "usb_serial_config.h": No such file or directory

...Incidentally, it's a Windows 10 64-bit version.
by Brendan
Tue Feb 11, 2020 5:16 pm
Forum: Bug Reports
Topic: "usb_serial_config.h": No such file or directory
Replies: 10
Views: 1782

"usb_serial_config.h": No such file or directory

Hi Guys. I had occasion to reinstall Flowcode 8 on a new work machine (Windows 10). All went well and everything appeared to work, until I tried to use the USB Serial component when programming ECIO40P16. In short, build termination due to the following error report: Device: PIC16.33E.ECIO40P16 Gene...
by Brendan
Thu Nov 08, 2018 1:32 pm
Forum: Bug Reports
Topic: PIC32MZ UART Baud Rate
Replies: 10
Views: 2603

Re: PIC32MZ UART Baud Rate

That's fantastic - Thanks Ben :!: :D :D :D

I'm currently between working from home and supporting contractors identifying/fixing an underground water leak, so may take a while but will certainly post back with results from boards fitted with PICs exibiting this issue.

Best regards,
Brendan
by Brendan
Thu Nov 08, 2018 3:06 am
Forum: Bug Reports
Topic: PIC32MZ UART Baud Rate
Replies: 10
Views: 2603

Re: PIC32MZ UART Baud Rate

Thank you Ben - Entirely appreciated. Aware of three 'A' silicon versions and one 'B' version, I can confirm from what I'm coding that this particular issue manifests with ver. A3 silicon (assuming all A3 is equal!). The trouble is that when designing MCUs into products you really don't want to be r...
by Brendan
Wed Nov 07, 2018 12:50 pm
Forum: Bug Reports
Topic: PIC32MZ UART Baud Rate
Replies: 10
Views: 2603

PIC32MZ UART Baud Rate

I'm coding embedded test code for a PIC32MZ2048EFG144 and have discovered that the Baud setting in the UART component must be set to precisely double the required Baud rate for comms to work, otherwise the usual garbled chars. In a C block I've attempted to force changes to PBCLK2 prescaler ( PB2DIV...
by Brendan
Tue Nov 06, 2018 7:45 pm
Forum: General Programming
Topic: PIC32MZ UART Troubles - Pulling my hair out...
Replies: 3
Views: 2547

Re: PIC32MZ UART Troubles - Pulling my hair out...

Thanks Stefan regarding the BOOTISA register. Once set I was seeing comms, but garbled random characters. After disabling all the C blocks I'd created in my frustrations to manually set registers, and after further experimentation, I discovered that the actual comms Baud rate was precisely half of t...
by Brendan
Tue Nov 06, 2018 10:14 am
Forum: General Programming
Topic: PIC32MZ UART Troubles - Pulling my hair out...
Replies: 3
Views: 2547

Re: PIC32MZ UART Troubles - Pulling my hair out...

Hi Stefan. Many thanks for the pointer regarding MIPS32, which wasn't set as prescribed. That's one positive step forward for sure :) Unfortunately, the PIC32MZ has all the hallmarks of poor silicon rushed to market, particularly as... The primary and secondary crystal oscillators don't work in Ver ...
by Brendan
Mon Nov 05, 2018 7:49 pm
Forum: General Programming
Topic: UART CRC Check
Replies: 3
Views: 2791

Re: UART CRC Check

As I use CRCs with Flowcode a lot (particularly Maxim 1-wire, etc), and assuming you've got 256 Bytes of program memory to spare for an 8-bit CRC, I'd like to chip in with a popular alternative of pasting a 256-byte table (relevant to your CRC polynomial) to the Flowcode LUT component. Such CRC tabl...
by Brendan
Mon Nov 05, 2018 6:31 pm
Forum: General Programming
Topic: PIC32MZ UART Troubles - Pulling my hair out...
Replies: 3
Views: 2547

PIC32MZ UART Troubles - Pulling my hair out...

Hello All. I'm wondering if seasoned experts amongst us could shed any light... I've been pulling my hair out trying to get a single basic UART channel working on the PIC32MZ2048EFG144. 100MHz system clock settings suitably confirmed as UART Tx/Rx works perfectly fine in software mode at 115.2kbps, ...