Code Monkey home page Code Monkey logo

platform-microchippic32's Introduction

PlatformIO Core

CI Build for PlatformIO Core CI Build for Docs CI Build for dev-platform examples CI Build for the Community Projects Latest Version PlatformIO Labs

Quick Links: Homepage | PlatformIO IDE | Registry | Project Examples | Docs | Donate | Contact Us

Social: LinkedIn | Twitter | Facebook | Community Forums

https://raw.githubusercontent.com/platformio/platformio-web/develop/app/images/platformio-ide-laptop.png

PlatformIO: Your Gateway to Embedded Software Development Excellence.

Unlock the true potential of embedded software development with PlatformIO's collaborative ecosystem, embracing declarative principles, test-driven methodologies, and modern toolchains for unrivaled success.

  • Open source, maximum permissive Apache 2.0 license
  • Cross-platform IDE and Unified Debugger
  • Static Code Analyzer and Remote Unit Testing
  • Multi-platform and Multi-architecture Build System
  • Firmware File Explorer and Memory Inspection

Get Started

Solutions

Advanced

Registry

Contributing

See contributing guidelines.

Telemetry / Privacy Policy

Share minimal diagnostics and usage information to help us make PlatformIO better. It is enabled by default. For more information see:

License

Copyright (c) 2014-present PlatformIO <[email protected]>

The PlatformIO is licensed under the permissive Apache 2.0 license, so you can use it in both commercial and personal projects with confidence.

SWUbanner

platform-microchippic32's People

Contributors

ivankravets avatar valeros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

platform-microchippic32's Issues

Typo on json file

There is a typo error on line 122 of the json file. Where it says cchipKIT-application-32MX250F128.ld it should say chipKIT-application-32MX250F128.ld This prevents compilation on the chipKit-pi board.

The compiler does not work on a x86_64 machine

Always I get:
sh: /packages/toolchain-microchippic32/bin/pic32-g++: No such file or directory

For example when running 'pio run' at the arduino-blink directory I get:
Processing pinguino32 (platform: microchippic32; board: pinguino32; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/microchippic32/pinguino32.html
PLATFORM: Microchip PIC32 1.5.3 > Olimex PIC32-PINGUINO
HARDWARE: 32MX440F256H 80MHz, 32KB RAM, 252KB Flash
PACKAGES: framework-arduinomicrochippic32 1.10403.0 (1.4.3), toolchain-microchippic32 1.40803.142 (4.8.3)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 28 compatible libraries
Scanning dependencies...
No dependencies
Compiling .pio/build/pinguino32/src/main.cpp.o
sh: /home/gmanev/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Няма такъв файл или директория
Compiling .pio/build/pinguino32/FrameworkArduinoVariant/Board_Data.c.o
sh: /home/gmanev/.platformio/packages/toolchain-microchippic32/bin/pic32-gcc: Няма такъв файл или директория
Compiling .pio/build/pinguino32/FrameworkArduino/HardwareSerial.cpp.o
sh: /home/gmanev/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Няма такъв файл или директория
Compiling .pio/build/pinguino32/FrameworkArduino/HardwareSerial_cdcacm.c.o
Compiling .pio/build/pinguino32/FrameworkArduino/HardwareSerial_usb.c.o
sh: /home/gmanev/.platformio/packages/toolchain-microchippic32/bin/pic32-gcc: Няма такъв файл или директория
sh: /home/gmanev/.platformio/packages/toolchain-microchippic32/bin/pic32-gcc: Няма такъв файл или директория
Compiling .pio/build/pinguino32/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/pinguino32/FrameworkArduino/Print.cpp.o
sh: /home/gmanev/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Няма такъв файл или директория
sh: /home/gmanev/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Няма такъв файл или директория
*** [.pio/build/pinguino32/src/main.cpp.o] Error 127
*** [.pio/build/pinguino32/FrameworkArduinoVariant/Board_Data.c.o] Error 127
*** [.pio/build/pinguino32/FrameworkArduino/HardwareSerial.cpp.o] Error 127
.......................

My machine is:
Linux 5.2.1-arch1-1-ARCH #1 SMP PREEMPT x86_64 GNU/Linux

New board: tinyWireless PIC32MX development board

Hi all,

I'd be keen to see if it was possible to add the TinyWireless development board that is based on a PIC32MX250F128D processor and includes a RFM69HW radio transceiver? I want to use it for some radio development and I think it will make a pretty good board combined with one of the platformio RFM69 radio libraries.

It looks like the board has the same (or very similar) pinout to the Fubarino Mini (already supported) so it should hopefully be pretty easy to add support for

Link to the board: https://modtronicsaustralia.com/shop/tinywireless-pic32-wireless-dev-board/
Link to board pinout: https://modtronicsaustralia.com/wp-content/uploads/2015/08/tinyWireless-technical-specifications.pdf

Is there anything else I need to do that would help the board get supported by platformio? Unfortunately I don't think I have the skills to add it myself (sadly)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Peripheral library (plib.h) not included in pic32mx

Hi,

The peripheral library which is no longer supported by chipkit-core (Arduino add-on) and MPLab X is missing in platformIO.

The plib files (plib.h and the file peripherals) can be found in the last version (abandoned) of MPIDE available here :

http://chipkit.net/wiki/index.php?title=MPIDE

following the path : \mpide-0150\hardware\pic32\compiler\pic32-tools\pic32mx\include

You need to add plib.h and the file peripherals in the pic32mx file of platformIO (which is located here : .platformio\packages\toolchain-microchippic32\pic32mx\include) to make it work.

Using this library you can deal with the pic32 funtions such as :

  • adc10
  • timers
  • spi
  • i2C
  • ...

Could be fun to have it directly in platformIO.

Pay attention that you can have some redundancy with some libraries that are added directly in the lib file of a project (I think there is a another timer.h library for arduino).

Regards,

Byran

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37369820-peripheral-library-plib-h-not-included-in-pic32mx?utm_campaign=plugin&utm_content=tracker%2F38217658&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38217658&utm_medium=issues&utm_source=github).

PIC32 Compiler issue

Hey there,

There seem to be problems with the PIC32 compiler:

Reference

Thank you.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40978987-pic32-compiler-issue?utm_campaign=plugin&utm_content=tracker%2F38217658&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38217658&utm_medium=issues&utm_source=github).

Add support for Microchip's Curiosity PIC32 MZEF board

Feature Request

Intro

Im trying to use a PIC32 to read in and process data at a high rate from a sensor. The best board solution that has currently been found is the Microchip Curiosity PIC32 MZ EF which has the PIC32MZ2048EFM100 IC. I have searched for support using this IDE for this board but have not found a solution. Any help you could provide would be very helpful.

Additional info

Also any worked arounds would be very much appreciated. Thanks!


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Chipkit_dp32 link error on EL Capitan

I use 3.5.4 on Mac OS X El capitan. I do build chipkit_dp32 target. I have error. I seem problem is fail in link script.

$ platformio run -vv
Processing chipkit_dp32 (platform: microchippic32; board: chipkit_dp32; framework: arduino)

PLATFORM: Microchip PIC32 > Digilent chipKIT DP32
SYSTEM: 32MX250F128B 40MHz 32KB RAM (120KB Flash)
pic32-g++ -o “/Users/hiroki/Develop/pio/pic32_test/src/main.ino.cpp” -x c++ -fpreprocessed -dD -E “/var/folders/8g/n2rkx2v94mnbtsxz0g8f70n00000gn/T/tmp_YOpSq”
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 28 compatible libraries
Scanning dependencies…
No dependencies
pic32-g++ -o .pioenvs/chipkit_dp32/src/main.ino.cpp.o -c -fno-exceptions -w -O2 -mdebugger -mno-smart-io -mprocessor=32MX250F128B -ffunction-sections -fdata-sections -Wcast-align -fno-short-double -ftoplevel-reorder -G1024 -DF_CPU=40000000L -DMPIDEVER=16777998 -DMPIDE=150 -DPLATFORMIO=30504 -D_BOARD_DP32_ -D_USE_USB_FOR_SERIAL_ -DARDUINO=10805 -DARDUINO_ARCH_PIC32 -DIDE=Arduino -Isrc -I/Users/hiroki/.platformio/packages/framework-arduinomicrochippic32/cores/pic32 -I/Users/hiroki/.platformio/packages/framework-arduinomicrochippic32/variants/DP32 src/main.ino.cpp
pic32-g++ -o .pioenvs/chipkit_dp32/firmware.elf -T chipKIT-application-32MX250F128.ld -w -Os -mdebugger -mprocessor=32MX250F128B -mno-peripheral-libs -nostartfiles -Wl,–gc-sections /Users/hiroki/.platformio/packages/framework-arduinomicrochippic32/cores/pic32/cpp-startup.S -Wl,–script=chipKIT-application-COMMON.ld .pioenvs/chipkit_dp32/src/main.ino.cpp.o -L.pioenvs/chipkit_dp32 -L/Users/hiroki/.platformio/packages/framework-arduinomicrochippic32/cores/pic32 -L/Users/hiroki/.platformio/packages/framework-arduinomicrochippic32/variants/DP32 -Wl,–start-group .pioenvs/chipkit_dp32/libFrameworkArduinoVariant.a .pioenvs/chipkit_dp32/libFrameworkArduino.a -lm -Wl,–end-group
/Users/hiroki/.platformio/packages/toolchain-microchippic32/bin/bin/gcc/pic32mx/4.8.3/…/…/…/…/bin/pic32-ld:chipKIT-application-COMMON.ld.00:55: warning: memory region kseg0_eeprom_mem' not declared /Users/hiroki/.platformio/packages/toolchain-microchippic32/bin/bin/gcc/pic32mx/4.8.3/../../../../bin/pic32-ld:chipKIT-application-COMMON.ld.00:61: warning: memory regionexception_mem’ not declared
/Users/hiroki/.platformio/packages/toolchain-microchippic32/bin/bin/gcc/pic32mx/4.8.3/…/…/…/…/bin/pic32-ld:chipKIT-application-COMMON.ld.00:456: warning: memory region kseg0_program_mem' not declared /Users/hiroki/.platformio/packages/toolchain-microchippic32/bin/bin/gcc/pic32mx/4.8.3/../../../../bin/pic32-ld:chipKIT-application-COMMON.ld.00:556: warning: memory regionconfigsfrs’ not declared
/Users/hiroki/.platformio/packages/toolchain-microchippic32/bin/bin/gcc/pic32mx/4.8.3/…/…/…/…/bin/pic32-ld:chipKIT-application-COMMON.ld.00:596: warning: memory region `kseg1_data_mem’ not declared
/Users/hiroki/.platformio/packages/toolchain-microchippic32/bin/bin/gcc/pic32mx/4.8.3/…/…/…/…/bin/pic32-ld: section .reset loaded at [9d001000,9d001007] overlaps section .startup loaded at [9d001000,9d0011ff]
collect2: error: ld returned 255 exit status
*** [.pioenvs/chipkit_dp32/firmware.elf] Error 255
========================== [ERROR] Took 1.57 seconds ==========================

Chipkit example for Max32 does not compile

NOTE this issue was originally raised here https://community.platformio.org/t/chipkit-max32-example-doesnt-compile/843.

Also Ivan please note that in some experimenting and exploring of this issue I found that it worked fine under Ubuntu, which I also have installed on my PC. The example works, so the issue appears to be with my PC / OS / PlatrormIO install somehow. Happy to attempt to reinstall everything from scratch if you think that will help. I've already tried it once but perhaps I didn't fully uninstall and delete everything relevant before attempting to reinstall.

Hi Ivan,
Not entirely sure how to replace the toolchain. The library structure of the download in the link you gave me is quite different to the one already in the packages module. I tried just adding the new library to the existing folder but (of course) got the same error. So I tried deleting everything in the toolchain-microchippic32 folder except the package.jason file, and copying the chipkig-core from the download into it. I now get a pic32-g++ not found error. Hardly surprising as it's hidden another couple of folders down in the new library. It's in toolchain-microchippic32/chipkit-core/pic32/compiler/pic32-tools/bin/bin/gcc/ Oddly there is another one one level up, under the second bin/ folder.
So I eventually worked out that the folders I needed from the download were: chipkit-core/pic32/compiler/pic32-tools/bin/, chipkit-core/pic32/compiler/pic32-tools/lib, and chipkit-core/pic32/compiler/pic32-tools/pic32mx to be placed in toolchain-microchippic32. This way the library structure was the same and a cursory inspection of the contents of the libraries indicated that all the required files were present. The other libraries in the download; cores, libraries, tools, and variants, I ignored as I assumed they were already present somewhere else in ~/.platformio. Tried the compile again but got the original error back again, about crtbegin.o and crtend.o being multiply defined.
Just for fun I copied the rest of the libraries in the download, and the other files (boards.txt etc) into the toolchain-microchippic32 folder and tried the compile again. Same result.
Is there any other information I can give you that might point you in the direction of the error? A verbose listing of the compile and link maybe?
For the record I tried it with the -v option. here's the result.

ian@Ian-Mint ~/PlatformIO/ChipKitTest2 $ pio run --verbose
[Thu Oct 6 16:40:19 2016] Processing mega_pic32 (platform: microchippic32, board: mega_pic32, framework: arduino)

Collected 32 compatible libraries
Looking for dependencies...
Project does not have dependencies
pic32-g++ -o .pioenvs/mega_pic32/firmware.elf -w -Os -mdebugger -mprocessor=32MX795F512L -mno-peripheral-libs -nostartfiles -Wl,--gc-sections /home/ian/.platf
ormio/packages/framework-arduinomicrochippic32/cores/pic32/cpp-startup.S /home/ian/.platformio/packages/framework-arduinomicrochippic32/cores/pic32/crti.S -Wl
,--script="chipKIT-application-32MX795F512.ld" -Wl,--script=chipKIT-application-COMMON.ld .pioenvs/mega_pic32/src/blink.o -L/home/ian/.platformio/packages/fra

mework-arduinomicrochippic32/cores/pic32 -L/home/ian/.platformio/packages/framework-arduinomicrochippic32/variants/Max32 -L.pioenvs/mega_pic32 -Wl,--start-gro
up .pioenvs/mega_pic32/libFrameworkArduinoVariant.a .pioenvs/mega_pic32/libFrameworkArduino.a -lm -Wl,--end-group
/home/ian/.platformio/packages/toolchain-microchippic32/bin/bin/../../lib/gcc/pic32mx/4.8.3/size/crtbegin.o:(.sdata+0x0): multiple definition of dso_handle
'
/home/ian/.platformio/packages/toolchain-microchippic32/bin/bin/../../lib/gcc/pic32mx/4.8.3/size/crtbegin.o:(.sdata+0x0): first defined here
/home/ian/.platformio/packages/toolchain-microchippic32/bin/bin/../../lib/gcc/pic32mx/4.8.3/size/crtend.o:(.dtors+0x0): multiple definition ofDTOR_END'
/home/ian/.platformio/packages/toolchain-microchippic32/bin/bin/../../lib/gcc/pic32mx/4.8.3/size/crtend.o:(.dtors+0x0): first defined here
/home/ian/.platformio/packages/toolchain-microchippic32/bin/bin/../../lib/gcc/pic32mx/4.8.3/size/crtend.o:(.tm_clone_table+0x0): multiple definition of `__TMC
_END
'
/home/ian/.platformio/packages/toolchain-microchippic32/bin/bin/../../lib/gcc/pic32mx/4.8.3/size/crtend.o:(.tm_clone_table+0x0): first defined here
/home/ian/.platformio/packages/toolchain-microchippic32/bin/bin/gcc/pic32mx/4.8.3/../../../../bin/pic32-ld: Link terminated due to previous error(s).
collect2: error: ld returned 255 exit status
*** [.pioenvs/mega_pic32/firmware.elf] Error 255

Reply

ivankravetsPlatformIO Plus Team9h
Please move issue here https://github.com/platformio/platform-microchippic32/issues

Please add support for PIC32MK1024MCM

THe targetted eval board can be PIC32MK MCM Curiosity Pro from Microchip.
I can provide one if anyone interested in adding this board
Thanks for your help.

New releases of chipKIT-core not being picked up

New versions of the chipKIT core are not being picked up when they are released. PlatformIO thinks the current version is 1.3.0, but there have been 1.3.1 and 1.4.0 releases in the meantime.

There is an upcoming 1.4.1 release planned, which is why this is coming up.

Please add support for Microchip PIC32 MX450F128L

What kind of issue is this?

  • Question.
    This issue tracker is not the place for questions. If you want to ask how to do something,
    or to understand why something isn't working the way you expect it to,
    use Community Forums or Premium Support

  • PlatformIO IDE.
    All issues related to PlatformIO IDE should be reported to appropriate repository:
    PlatformIO IDE for Atom or
    PlatformIO IDE for VSCode

  • Development Platform or Board.
    All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
    should be reported to appropriate repository related to your hardware
    https://github.com/topics/platformio-platform

  • Feature Request.
    Start by telling us what problem you’re trying to solve. Often a solution
    already exists! Don’t send pull requests to implement new features without first getting our
    support. Sometimes we leave features out on purpose to keep the project small.

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

You can erase any parts of this template not applicable to your Issue.


Configuration

Operating system:

PlatformIO Version (platformio --version):

Description of problem

Steps to Reproduce

Actual Results

Expected Results

If problems with PlatformIO Build System:

The content of platformio.ini:

Insert here...

Source file to reproduce issue:

Insert here...

Additional info

Segmentation fault when uploading

pic32prog gives a segmentation fault when uploading:

[Thu Aug 18 09:32:16 2016] Processing chipkit_uc32 (platform: microchippic32, board: chipkit_uc32, framework: arduino)
--------------------------------------------------------------------------------
MethodWrapper(["upload"], [".pioenvs/chipkit_uc32/firmware.hex"])
Looking for upload port/disk...

Warning! Please install `99-platformio-udev.rules` and check that your board's PID and VID are listed in the rules.
https://raw.githubusercontent.com/platformio/platformio/develop/scripts/99-platformio-udev.rules


Auto-detected: /dev/ttyUSB0
"/home/dolf/.platformio/packages/tool-pic32prog/pic32prog" -b 115200 -d "/dev/ttyUSB0" .pioenvs/chipkit_uc32/firmware.hex
Programmer for Microchip PIC32 microcontrollers, Version 2.0.224
Segmentation fault
scons: *** [upload] Error 139
========================= [ ERROR ] Took 0.37 seconds =========================

It works with Arduino IDE, which calls the same command with a subtle difference. Swapping -b 115200 and -d /dev/ttyUSB0 fixes this issue.

See sergev/pic32prog#27

UDPEchoServer does not compile (with chipkit uC32)

I'm currently trying to program my chipkit uC32 to deal with the Microchip ENC28J60-H (Olimex version of that chip) which is an Ethernet connector managed through the SPI connector of the chipkit.

I used the PmodNIC and DNETcK libraries given here :

https://github.com/DavidWrigley/RGB/tree/master/chipKIT/RGB_TEST/libary_backup1

When I compile the code given in the library (search UDPEchoServer) using MPIDE I can generate a UDP server. Anyway, it compiles and it works. I also tried on chipkit-core, I got an error concerning a too long definition. I corrected it by modifying the library and it works also with chipkit-core now (with some warnings about the casting but it works).

Anyway, I also tried to compile the included UDPEchoServer included in PlatformIO : .platformio/packages/framework-arduinomicrochippic32/libraries/DEIPcK/examples/UDPEchoServer/UDPEchoServer.ino and it doesn't work either. It seems that the error is the same :

error.txt

I checked in DEIPck.h and it seems that the classes are defined but are not recognized (I didn't find iPv4 BTW).

I also checked the DNETcK.h and it seems to contain iPv4 and the other classes but still not recognized.

chipKIT-core 2.0.6 platform update request

chipKIT-core 2.0.6 has been out for a bit and has some new boards in it including the Fubarino Mini 2.0. Additionally, new features like USB HID and bug fixes.

Is there are a chance the platformIO’s version of chipKit can be updated to that?

Upload to PIC32-OTG not possible

Hey there,

I have an issue uploading my compiled code to the microcontroller. I've described it here more in detail:

Click me

In a nutshell:

  • My board seems to be installed correctly, but does not get any COM port assigned
  • Using Pinguino IDE I cannot upload everything
  • platformio does not provide any output
  • the correct toolchain is installed

Thank you!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40691593-upload-to-pic32-otg-not-possible?utm_campaign=plugin&utm_content=tracker%2F38217658&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38217658&utm_medium=issues&utm_source=github).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.