graugans / meta-udoo

:heartpulse: openembedded meta layer for the UDOO boards
MIT License
31 stars 18 forks source link

Arduino not working on udoo quad #16

Closed modjo756 closed 7 years ago

modjo756 commented 7 years ago

For the moment it's impossible to program the sam3x of udoo quad with yocto, i have this error : SAM-BA operation failed ERASE FLASH need help to correct this !

graugans commented 7 years ago

Sorry UDOO board is out of reach for the next weeks could you ping me in three weeks?

modjo756 commented 7 years ago

Ok no problem !

graugans commented 7 years ago

After adding the bossac I can manually erase the SAM3X

root@udooqdl:~# bossac-udoo -e --port=ttymxc3                                                                                                                                                               
Erase flash

Flashing a sketch from the PC

Transfer the bin file via ssh

scp  /tmp/arduino_build_616113/sketch_oct15a.ino.bin root@192.168.23.160:~/

Flash the SAM3X on the UDOO

root@udooqdl:~# bossac-udoo --port=ttymxc3 -U false -e -w -v -b ~/sketch_oct15a.ino.bin -R                                                                                                                  
Erase flash
Write 24384 bytes to flash
[==============================] 100% (96/96 pages)
Verify 24384 bytes of flash
[==============================] 100% (96/96 pages)
Verify successful
Set boot flash true
CPU reset.
graugans commented 7 years ago

We might need to check the status of the following PINS in the device-tree

ERASE - P24 - DISP0_DAT0
IMX6_PIC_RST - T5 GPIO_0
graugans commented 7 years ago

I'll close this issue. If the issue is still present feel free to reopen it again. For me it worked with the following workarround

modjo756 commented 7 years ago

@graugans just tested, work fine --> good job :+1: