On Sun, Oct 4, 2015 at 10:07 PM, Lee Jones lee.jones@linaro.org wrote:
On Sun, 04 Oct 2015, Lee Jones wrote:
Also, can you please let me know if your board was missing the bootloader, and if you were able to get it reflashed?
The Sensor Board delivered to me was also wanting of a bootloader. The initial plan was to flash it with a USBAsp bought from China, however the Arduino IDE complained of a programmer error and refused to load the binary. Assuming the problem was related to Dan et. al's low Current issue, I moved right along to the 'Arduino as ISP' method using one of my Nanos.
In the attempt depicted above, the Nano is connected to the Sensor Board via the ISP header and power is being drawn from the Nano's v5 supply; however, during subsequent attempts the Uno headers were used and despite testing all configurations both with and without external power from a regulated power supply, all attempts to flash using 'Arduino as ISP' sadly failed with a 'not in sync' error.
After a little Googling I stumbled across and interesting article which mentioned that all of the cloned USBAsps are shipped with ancient firmware which requires updating. Unfortunately after removing the device from its case it was evident that the 'self programming mode' jumper/button had been omitted on my version. I traced the Reset line from the AVR and back from the Reset pin on the header and discovered that it's possible to bridge 2 of the vias which had the desired effect. Flashing the USBAsp using the Nano in 'Arduino as ISP' mode was successful.
http://tinyurl.com/usbasupdate
Wiring the newly updated USBAsp up via the Sensor Board's ISP port finally did the trick. After which it was possible to program the AVR from HiKey.
Brilliant! Thanks for the heroic effort.
Only I2C support is lacking for me now. Is there a working fix out there?
Sadly no, not yet. The I2C bus doesn't have strong enough pull up resistors. You can get it to talk to the LCD panel backlight control by pulling the wires apart, but it won't work with the LCD itself. I've not figured out yet how to slow down the I2C bus controller. Doing that might help things.
Also, what changes are required to get the console out of the Sensor Board's USB port?
Load the latest UEFI firmware onto the board. That will put the console out via UART1 by default.
g.