Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SPI on PIC32
22-08-2012, 08:46 AM,
#1
SPI on PIC32
Hello

I am Newbie trying to write to my Gameduino board, all works good in the arduino IDE but I cannot get even basic SPI to work in Pinguino-C. The following code reproduces the problem on X.3 Ver 399

Code:
void setup()
{
  SPI.begin();
}

void loop()
{
}

If I select "Pinguino 2550" as the target board it compiles OK

If I select "PIC32 Pinguino OTG" (which is my board) it gives "error while linking..."

It is my first time to use the PIC32 or the Pinguino so it is a bit early for me to debug this myself, does anyone have an easy answer to fix this so I can move on to convert my real programs?

tks
Reply
22-08-2012, 02:52 PM,
#2
RE: SPI on PIC32
I used SPI.init() and it was OK.

John
Reply
23-08-2012, 08:25 AM,
#3
RE: SPI on PIC32
(22-08-2012, 02:52 PM)pingotg Wrote: I used SPI.init() and it was OK.

John

Thank You, this seems to work

I'm copying an arduino program, looks like I have a bit to learn yet..
Reply
23-08-2012, 11:46 AM,
#4
RE: SPI on PIC32
For other Newbies..

What made this a *lot* clearer to me was finding the file C:\PinguinoX.3\p32\pdl\spi.pdl32

The other files in this folder will help me to find a lot of the definitions I could not find (or even understand as this is C not C++ !)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)