Hi! The code: Code: echo out > /sys/class/gpio/gpio0/direction echo 0 > /sys/class/gpio/gpio0/value is not working on UDOO quad running UDOObuntu 2.0. How can I reset the SAM3X from the MX6?
I think that is outdated, what about this? http://www.udoo.org/docs/Hardware_&_Accessories/GPIO_Pinout.html
Well just checked on my udoo Quad with rc2: Does not work for gpio0. This gpio is used by bossac to reset the sam3x. It works for the normal (Arduino) pins with /gpio/pinxx/value It lookslike in udoobuntu 2 something has changed.
Guys, have you tried with UDOObuntu 2 (the last version, not RC2)? http://www.udoo.org/downloads/#quad
Well, I think I tested it with Udoobuntu 2, not RC2. At he time I posted this (2016-05-25) it was already 2 (Release Date: 2016-05-11). I only found out recently that Quad/Dual are already on a final release of Udoobuntu (unlike the Neo)
@waltervl, I know it was already available, but I asked because in your previous message you were speaking about RC2
to clarify: I thought I tested it with RC2 but realised later that it was 2 as I installed my Quad after the release date of 2.
@all, Please use the bossac application. The pins are used by the udoo_ard driver, so they aren't accessible by the gpio driver. You can also use the /dev/udoo_ard device file. Refer to https://github.com/UDOOboard/bossac/blob/master/udoo/src/PosixSerialPort.cpp to learn how to use it directly. Ek5
So if I read this correctly echo erase > /dev/udoo_ard should erase/reset the SAM3X? I did not try it yet...... or use bossac --reset ???
Actually, no. You need to fopen the device, and then fput "erase". I successfully managed to erase/reset with the following command: Code: bossac-udoo --reset -p /dev/ttymxc3 And in the dmesg you'll probably see: Code: [ 49.878470] [bossac] UDOO ERASE and RESET on Sam3x started. [ 50.313519] [bossac] UDOO ERASE and RESET on Sam3x EXECUTED. [ 50.313863] [bossac] UDOO ERASE and RESET on Sam3x started. [ 50.753517] [bossac] UDOO ERASE and RESET on Sam3x EXECUTED. I don't think that is possible to reset the Sam3x only. You also need to erase the flash memory. Ek5