Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
boards:sdxl [2015/03/09 09:05]
darron [Majenko SDXL]
boards:sdxl [2019/07/10 07:56] (current)
darron [Pickle Microchip PIC ICSP]
Line 11: Line 11:
 A popular use of this board and the original is to run [[tools:retrobsd|RetroBSD]]. A popular use of this board and the original is to run [[tools:retrobsd|RetroBSD]].
  
-Since this is such a large device I chose to mount it adjacent to a bread-board+Since this is such a large device I chose to mount it adjacent to a solder-less breadboard
 rather than acquire a breadboard capable of housing it. This is something to rather than acquire a breadboard capable of housing it. This is something to
-consider.+consider before attaching the headers. 
 + 
 +It must be pointed out that the PIC32MX795F512H only has a guaranteed cell endurance of 1000 erase/write cycles. It's hard to recommend this device for development work. 
 + 
 === Pinout === === Pinout ===
 <code> <code>
Line 20: Line 24:
      GND                           GND      GND                           GND
      3V3P                          3V3      3V3P                          3V3
-           RD8          RF5    29-TX +           RD8          RF5    29-TX  TX2 
-     1       RD9          RF4    28-RX+RX4  1       RD9          RF4    28-RX  RX2
            RD10         RB15      A0            RD10         RB15      A0
-           RD11         RB14      A1+           RD11         RB14      A1  TX5
            RD0          RB13      A2            RD0          RB13      A2
            RC13         RB12      A3            RC13         RB12      A3
            RC14         RB11      A4            RC14         RB11      A4
-     7       RD1          RB10      A5 +TX4  7       RD1          RB10      A5 
-     8-RX    RD2          RB9       A6  ICSP       RPi +RX1  8-RX    RD2          RB9       A6 
-     9-TX    RD3          RB8       A7  ----       --- +TX1  9-TX    RD3          RB8       A7  RX5 
-     10      RD4          RB6       A8  PGC  470R  GPIO10 +     10      RD4          RB6       A8  PGC 
-     11      RD5          RB7       A9  PGD  470R  GPIO11 +     11      RD5          RB7       A9  PGD 
-     12      RD6                   GND  VSS        GND+     12      RD6                   GND  VSS
      13      RD7                   3V3  VDD      13      RD7                   3V3  VDD
-     14      RF0          !MCLR    RST  VPP  470R  GPIO9 +     14      RF0          !MCLR    RST  VPP 
-     15      RF1          RB0      A10+     15      RF1          RB0      A10  
      16      RE0          RB1      A11      16      RE0          RB1      A11
      17      RE1          RB2      A12      17      RE1          RB2      A12
      18      RE2    R   RB3      A13      18      RE2    R   RB3      A13
      19      RE3    E   RB4      A14      19      RE3    E   RB4      A14
-     20      RE4    S   RG9    27-SS +     20      RE4    S   RG9    27-SS  RX6 
-     21      RE5    E   RG8   26-SDO +     21      RE5    E   RG8   26-SDO  TX3 
-     22      RE6      T   RG7   25-SDI +     22      RE6      T   RG7   25-SDI  RX3 
-LED  23      RE7          RG6   24-SCK+LED  23      RE7          RG6   24-SCK  TX6
      GND                           GND      GND                           GND
      +-----------MICRO-SD------------+      +-----------MICRO-SD------------+
Line 53: Line 57:
 === Pickle Microchip PIC ICSP === === Pickle Microchip PIC ICSP ===
  
-Using [[:projects:pickle|Pickle]] on a Raspberry Pi we may perform ICSP (see either photo).+Using [[:projects:pickle|Pickle]] on a [[:boards:rpi|Raspberry Pi]] we may perform ICSP (see either photo).
  
 == Configuration == == Configuration ==
  
-The device configuration will vary depending on what version of a RPi you have, here is an example for my RPi 2B (see bottom photo).+The device configuration will vary depending on what version of a [[boards:rpi|RPi]] you have, here is an example for my [[:boards:rpi|RPi]] 2B (see bottom photo).
  
 <code> <code>
Line 66: Line 70:
 PGC=19 PGC=19
 PGD=13 PGD=13
-PGM=255+PGM=-1
 </code> </code>
  
Line 90: Line 94:
            [PE]       RIPE_06_000201.hex            [PE]       RIPE_06_000201.hex
 </code> </code>
 +
 +=== Boot loader ===
 +
 +USB boot loader firmware can be built with the [[:tools:xc32|MPIDE]] compiler and the build process is documented [[:projects:chipkit32|here]].
 +
 +Here we program the loader then verify it.
 +<code>
 +p32 program firmware/MAJENKO_SDXL.hex 
 +Total: 5648
 +Time: 0:00.60s
 +p32 verify firmware/MAJENKO_SDXL.hex
 +Total: 5648 Fail: 0
 +Time: 0:00.47s
 +</code>
 +
 +=== Standalone ===
 +
 +If you program this board without a boot loader you can use the following configuration which is the default used by this device.
 +<code>
 +/* DEVCFG3 */
 +#pragma config FVBUSONIO = OFF
 +#pragma config FUSBIDIO = OFF
 +#pragma config FCANIO = ON
 +#pragma config FETHIO = ON
 +#pragma config FMIIEN = ON
 +#pragma config FSRSSEL = PRIORITY_7
 +#pragma config USERID = 0x0000
 +
 +/* DEVCFG2 */
 +#pragma config FPLLODIV = DIV_1
 +#pragma config UPLLEN = ON
 +#pragma config UPLLIDIV = DIV_2
 +#pragma config FPLLMUL = MUL_20
 +#pragma config FPLLIDIV = DIV_2
 +
 +/* DEVCFG1 */
 +#pragma config FWDTEN = OFF
 +#pragma config WDTPS = PS1024
 +#pragma config FCKSM = CSECME
 +#pragma config FPBDIV = DIV_1
 +#pragma config OSCIOFNC = OFF
 +#pragma config POSCMOD = EC
 +#pragma config IESO = OFF
 +#pragma config FSOSCEN = OFF
 +#pragma config FNOSC = PRIPLL
 +
 +/* DEVCFG0 */
 +#pragma config CP = OFF
 +#pragma config BWP = OFF
 +#pragma config PWP = OFF
 +#pragma config ICESEL = ICS_PGx2
 +#pragma config DEBUG = OFF
 +</code>
 +
 +
 +=== Resources ===
 +[[http://doc.majenko.co.uk/ds/DS1183.pdf|Manual]]