Replies: 6 comments 2 replies
-
I don't know much about platformio, but looking at their database there is the UBW32 MX460 variant available: https://docs.platformio.org/en/latest/boards/microchippic32/ubw32_mx460.html |
Beta Was this translation helpful? Give feedback.
-
thank you. I have already seen this site. but I can't find a doc to match the mcu pins (E0) and arduino pins (0,1,2 ..) used in a program and why chipkit refers to an arduino.h file which seems to correspond to a mega2560? |
Beta Was this translation helpful? Give feedback.
-
Yeah, my apologies for that. The MX460 version of UBW32 was discontinued a long time before any support was added to chipKIT for UBW32, and even then, the support that is there is extremely minimal and not obvious to a new user. It's been many years since I've looked at the UBW32 support in chipKIT - I'll dig into it this weekend and report back here everything I find. |
Beta Was this translation helpful? Give feedback.
-
EmbeddedMan: yes it's old board, but it's only i have. that's why i try to use mx4 pro board environement. majenkotech : yes it's my reasoning too, but the only working code is if i use digital pin 1: `#define LED_BUILTIN 1 void setup() it seems like the pin mapping was compil from pins_arduino.h located at: .....packages\framework-arduino-avr....!! .that it choc me , why not from: i try with arduino IDE and UECIDE i have same probléme........ maybe a path probleme? |
Beta Was this translation helpful? Give feedback.
-
OK now it's work!!!! While exploring the chipkitcore files, I noticed that the mx4-pro and the ubw460 did not have the same board_data.c and .h file |
Beta Was this translation helpful? Give feedback.
-
No, I don't think this is necessary. I only added 4 lines to a file only used by platformio.et for arduino, after a cleanup and and clean reinstall in another directory, it works. Again thanks for your suggestions which prompted me to take a close look at the structure of chipkitcore. |
Beta Was this translation helpful? Give feedback.
-
Hi, i juste start whith chipkit, insatling on vscode and platformio pluging.
I make tests on UBW32 board( pic32mx460f512 version).
For start, i want a simple blink example. It compil fine, load fine, but nothing blink??
So....in .platformioconfig there no ubw32 460 board environement, i choose mx4pro who have the same chip, but not the same buidin leds.
On ubw32 460 leds are connected to E0,1,2,3.
On mx4pro documentation, E0....are maped to 98..pin. i try, nothing blink. After ride up from pinmode fonction, i find pin map on arduino.h file. PortE and pin 0 maped to 1number pin.i try and now it blinks!
Arduino.h pin map seems to refert to mega boad.
How can i know the good pin map for my board or for mx4pro similar board
Thanxs.
Beta Was this translation helpful? Give feedback.
All reactions