Hi Matt, the UECIDE says "No target found" when I attempt to program Olimex PIC32-Pinguino-OTG board. It is identified by UECIDE not as COM port but as PIC32 Pinguino OTG (Olimex bootloader). What am I doing wrong?
I should have RTFM. It needs a different bootloader to work with UECIDE
I thought I had a special board set up for the olimex version - maybe not for that board though...
It takes quite a bit to get it working with the native bootloader - a whole new linker script, etc.
Matt, I have a different problem with this board after flashing Olimex_PIC32_Pinguino.hex bootloader from chipKIT32 github repository. Program flashed onto olimex board is getting lost on reset/power cycle. This happens on three different boards, two of which are brand new. This makes me wonder if I flashed the correct bootloader version? I could not find pinguino bootloader file with OTG suffix.
When olimex-pinguino32-otg board was installed using plugin manager, "PIC32 Pinguino OTG (Olimex bootloader)" option was added into the Hardware menu. This is not what I expect to see there because it is not an olimex bootloader version. Can this be relevant to reset issue?
The Olimex Bootloader programmer should work with the stock Olimex bootloader, not the chipKIT one. For the chipKIT (if it is the right version) bootloader you can just ignore that programmer and use the normal pic32prog one.
I flashed the original bootloader but unable to test it because UECIDE is stuck at splash screen with Editor... message shown in the red status progress bar. Tried rebooting pc but it did not help. Is there any way to reset UEIDE without re-installation?
It sounds like a plugin has gone bad. Remind me what OS you are on?
Windows 10 x64
Ok, there's two things you can do:
C:\Users\<username>\AppData\Local\uecide is where things are located. Find
preferences.txt in there and delete it - that will reset your preferences to default. If that fails then you can delete the whole lot, though it'll then mean reinstalling all the packages.
If you leave behind
apt\cache (I think it's called) then you shouldn't need to download the files again, only install them.
Thank you Matt. UECIDE is working again after deleting preferences.txt.
But can't program the board with the original olimex-pinguino bootloader. "No target found" error message is shown. Everything is setup as shown in the attached pictures.
Problem solved. I found another bootloader for this board. It is compatible with UECIDE olimex-pinguino32 board package and uses ordinary COM port to flash programs.
There may be a problem with how UECIDE manages olimex packages. If both olimex-pinguino32 and olimex-pinguino32-obl are installed then only one board is shown in Hardware->Boards menu. It looks like olimex-pinguino32-obl overwites or corrupts olimex-pinguino32
Oops. I'll have to check that out...
Matt, this board has two UART ports. Serial1/UART2 is working fine, while Serial object sends data to USB port instead. How can I change it to use use UART1 pins instead?
I noticed that if Fubarino SD board is selected then Enable/Disable USB serial menu options are available in UECIDE, but they are missing if PIC32 Pinguino board is selected. Is this relevant to UART1 problem?
In chipKIT the serial ports, without USB, are numbered:
With USB they change to become:
So Serial0 is the object you are looking for.
Thank you Matt. Serial0 works fine now, zero index is the only one I haven't tried
I'm not sure whose idea it was to change the numbering like that when you have USB. Personally I'd have kept them the same and named the USB serial port something else, like USBSerial.
Yes it's a bit confusing to say the least