Love UECIDE? Why not consider supporting the development?

assigning pins to functions

assigning pins to functions

Postby GastonLagaffe » Tue Jan 10, 2017 12:04 pm

Salut,

just a question for understanding:
The pins used for SPI or I2C are defined in the boards definition and not in the bootloader. In my concrete case I have a chip with the fubarino SD bootloader and want to use the Lenny boards definitions. I assume this is possible.
(I have re-compiled the fubarino bootloader to match the CPU frequency)

Ciao, Mathias
GastonLagaffe
 
Posts: 66
Joined: Thu May 15, 2014 4:22 pm
Location: Germany
I use UECIDE on: Windows
 

Re: assigning pins to functions

Postby matt » Tue Jan 10, 2017 1:04 pm

I2C is always fixed in hardware in the chip. You can't change that.

The chips on the Fubarino SD cannot map anything. They are 100% hard coded. You can only re-map peripherals on chips with PPS - MX1xx, MX2xx, certain MX3xx and MX4xx - all others are fixed in hardware.

SPI can only re-map the SDI/SDO and SS pins - the SCK is fixed in hardware.
Why not visit my eBay shop? http://stores.ebay.co.uk/Majenko-Technologies
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".
matt
Site Admin
 
Posts: 1307
Joined: Sun Jul 07, 2013 11:37 am
I use UECIDE on: Linux
 

Re: assigning pins to functions

Postby GastonLagaffe » Tue Jan 10, 2017 1:43 pm

Salut Matt,
thanks for the reply - I was wrong: I use the fubarino Mini bootloader as this board uses the PIC32MX250f128D chip. Based on your comment I dived into the chip details and found SDA1/2, SCL1/2 and SCK1/2 fixed on their pins and the Lenny pin assignment reflects this. So MOSI, MOSI and SS are remapped according to the board definition file at compile time. If that´s the case, I am fine

Ciao, Mathias
PS: it is amazing how fast your detail knowledge drops out of your brain after 4 weeks in hospital ;)
GastonLagaffe
 
Posts: 66
Joined: Thu May 15, 2014 4:22 pm
Location: Germany
I use UECIDE on: Windows
 
 

Return to Problems with Boards

Who is online

Users browsing this forum: No registered users and 1 guest