Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC32 PINGUIONO's and SD
06-05-2012, 07:57 PM, (This post was last modified: 06-05-2012, 08:39 PM by mf01.)
#50
RE: PIC32 PINGUIONO's and SD
Hi Dale,

I did have another thought after all.

It occurred to me that due to the way the digitalw.c works as OTG P8 = RB13 = Micro P40 and OTG P30 = RD1 = Micro P10 (=YELLOWLED) and as the OTG and Micro cards have the same PIC32 chip and using the same SPI lines to connect to the SD card slot (except for SDCS) if I set SD.mount(40) and compile a program (using just these pins and the SPI functions) as a PIC32 Pinguino Micro, then the our two test programs would compile and could then be uploaded to a PIC32 Pinguino OTG. Initially I was slightly surprised that the program actually ran as intended as I had not made the changes to spi.c in my test environment but it on checking I found that the SD library files are written to specifically use SPI2 !

That the SimplifiedDataLoggerExample was compiled as a Micro is confirmed by the time and date stamp on the files written to the SD card (01 Jan 2012 11:00 GMT) (it seems to have converted from daylight saving time) - this is the default date & time that should be used if it is not an OTG board. To confirm this I recompiled as an OTG with SD.mount(8) and the file on the card had a noticeably different date (a spurious one as the SimplifiedDataLoggerExample does not set the RTCC).

I will have to think what this means - it might be that there is a problem with your specific Micro board (or that I just don't know what is going on Undecided ).

I wonder if there is anyone else reading this thread who has a PIC32 Pinguino Micro who would like to try and see what their board does? The only change in my "test environment" from X.3 r381 are to the SD library as included in post #40 above. Any SD.mount calls need to be SD.mount(40) for the Micro.

Regards

Dale,

to respond to your post #47 above, I think it is deliberate to ensure that the output is in a known state before it is enabled - doing it the other way round might result in an unnecessary transition.

Regards
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


Messages In This Thread
PIC32 PINGUIONO's and SD - by KiloOne - 19-03-2012, 02:32 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 21-03-2012, 10:47 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 22-03-2012, 08:17 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 22-03-2012, 08:27 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 23-03-2012, 10:36 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 02-05-2012, 02:34 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 02-05-2012, 04:08 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 02-05-2012, 07:53 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 02-05-2012, 09:33 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 03-05-2012, 12:17 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 03-05-2012, 04:35 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 04-05-2012, 03:20 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 04-05-2012, 09:53 AM
RE: PIC32 PINGUIONO's and SD - by pingotg - 04-05-2012, 03:35 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 04-05-2012, 09:44 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 04-05-2012, 11:25 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 12:23 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 12:46 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 01:14 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 01:27 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 10:58 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 01:19 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 01:51 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 02:36 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 04:51 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 05:58 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 07:22 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 08:04 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 09:18 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 09:22 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 10:37 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 11:01 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 11:05 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 11:50 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 11:57 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 10:42 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 10:47 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 11:30 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 02:01 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 03:30 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 03:36 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 03:43 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 03:53 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 05:41 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 07:04 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 07:18 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 07:41 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 07:57 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 09:42 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 08:21 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 08:39 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 08:47 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 09:12 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 09:20 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 09:23 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 09:27 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 09:30 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 09:39 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 09:47 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 10:19 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 11:04 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 11:53 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 07-05-2012, 12:09 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 12:25 AM
RE: PIC32 PINGUIONO's and SD - by pingotg - 07-05-2012, 12:33 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 12:34 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 07-05-2012, 09:09 AM
RE: PIC32 PINGUIONO's and SD - by pingotg - 07-05-2012, 09:43 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 01:24 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 07-05-2012, 02:01 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 07-05-2012, 02:38 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 03:28 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 07-05-2012, 04:05 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 04:39 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 07-05-2012, 04:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)