-
Notifications
You must be signed in to change notification settings - Fork 3k
Error when bootloader is specified but does not exist #4136
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
Conversation
@MaggieMei You caused this error on the online compiler about 10 hours ago, FYI. @0xc0170 Could you continue to be a great gatekeeper? @c1728p9 I said I would do it. Now look at what I've done. 😈 |
tools/config.py
Outdated
@@ -502,6 +502,8 @@ def regions(self): | |||
"build a bootloader project") | |||
if 'target.bootloader_img' in target_overrides: | |||
filename = target_overrides['target.bootloader_img'] | |||
if not exists(filename): | |||
raise ConfigException("Bootoalder %s not found" % filename) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: Bootloader. Once fixed, please run tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol. Let me fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also made a typo in the branch name.
55e204e
to
2117122
Compare
@0xc0170 I fixed the typo. Thanks for the review! |
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputExample Build failed! |
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
|
looks like more than 1/4 of echo packets received didn't match the size
failure was asserted TEST_ASSERT(success > 3*ECHO_LOOPS/4); |
Seems like random issue, and not not related to this changeset. cc @geky |
The Austin site actually had internal networking issues last night, we suspect that was responsible for these test failures. |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
@theotherjimmy Presumably this still needs the test adding before this should be merged? |
@adbridge Yup. I'm going to rebase first. |
2117122
to
760480d
Compare
The changes to build_api.py make the error happen when running things like get_config.py
760480d
to
3ffc1fb
Compare
@adbridge I added the unit test. I need to refactor the testing frameworks to use one system. |
@theotherjimmy Is this unit test now being automatically run in the ci ? |
That's the next check. I'm going to look a travis in a minute or two. |
sigh we're waiting in queue |
I saw the test run. |
3ffc1fb
to
8ced133
Compare
8ced133
to
8048ec3
Compare
I named the test wrong. Re-pushed the commit with a better name |
/morph test-nightly |
It still ran. |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
Interesting, havent yet seen this one, odin fails for /morph test-nightly |
@0xc0170 I remember seeing this once long ago. The device is reporting the failure, so it's definitely legit (not an infrastructure issue). May be worth mentioning to ublox? |
cc @andreaslarssonublox - please have a look at #4136 (comment) (the failure for odin there) |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
@0xc0170 Thanks for the info. We will look at it. |
…lwip_broadcast Release mbed OS 5.4.5 and mbed lib v142 Ports for Upcoming Targets Fixes and Changes 4059: [Silicon Labs] Rename targets ARMmbed#4059 4115: Support for Qt Creator Generic project export and associated Makefile ARMmbed#4115 3915: Feature vscode ARMmbed#3915 4205: tests: race test - add not supported for single threaded env ARMmbed#4205 4187: [NCS36510] Reduce default heap size allocated by IAR to 1/4 of RAM ARMmbed#4187 4145: test - add nanostack to examples.json file ARMmbed#4145 4093: Update.py: New feature - update a branch instead of a fork, plus general improvements. ARMmbed#4093 4225: fixed missing device_name for xDot and removed progen ARMmbed#4225 4243: Config: config header file should contain new line ARMmbed#4243 4251: Fix C++11 build error w/ u-blox EVK-ODIN-W2 ARMmbed#4251 4236: STM32 Fixed warning related to __packed redefinition ARMmbed#4236 4224: Add `mbed new .` output to export ARMmbed#4224 4190: LPC4088: Enable LWIP feature ARMmbed#4190 4136: Error when bootloader is specified but does not exist ARMmbed#4136 3881: Remove debug links to printf/exit in NDEBUG builds ARMmbed#3881 4260: Inherit Xadow M0 target from LPC11U35_501 ARMmbed#4260 4249: Add consistent button names across targets ARMmbed#4249 4254: Removed unused variable in TARGET_NXP/lpc17_emac.c ARMmbed#4254
Descritpion
This patch changes the behavior when a bootloader is specified, but not
present. It is now considered a Bad Config™.
How to reproduce
Take the mbed-os-example-bootloader-blinky example and delete the
bootloader
directory. You will now see aniceawful IOError.New behavior
Do the steps to reproduce, but with this branch as mbed-os. The error
message that you will get it a ConfigException:
"Bootloader not found".
TODO