chipKIT® Development Platform

Inspired by Arduino™

Ethernet library setup / example help - MPlab X - MX 7 Pro

Created Wed, 03 Dec 2014 15:11:46 +0000 by Jackix


Jackix

Wed, 03 Dec 2014 15:11:46 +0000

Hi.

INTRO: Im new to this forum and i don't know where to ask this question. I have recently bought a mx 7 board, and I started using the MP IDE programmer to program the mx 7 but wanted to start using mplab x. This wasn't a problem, just downloaded the xc32 compiler and I was good to go.

I wanted to try and use the ethernet connection on the board, but noticed that all the librarys for MPIDE are in c++ and they dosn't seem to be compatible.

INFO: I looked at the ethernet libraries provided from Microchip for the uC. The problem is that all the examples i found in the MLA's are for wifi.

QUESTION:

  1. Can I use the libraries for the MPIDE in mplab x?
  • If yes. Can you tell me how? or show me a project/example?
  1. Dose anyone have a mplab x project for the mx 7 where they used the ethernet controller?
  • If yes. Can i see it for info on setting up the registers / use of libraries

I don't know if this is the correct place to post this kind of request / question? I would really appreciate any help i can get from you guys :)


Jackix

Thu, 04 Dec 2014 13:03:13 +0000

I am currently working on setting up all the ethernet files from the MPIDE example in a cpp project in mplab x using the XC32 c++ compiler.

Have anyone tried this before and what were the results? :)


Jacob Christ

Mon, 02 Mar 2015 04:11:09 +0000

Hi. QUESTION:

  1. Can I use the libraries for the MPIDE in mplab x?
  • If yes. Can you tell me how? or show me a project/example?

I don't work for Microchip but I am pretty sure the answer is yes. There are example that out there where Keith from Digilent has gotten MPIDE projects debugging in MPLAB and I'm pretty sure he had Microchip's help in doing so.

I personally have never done this and don't know how.

Jacob


EmbeddedMan

Mon, 02 Mar 2015 21:18:01 +0000

Jackix,

Yup, you totally can. And it's not too hard either. We're working on a document that describes exactly the steps you need to take to use MPLAB X to edit and debug, but use UECIDE (called from MPLAB X) to do the compile. It's really slick, since you can easily use a hardware debugger like the PICKIt3 to step through your sketch or library code.

I'm not exactly sure when it will be ready, but we already have a first version being reviewed, so it should be pretty soon.

*Brian


Jackix

Wed, 04 Mar 2015 07:22:58 +0000

Hi

I am delighted to hear that this is somthing you are working on, since the programming interface in MPIDE is very sparse and different compaired to MPLAB/most other compilers.

The project I were working on is completed, I solved it by implementing the code purely in MPIDE. I have never worked in the arduino environment and I can see why it is helpfull if you are new to programming, but I found it rather limiting and difficult to do anything if it was a little outside the basic boundaries of the libraries. This is mainly because debugging of the code were close to impossible in the compiler.

This beeing said im looking forward to reading the document and once again using MPLAB to programm the mx7 :)

*Thomas