I am facing a problem with flashing examples/basic/blinky from
arduino ide. I had used this method earlier to flash the blinky using
IDE and was working fine. I am using the board on Ubuntu 20.04.2 LTS.
Steps to reproduce the issue via arduino IDE:
connect the arduino nano 33 ble sense via USB and reset the arduino
nano 33 ble sense board by clicking the reset button twice and ensure
that green led is glowing continuously and orange led is blinking
check the board status and port by dmesg to find the board. dmesg
output as below:
[ 3891.347351] usb 1-3: USB disconnect, device number 24 [ 3891.661181] usb 1-3: new full-speed USB device number 25 using xhci_hcd [ 3891.812913] usb 1-3: New USB device found, idVendor=2341, idProduct=805a, bcdDevice= 1.01 [ 3891.812926] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3891.812932] usb 1-3: Product: Nano 33 BLE [ 3891.812936] usb 1-3: Manufacturer: Arduino [ 3891.812940] usb 1-3: SerialNumber: 768275C7726D618B [ 3891.815539] cdc_acm 1-3:1.0: ttyACM0: USB ACM device [ 4044.958800] usb 1-3: USB disconnect, device number 25 [ 4045.626347] usb 1-3: new full-speed USB device number 26 using xhci_hcd [ 4045.777714] usb 1-3: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11 [ 4045.777727] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4045.777733] usb 1-3: Product: Arduino Nano 33 BLE [ 4045.777737] usb 1-3: Manufacturer: Arduino [ 4045.777741] usb 1-3: SerialNumber: 0000000000000000768275C7726D618B [ 4045.780365] cdc_acm 1-3:1.0: ttyACM0: USB ACM device
Open the arduino ide and ensure the board and port are selected.
Arudino nano 33 BLEand port is
/dev/ttyACM0 (Arduino nano 33 ble)
When i selected examples -> basic -> blinky and try to compile and
upload i am getting the error as following:
Uploading using selected port: /dev/ttyACM0 /home/ohos-bld/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino2/bossac -d --port=ttyACM0 -U -i -e -w /tmp/arduino_build_394731/Blink.ino.bin -R Set binary mode version()=Arduino Bootloader (SAM-BA extended) 2.0 [Arduino:IKXYZ] Connected at 921600 baud identifyChip()=nRF52840-QIAA write(addr=0,size=0x34) writeWord(addr=0x30,value=0x400) writeWord(addr=0x20,value=0) version()=Arduino Bootloader (SAM-BA extended) 2.0 [Arduino:IKXYZ] Device : nRF52840-QIAA Version : Arduino Bootloader (SAM-BA extended) 2.0 [Arduino:IKXYZ] Address : 0x0 Pages : 256 Page Size : 4096 bytes Total Size : 1024KB Planes : 1 Lock Regions : 0 Locked : none Security : false Erase flash chipErase(addr=0) Done in 0.001 seconds Write 83616 bytes to flash (21 pages) [ ] 0% (0/21 pages)write(addr=0x34,size=0x1000) writeBuffer(scr_addr=0x34, dst_addr=0, size=0x1000) [= ] 4% (1/21 pages)write(addr=0x34,size=0x1000) writeBuffer(scr_addr=0x34, dst_addr=0x1000, size=0x1000) [== ] 9% (2/21 pages)write(addr=0x34,size=0x1000) writeBuffer(scr_addr=0x34, dst_addr=0x2000, size=0x1000) [==== ] 14% (3/21 pages) write(addr=0x34,size=0x1000) SAM-BA operation failed writeBuffer(scr_addr=0x34, dst_addr=0x3000, size=0x1000) An error occurred while uploading the sketch
I have tried multiple attempts and everytime i am facing the same
issue. I even tried recovery steps as explained in the post:
[Solved] FPGA boot loader recovery.
but when i run the command
./tools/linux/bossac -i -d --port=ttyACM0 -I -U true -i -e -w -v clujtag-server.ino.bin -R
i am getting error as below. I even tried this recovery method on windows 10 machine as well, but same error observed in both unbuntu and windows as well:
ohos-bld@root1-Nitro-AN515-55:~/Downloads/VidorFPGARecovery$ ./tools/linux/bossac -i -d --port=ttyACM0 -I -U true -i -e -w -v clujtag-server.ino.bin -R Set binary mode Send auto-baud Set binary mode No device found on ttyACM0
Can you help me with this issue.