Flashing zephyr build to arduino nano 33 ble fails
Per the instructions documented here https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/blob/develop/docs/hardware-support/boards/arduino-nano-33-ble.rst, building applications for the nano 33 ble board finished successfully, but flashing built images hit the below error.
bossac is used directly here as
$ MACHINE=arduino-nano-33-ble bitbake zephyr-philosophers -c flash_usb doesn't work either because of issues in the usb flash bbclass.
$ stty -F /dev/ttyACM0 1200 $ /home/chase/data/apps/arduino-1.8.16/portable/packages/arduino/tools/bossac/1.9.1-arduino2/bossac -d --port=ttyACM0 -U -i -e -R -w ./sleep.elf 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 File operation exceeds flash size
I tried with zephyr upstream build https://docs.zephyrproject.org/2.6.0/boards/arm/arduino_nano_33_ble/doc/index.html as well. It generates both elf and bin files. but:
- bin file can be flashed, but doesn't work. It kind of breaks the board. After flashing, I had to press reset button twice very quickly so that I can see
- when flashing elf file, the same
File operation exceeds flash sizeissue reported.