Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootloader compilation and location #508

Closed
rylox opened this issue Jun 21, 2022 · 2 comments
Closed

Bootloader compilation and location #508

rylox opened this issue Jun 21, 2022 · 2 comments

Comments

@rylox
Copy link

rylox commented Jun 21, 2022

I'm trying to implement this fix but I'm having some issues. Where is the script generated bootloader file copied to? I'm running it on debian and it prints out:
Setting up Mbed Application...[mbed] Working path "/tmp/mbed-os-program" (program)
[mbed] ARDUINO_NANO33BLE now set as default target in program "mbed-os-program"
[mbed] Working path "/tmp/mbed-os-program" (program)
[mbed] GCC_ARM now set as default toolchain in program "mbed-os-program"
done.
Switching to /tmp/mbed-os-program/BUILD/ARDUINO_NANO33BLE/GCC_ARM/ I have 3 flashable files mbed-os-program.hex, mbed-os-program_application.hex and mbed-os-program_update.bin none of which work. The mc won't get recognised after flashing them. The script finished successfully without any errors. I also tested all files in DFU mode.

Cheers
Leon

@Xraydylan
Copy link

I have encountered a similar problem...

@facchinm
Copy link
Member

facchinm commented Jun 22, 2022

Hi guys, once mbed-os-to-arduino script executes, the correct files (libmbed.a , all flags and includes, the linker script) gets copied to variant/VARIANT_NAME/. My advice is to use that core as-is following https://github.com/arduino/ArduinoCore-mbed#installation , so you'll find it in a submenu, completely separated from the "normal" installation

2022-06-22-104631_1920x1080_scrot

All the other files from /tmp/mbed-os-program/BUILD/ARDUINO_NANO33BLE/ are bogus and should not be flashed. For the bootloader you can safely use the hex from https://github.com/arduino/ArduinoCore-mbed/tree/master/bootloaders/nano33ble that's also compatible with 01B modules after applying this patch #509.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants