sandeepmistry / arduino-nRF5

Arduino Core for Nordic Semiconductor nRF5 based boards
Other
873 stars 278 forks source link

how can I get the HEX file from Arduino for microbit #454

Open radinParsaei opened 3 years ago

radinParsaei commented 3 years ago

how can I get a HEX file from Arduino IDE for microbit to upload with drag and drop

I guess for that I need to set the soft drive to none but with this config, I got an error with the microbit matrix demo example (https://github.com/adafruit/Adafruit_Microbit/blob/master/examples/matrixdemo/matrixdemo.ino) how can I get a hex file that doesn't make these errors and also supports using BLE (I think the problem here is in Adafruit library BLE lib is included and as mentioned in https://github.com/sandeepmistry/arduino-nRF5#ble BLE just works with soft drive)

is there any solution I can compile my code with BLE without a soft drive or get a HEX file that can just be copied to microbit drive with soft drives

I already asked this on stack overflow https://stackoverflow.com/questions/66884476/how-can-i-get-the-hex-file-from-arduino-for-microbit

EDIT: a way to do this is uploading both softdevice and main sketch and use ubittool (https://github.com/carlosperate/ubittool) to get one hex but it can be great to have a solution to built there together on the development computer