![]() |
Forum Index : Microcontroller and PC projects : Arduino Environment for PIC32
Author | Message | ||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
I've had someone request to use the Arduino IDE with the CGMICROKIT. This would forgo the MMBASIC that is loaded on the chip and load it with the code developed in the Arduino IDE. I've found that there is support for the '120, the '250, and the '270 in a board support package called chipKIT. I've tried using the IDE to make a hex file and PICKIT3 to load that hex file. I thought that one of these would work at least with some simple blinky test code. But nope. So I tried a copy/edit of one of the boards to make a '170 flavor, but still no blinky. Still going down a rabbit hole trying to see what I missed, but I thought I would ask here if anyone has done this. Micromites and Maximites! - Beginning Maximite |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
Probably a daft question but I suspect a chipKit-specific/Arduino-specific bootloader is needed (and is probably CPU-specific). Is one, and did you install it? John |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
There are some ugly files that I modified that end in ".ld" that have bootloader and non-bootloader options. I modified the nobootloader file. For example: chipKIT-application-32MX250F128.ld chipKIT-application-32MX250F128-nobootloader.ld No need for bootloader if I'm using the PICKIT 3 to program. I amuse. Micromites and Maximites! - Beginning Maximite |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
I don't want the bootloader because the console pins won't be right. Micromites and Maximites! - Beginning Maximite |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
You're right that you don't need a bootloader with the PICkit3 but I suspect the Arduino IDE expects the right bootloader. Unless it can talk direct to a PICkit3, but I think not and anyway typical Arduino users would not have or want a PICkit. John |
||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
Does anything at fubarino.org help? Visit Vegipete's *Mite Library for cool programs. |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
The Arduino IDE has an option to build a hex file that I can read using the PICKIT3 software. I'm not sure what programmer would integrate with the Arduino IDE. Micromites and Maximites! - Beginning Maximite |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
Fubarino is a subset of the chipKIT stuff. I didn't find anything at the site. Micromites and Maximites! - Beginning Maximite |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
Well... if the user will have a PICkit3 then all should be OK - though rather painful. So... why did you need to change any .ld file? None already that targetted your board or what? (Yes they're horrible.) John |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
You can probably look at a few hex files that work (ones not from your new Arduino system) and compare with one that's from the Arduino system to figure what's wrong. As you'll know, you'll need the DEVCFGn bytes with sane values. John |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
True that, but perhaps improvement later. Correct. Micromites and Maximites! - Beginning Maximite |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
I'm sure I'm zigging when I should be zagging. Micromites and Maximites! - Beginning Maximite |
||||
isochronic Guru ![]() Joined: 21/01/2012 Location: AustraliaPosts: 689 |
This looks similar to the cgmicrokit scenario. Not sure if it helps but - Chipkit / Agilent sometimes use a wiki for docos, there is a recent update , worth a look |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
Sounds like the problem is in the .ld and/or that the hex file expects the matching bootloader and/or the hex is not adapted to the specific PIC32 variant. You can check the latter two by hunting around the hex. If it's wrong the .ld may well be the cause. E.g. the hex may have no start addr or one that jumps into the bootloader you've not got. John |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |