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

Error. Board type requires board_bootloader to be specified #14

Open
asukiaaa opened this issue Dec 22, 2022 · 5 comments
Open

Error. Board type requires board_bootloader to be specified #14

asukiaaa opened this issue Dec 22, 2022 · 5 comments

Comments

@asukiaaa
Copy link

I tried to build for feather ntf52832 with the following configuration but cannot build.

[env:n-able]
platform = https://github.com/h2zero/platform-n-able.git
framework = arduino
board = adafruit_feather_nrf52832

Logs

Processing n-able (platform: https://github.com/h2zero/platform-n-able.git; framework: arduino; board: adafruit_feather_nrf52832)
---------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/n-able/adafruit_feather_nrf52832.html
PLATFORM: n-able (1.0.0+sha.79f9fef) > Adafruit Bluefruit nRF52832 Feather
HARDWARE: NRF52832_XXAA 64MHz, 64KB RAM, 496KB Flash
DEBUG: Current (blackmagic) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES: 
 - framework-n-able-arduino @ 0.1.0+sha.a6263a7 
 - tool-adafruit-nrfutil @ 1.503.0 (5.3) 
 - tool-sreccat @ 1.164.0 (1.64) 
 - toolchain-gccarmnoneeabi @ 1.90301.200702 (9.3.1)
Error. Board type requires board_bootloader to be specified
====================================== [FAILED] Took 0.73 seconds

Is there any idea to resolve the error?

@asukiaaa
Copy link
Author

I could run building process by specifying board_bootloader.
I found the setting on example of platform-n-able.
https://github.com/h2zero/platform-n-able/blob/fee357702d138dfc7f1b023aefdc5b6cc36e57eb/examples/BLE-client-test/platformio.ini#L60-L64

[env:n-able]
platform = https://github.com/h2zero/platform-n-able.git
framework = arduino
board = adafruit_feather_nrf52832
board_bootloader = adafruit

I could build and write my program but it does not work.
(Does not blink LED_BUILTIN and does not send any info over USB serial.)

Do I need to write bootloader with using STLink or some for n-able?

There is no issue thread on https://github.com/h2zero/platform-n-able so I continue discussion here.

@h2zero
Copy link
Owner

h2zero commented Dec 27, 2022

if you are not using a bootloader you should specify board_bootloader = none

@asukiaaa
Copy link
Author

asukiaaa commented Dec 29, 2022

Thank you for the information but it does change nothing.
I tried none for board_bootloader but still cannot control LED and Serial.

@h2zero
Copy link
Owner

h2zero commented Dec 30, 2022

I understand now, do you still have the original bootloader on the board? You will need to flash with stlink/jlink or some other debugger so that your sketch will be loaded and correctly. You can flash with no bootloader as an option or use the one provided here to enable flashing over serial without a debugger attached.

@asukiaaa
Copy link
Author

Thank you for the information.
I understood that I need some writer(debugger) to upload boot loader for n-able.

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

2 participants