PIC32MX270F256B Support?

Let us know what you think about the chipKIT, and what can be done to make it better!
Marevealous
Posts: 17
Joined: Tue Jul 19, 2016 10:41 am

Re: PIC32MX270F256B Support?

Post by Marevealous » Wed Aug 03, 2016 2:06 pm

Is there any tutorial how to add a new board?
I mean, I know that I will copy the "Lenny" directory, and also copy its definition in boards.txt, but I'm not sure, is that all?

I will also rename in those new files all "Lenny" occurences to "my_new_board", right?

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: PIC32MX270F256B Support?

Post by majenko » Wed Aug 03, 2016 2:20 pm

Creating a new board definition is quite a complex task and not something that most people would undertake. So there's not really any tutorials as such. There are still some aspects of those files that I don't fully understand (how all the analog tables and things relate together).

I have started work on a web-based program to build board definitions for you, but making it (thanks to PPS) is a rather complex task. It's going to be a long long time before it's even able to be tested...
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Marevealous
Posts: 17
Joined: Tue Jul 19, 2016 10:41 am

Re: PIC32MX270F256B Support?

Post by Marevealous » Thu Aug 04, 2016 10:28 am

Do you mean "Creating a new board definition" as in "creating new"?

For the start, I'd like just to copy the Lenny definition, rename it to something like "My_Board". Is this also complicated?

EDIT: I need working Serial0 and Serial1 for this board, also PWM and ADC. Will it work with Lenny board without any modifications?

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: PIC32MX270F256B Support?

Post by majenko » Thu Aug 04, 2016 6:51 pm

You will need to copy all the Lenny files and change them. The main thing to do is to set the right number of io pins in the header file and change all the entries in the pin tables in the c file to be what your setup is.

You might be better off starting with the dp32 files since it has a 28 pin chip not 44 pin, and change the chip type in the boards.txt file.

Sent from my SM-T555 using Tapatalk
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

rs2845
Posts: 18
Joined: Tue May 17, 2016 9:02 pm

Re: PIC32MX270F256B Support?

Post by rs2845 » Thu Aug 04, 2016 8:53 pm

Just wanted to say, you've also helped me as I was beginning to ask myself the same questions!

It'd be great if someone published a definitive, clear-cut guide as to the steps to take for either the 270F256B and other boards. Majenko your website tool will be great when completed!

guymc
Posts: 98
Joined: Mon Sep 24, 2012 3:24 pm

Re: PIC32MX270F256B Support?

Post by guymc » Thu Aug 04, 2016 10:42 pm

Well, there is a detailed guide about adding new board definition files (aka, variant files)

Go to the front page of chipkit.net and search for "board variant"

Cheers!

Post Reply