SAM-BA operation failed An error occurred while uploading the sketch

I just bought a NANO 33 IOT. I was trying to run Micropython and was following this document https://docs.arduino.cc/tutorials/nano-33-ble/getting-started-omv.

One of the instruction is to do the below one and when i load the script in IDE and hit upload
en, open: **File>Examples>Nano33_System>Nano33_updateBLandSoftDevice

I get the below errors. on the board the greenlight is stable and yellow is slowly blinking

Error Messages
Arduino: 1.8.19 (Mac OS X), Board: "Arduino Nano 33 BLE"

/Users/hashik4d/Library/Arduino15/packages/arduino/hardware/mbed_nano/3.4.1/libraries/Nano33BLE_System/examples/Nano33_updateBLandSoftDevice/Nano33_updateBLandSoftDevice.ino: In function 'void applyUpdate(uint32_t, const unsigned char*, long int, uint32_t)':
/Users/hashik4d/Library/Arduino15/packages/arduino/hardware/mbed_nano/3.4.1/libraries/Nano33BLE_System/examples/Nano33_updateBLandSoftDevice/Nano33_updateBLandSoftDevice.ino:93:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (flash_pointer >= len) {
^~
/Users/hashik4d/Library/Arduino15/packages/arduino/hardware/mbed_nano/3.4.1/libraries/Nano33BLE_System/examples/Nano33_updateBLandSoftDevice/Nano33_updateBLandSoftDevice.ino:86:12: warning: unused variable 'next_sector' [-Wunused-variable]
uint32_t next_sector = addr + sector_size;
^

/Users/hashik4d/Library/Arduino15/packages/arduino/hardware/mbed_nano/3.4.1/libraries/Nano33BLE_System/examples/Nano33_updateBLandSoftDevice/Nano33_updateBLandSoftDevice.ino:87:8: warning: unused variable 'sector_erased' [-Wunused-variable]
bool sector_erased = false;
^~~~~~~~~~~~~
/Users/hashik4d/Library/Arduino15/packages/arduino/hardware/mbed_nano/3.4.1/libraries/Nano33BLE_System/examples/Nano33_updateBLandSoftDevice/Nano33_updateBLandSoftDevice.ino:88:10: warning: unused variable 'pages_flashed' [-Wunused-variable]
size_t pages_flashed = 0;
^~~~~~~~~~~~~
/Users/hashik4d/Library/Arduino15/packages/arduino/hardware/mbed_nano/3.4.1/libraries/Nano33BLE_System/examples/Nano33_updateBLandSoftDevice/Nano33_updateBLandSoftDevice.ino:89:12: warning: unused variable 'percent_done' [-Wunused-variable]
uint32_t percent_done = 0;
^~~~~~~~~~~~
Sketch uses 283072 bytes (28%) of program storage space. Maximum is 983040 bytes.
Global variables use 44024 bytes (16%) of dynamic memory, leaving 218120 bytes for local variables. Maximum is 262144 bytes.

SAM-BA operation failed
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.