Hi,
I've posted this on the github but found out afterwards this more appropriate place...
I'm running OS X Snow Leopard (10.6.8)
I've flashed the bin found there : http://synthetos.github.io/g2/ (TinyG2_Due-edge-078.03-default.bin)
...On an Arduino Due, using bossac Version 1.3a... here is my output :
MacBookPro:macosx lincob$ ./bossac -p tty.usbmodem1d11 -e -w -v -b TinyG2_Due-edge-078.03-default.bin
Erase flash
Write 125860 bytes to flash
[==============================] 100% (492/492 pages)
Verify 125860 bytes of flash
[==============================] 100% (492/492 pages)
Verify successful
Set boot flash true
MacBookPro:macosx lincob$
I've read somewhere that the firmware on this page may be quite old so i've build my own from the edge branch :
MacBookPro:TinyG2 lincob$ make PLATFORM=gShield SETTINGS_FILE=settings_default.h
Make: /Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.2/bin:/Library/Frameworks/GDAL.framework/Programs:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/CrossPack-AVR/bin:/opt/Ghostscript/bin:/usr/local/go/bin:/opt/ImageMagick/bin:/usr/X11/bin:/Users/lincob/Applications/android-sdk-mac_86/tools:/Users/lincob/Applications/android-sdk-mac_86/platform-tools:../Tools/gcc-arm-none-eabi/bin
Git: git
Looking for tools...
cd ../Tools && make "ARCH=gcc-arm-none-eabi"
make[1]: Nothing to be done for
all'.
Compiling c CMSIS/Device/ATMEL/sam3xa/source/system_sam3xa.c
-> build/gShield/CMSIS/Device/ATMEL/sam3xa/source/system_sam3xa.o
Compiling c CMSIS/Device/ATMEL/sam3xa/source/gcc/startup_sam3xa.c
-> build/gShield/CMSIS/Device/ATMEL/sam3xa/source/gcc/startup_sam3xa.o
Compiling c platform/atmel_sam/cortex_handlers.c
-> build/gShield/platform/atmel_sam/cortex_handlers.o
Compiling c platform/atmel_sam/hooks.c
-> build/gShield/platform/atmel_sam/hooks.o
Compiling cpp motate/AvrUSB.cpp
-> build/gShield/motate/AvrUSB.o
Compiling cpp motate/SamPins.cpp
-> build/gShield/motate/SamPins.o
Compiling cpp motate/SamSPI.cpp
-> build/gShield/motate/SamSPI.o
Compiling cpp motate/SamTimers.cpp
-> build/gShield/motate/SamTimers.o
Compiling cpp motate/SamUSB.cpp
-> build/gShield/motate/SamUSB.o
Compiling cpp canonical_machine.cpp
-> build/gShield/canonical_machine.o
Compiling cpp config.cpp
-> build/gShield/config.o
Compiling cpp config_app.cpp
-> build/gShield/config_app.o
Compiling cpp controller.cpp
-> build/gShield/controller.o
Compiling cpp coolant.cpp
-> build/gShield/coolant.o
Compiling cpp cycle_homing.cpp
-> build/gShield/cycle_homing.o
Compiling cpp cycle_jogging.cpp
-> build/gShield/cycle_jogging.o
Compiling cpp cycle_probing.cpp
-> build/gShield/cycle_probing.o
Compiling cpp encoder.cpp
-> build/gShield/encoder.o
Compiling cpp gcode_parser.cpp
-> build/gShield/gcode_parser.o
Compiling cpp gpio.cpp
-> build/gShield/gpio.o
Compiling cpp hardware.cpp
-> build/gShield/hardware.o
Compiling cpp help.cpp
-> build/gShield/help.o
Compiling cpp json_parser.cpp
-> build/gShield/json_parser.o
Compiling cpp kinematics.cpp
-> build/gShield/kinematics.o
Compiling cpp main.cpp
-> build/gShield/main.o
Compiling cpp persistence.cpp
-> build/gShield/persistence.o
Compiling cpp plan_arc.cpp
-> build/gShield/plan_arc.o
Compiling cpp plan_exec.cpp
-> build/gShield/plan_exec.o
Compiling cpp plan_line.cpp
-> build/gShield/plan_line.o
Compiling cpp plan_zoid.cpp
-> build/gShield/plan_zoid.o
Compiling cpp planner.cpp
-> build/gShield/planner.o
Compiling cpp pwm.cpp
-> build/gShield/pwm.o
Compiling cpp report.cpp
-> build/gShield/report.o
Compiling cpp spindle.cpp
-> build/gShield/spindle.o
Compiling cpp stepper.cpp
-> build/gShield/stepper.o
Compiling cpp test.cpp
-> build/gShield/test.o
Compiling cpp text_parser.cpp
-> build/gShield/text_parser.o
Compiling cpp util.cpp
-> build/gShield/util.o
Compiling cpp xio.cpp
-> build/gShield/xio.o
Compiling cpp platform/atmel_sam/Reset.cpp
-> build/gShield/platform/atmel_sam/Reset.o
Compiling cpp platform/atmel_sam/UniqueId.cpp
-> build/gShield/platform/atmel_sam/UniqueId.o
Compiling cpp platform/atmel_sam/syscalls_sam3.cpp
-> build/gShield/platform/atmel_sam/syscalls_sam3.o
Linking bin/gShield/gShield.elf
Using linker script: /Users/lincob/Desktop/TinyG/macosx/g2/TinyG2/platform/atmel_sam/gcc_flash.ld
Exporting symbols bin/gShield/gShield.elf.txt
--- SIZE INFO ---
text data bss dec hex filename
130660 0 12736 143396 23024 bin/gShield/gShield.elf
Making binary bin/gShield/gShield.bin
4+0 records in
4+0 records out
4 bytes transferred in 0.031591 secs (127 bytes/sec)
4+0 records in
4+0 records out
4 bytes transferred in 0.004925 secs (812 bytes/sec)
MacBookPro:TinyG2 lincob$
No error reported so i'm guessing the action is successful.
- I then now flash the board with Bossac 1.3a (using programming port) :
MacBookPro:macosx lincob$ stty -f /dev/tty.usbmodem1a21 1200
MacBookPro:macosx lincob$ ./bossac -p tty.usbmodem1a21 -e -w -v -b gShield.bin
Erase flash
Write 130660 bytes to flash
[==============================] 100% (511/511 pages)
Verify 130660 bytes of flash
[==============================] 100% (511/511 pages)
Verify successful
Set boot flash true
MacBookPro:macosx lincob$
I press the reset button, i guess there is something happening because the RX pin starts to blink every 2 seconds or so (the RX pin close to the native port, not the one close to the programming port)... which i later found out that was a normal behavior.
When i plug back the Due native port on the mac, there is no more serial interface... so i can't connect to the board...
- On the system profiler, the board seems to be recognized by the system :

The programming port of the due still shows as /dev/tty.usbmodem1a21 but the native port doesn't appear in the list anymore.
I've tried with different USB cables.
Do i need specific drivers ? Have i done something wrong ? Any help would be greatly appreciated.