Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with PIC32-Pinguino-Micro and µSD-Interface
29-03-2012, 02:51 PM,
#11
RE: Problem with PIC32-Pinguino-Micro and µSD-Interface
Ok, after copying the adapted files (digitalw.c and SDMMC.c) to project i've another problem with fileio.h and fileio.c. Here the outputfile:

Board: PIC32 Pinguino Micro
Proc: 32MX440F256H
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/fileio.h:54:6: error: expected identifier or '(' before numeric constant
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/fileio.c:40:2: error: lvalue required as left operand of assignment
error while linking C:\Pinguino32X.2\examples\10.Libraries\SD\Dir.o

There is a problem with the global 'char SDCS;' in fileio.h...
Reply
29-03-2012, 09:13 PM,
#12
RE: Problem with PIC32-Pinguino-Micro and µSD-Interface
Will repair it asap.

Henk

(29-03-2012, 01:09 PM)cyberfreak305 Wrote: Hi Henk van Beek,

can you upload the new pin definitions in digitalw.c again because you have forget a "," in line 115 :-)
This is now correct:

#ifdef PIC32_PINGUINO_MICRO

const u32 portmask[]= { pB, pB, pB, pB, pB, pB, pB, pB, // 0-7
pB, pB, pD, pD, pD, pD, pD, pD, // 8-15
pB, pD, pD, pD, pG, pF, pE, pE, // 16-23
pE, pE, pE, pE, pE, pE, pC, pC, // 24-31
pG, pF, pF, pD, pD, pG, pG, pF, // 32-39
pG, pB }; // 40-41

const u32 pinmask[]= { _1, _2, _3, _4, _8, _9, _10, _11, // 0-7
_12, _14, _1, _2, _3, _4, _5, _6, // 8-15
_0, _7, _8, _11, _9, _1, _7, _6, // 16-23
_5, _4, _3, _2, _1, _0, _13, _14, // 24-31
_6, _4, _5, _9, -10, _8, _7, _0, // 32-39
_6, _13 }; // 40-41
#endif

Reply
30-03-2012, 09:44 PM, (This post was last modified: 30-03-2012, 09:46 PM by Henk van Beek.)
#13
RE: Problem with PIC32-Pinguino-Micro and µSD-Interface
Hello cyberfreak,

I've uploaded new digitalw.c and sd/fileio.c, fileio.h, sdmmc.c and sdmmc.h.

You can reach them: http://pinguino32.googlecode.com/svn/branches/x.3

Henk
(29-03-2012, 02:51 PM)cyberfreak305 Wrote: Ok, after copying the adapted files (digitalw.c and SDMMC.c) to project i've another problem with fileio.h and fileio.c. Here the outputfile:

Board: PIC32 Pinguino Micro
Proc: 32MX440F256H
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/fileio.h:54:6: error: expected identifier or '(' before numeric constant
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/fileio.c:40:2: error: lvalue required as left operand of assignment
error while linking C:\Pinguino32X.2\examples\10.Libraries\SD\Dir.o

There is a problem with the global 'char SDCS;' in fileio.h...

Reply
13-04-2012, 05:20 PM,
#14
RE: Problem with PIC32-Pinguino-Micro and µSD-Interface
Henk,

when I tried compiling a program for a PIC32 Pinguino OTG board that had previously compiled OK with your latest version of the SD library files that you uploaded to the x.3 branch on 30 March I got some errors. I have not tracked down all the problems yet but one problem seems to be caused by the extra "*/" you included at line 10 in the sdmmc.h file. Deleting the additional "*/" in a local copy of the file get rid of some of the problems.

Is there any chance you could remove this extra "*/" and re-submit the file.

Regards

Mark
Board = PIC32-Pinguino-OTG Rev C
OS = Linux Unbuntu 11.10 till 26 Apr 2012
OS = Linux Unbuntu 12:04 from 27 Apr 2012
Reply
13-04-2012, 09:53 PM,
#15
RE: Problem with PIC32-Pinguino-Micro and µSD-Interface
sdmmc.h repaired
Reply
14-04-2012, 09:43 AM,
#16
RE: Problem with PIC32-Pinguino-Micro and µSD-Interface
Henk,

thanks for the fast update - that has dealt with that issue now I just have to track down the others ;-)
Board = PIC32-Pinguino-OTG Rev C
OS = Linux Unbuntu 11.10 till 26 Apr 2012
OS = Linux Unbuntu 12:04 from 27 Apr 2012
Reply
12-12-2012, 10:15 PM,
#17
RE: Problem with PIC32-Pinguino-Micro and µSD-Interface
Hi all,
this may come with some delay and I don't have time to track down the details on why it did/didn't work: For me (pinguino micro, pinguino X.3 rev 399 IDE), it worked with the new code from Olimex's homepage (at least the DIR example). All I had to change was SD.mount(8) to SD.mount(40).
Cheers,
Hendrik
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)