Commits

Elias Bakken committed db50c36

Done a lot of work with getting rev A2 to work and also prepare rev A3 for production

Comments (0)

Files changed (32)

Doc/Datasheets/AON6758.pdf

Binary file added.

Doc/Datasheets/BBB_SRM.pdf

Binary file modified.

Doc/Datasheets/DS8268-02.pdf

Binary file added.

Doc/Datasheets/MCP16321.pdf

Binary file added.

Doc/changelog_PCB.txt

-Changelog
-=========
- - Changed the PWM line of Heater_ext_1 to P9_14
- - Changed the PWM line of Heater_HBP to P9_16
- - Changed the PWM line of Heater_ext_2 to P8_13
- - Changed the Fault_x pin to P8_4
- - Changed the 3 pin dip switch for a 2-pin dip switch
- - Added a DNP pull-up on the CAT24C256 EEPROM memory.
- - Changed SCL and SDA for PCA9685 to I2C2 (i2c-3), the same as the EEPROM
- - Moved X10, X11, X12 out on lims.
- - Added three more end stops.
- - Added comparator LM339 as a driver for MOSFETs (296-9544-1-ND)
- - Moved the MOSFETs further apart
- - Made a separate ground domain (AGND) for the thermistors
- - Added three connectors for servos - should not be populated
- - Switched to 2x23 pins on both sides
- - Added a 100uF cap to compensate LC spikes
- - Switched sides for the MOSFET drivers (for easier debugging)
- - Added one more 0.1uF ceramic cap near VMM2.
- - Switched places for the caps near Y, Z, Ext1, Ext2 
- - Added more thermal vias for the SMDs
- - Switched the M24C16 EEPROM out with M24C256 to allow for proper addressing, 
- - Added 5.6K pullups on i2c-lines
- - Connected p9_1 to ground.
- - Placed the all heaters on dedicated PWM outputs from BB. 
- - Add a decoupeling cap to the levelshifter
- - Switched channels for ADC on Ext1 and Ext2?
- - Switched +5V and SYS_5V.
-

Doc/setup.txt

-SPI 2.1 does not work out of the box, perhaps it can be enabled in the 
-kernel. 
-Thus the spi1_cs1 pin must be toggled manually: 
-nCS1 = p9_42 = GPIO0_7 = ecap0_
-echo 0x7 > /sys/kernel/debug/omap_mux/ecap0_in_pwm0_out
-echo 7 > /sys/class/gpio/export
-echo out >  /sys/class/gpio/gpio7/direction
-echo 1 > /sys/class/gpio/gpio7/value
-echo 0 > /sys/class/gpio/gpio7/value
-
-
-For manually stepping SMD X: 
-DirX   = pin11 = GPIO1_13 = gpmc_ad13
-StepX  = pin12 = GPIO1_12 = gpmc_ad12
-FaultX = pin13 = GPIO0_23 = gpmc_ad9 
-
-echo 44 > /sys/class/gpio/export
-echo 45 > /sys/class/gpio/export
-echo 23 > /sys/class/gpio/export
-
-Set the nFault pin to input, disable pullup 
-echo 0x2F > /sys/kernel/debug/omap_mux/gpmc_ad9
-
-Both should be muxed to mode 7 on boot. 
-
-echo out > /sys/class/gpio/gpio44/direction 
-echo out > /sys/class/gpio/gpio45/direction 
-
-Value for SMD: 
-D0 = DECAY   = X
-D1 = MODE0   = X
-D2 = MODE1   = X
-D3 = MODE2 	 = X
-D4 = nRESET  = 1
-D5 = nSLEEP  = 1
-D6 = nENABLE = 0
-D7 = 		 = 0
-Trying 0x30..
-
-
-Configuration of EEPROM
-=======================
-Use the mkeeprom utility..
-
-
-DAC control
-=============
-DAC is located on spi2.0. 
-Use mode 1 (CPOL = 0, CPHA = 1).
-for 16bit words, the bytes have changed position?? - Instead, go for 8-bit words
-See scripts/dac.py for testing
-
-# Heaters
-=========
-Heater2 = Ext1 = p8_16 = GPIO1_14 = gpmc_ad14
-To turn on: 
-echo 0x07 >  /sys/kernel/debug/omap_mux/gpmc_ad2
-echo 46 > /sys/class/gpio/export
-echo out > /sys/class/gpio/gpio46/direction
-echo 1 > /sys/class/gpio/gpio46/value
-
-Heater1 = Ext2 = p8_14 = GPIO0_26 = gpmc_ad10
-echo 0x07 > /sys/kernel/debug/omap_mux/gpmc_ad10
-echo 26 > /sys/class/gpio/export
-echo out > /sys/class/gpio/gpio26/direction
-echo 1 > /sys/class/gpio/gpio26/value 
-
-
-PCA9685PW
-=========
-I2C2 connected together with I2C1 for now. 
-Adress: 0x70
-NIF5002 are N-channel MOSFETs, thus use INVRT = 0, OUTDR = 1
-MODE2 (0x01) bit 4 = INVRT = 0, bit 2 = 1
-i2cset -y 3 0x70 0x01 0x03
-
-i2cset -y 3 0x70 0x01 0x02 # Read mode1
-
-
-I2C for python
-==============
-Created the PWM-script 
-
-
 #REMOTE=root@10.24.2.124
 RPATH=/home/root/Replicape
 REMOTE=root@10.24.2.77
+DPATH=Dist/dist_`date +"%y_%d_%m"`/Replicape
+DNAME=Replicape_rev_A2-`date +"%y_%d_%m"`.tgz
 
 .PHONY : software firmware eeprom
 
 install_modules: 
 	unzip images/3.2.34.zip
 	cp -r images/3.2.34/ /lib/modules/ 
+
+dist: 
+	mkdir -p $(DPATH)
+	mkdir -p $(DPATH)/software
+	mkdir -p $(DPATH)/firmware
+	mkdir -p $(DPATH)/device_tree
+	mkdir -p $(DPATH)/eeprom
+	mkdir -p $(DPATH)/libs/pypruss
+	cp software/*.py $(DPATH)/software/
+	cp firmware/firmware_pru_0.bin $(DPATH)/firmware/
+	cp Device_tree/DTB/* $(DPATH)/device_tree/
+	cp eeprom/eeprom.js eeprom/bone.js eeprom/replicape_00A2.json $(DPATH)/eeprom/
+	cp -r libs/spi $(DPATH)/libs/
+	cp -r libs/pypruss/dist/* $(DPATH)/libs/pypruss
+	cp -r libs/i2c $(DPATH)/libs/
+	cd $(DPATH)/../ && tar -cvzpf ../$(DNAME) . && cd ..
+	scp Dist/$(DNAME) replicape@scp.domeneshop.no:www/distros/
+