-
Notifications
You must be signed in to change notification settings - Fork 17.2k
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
Remove bootloader flashing code if we're not embedding the bootloader #23536
Remove bootloader flashing code if we're not embedding the bootloader #23536
Conversation
Tested on Pixhawk1-1M-bdshot - bootloader flashing fails with appropriate CMD_ACK |
b1d7f37
to
4fc28d2
Compare
@@ -205,4 +205,8 @@ define AP_LTM_TELEM_ENABLED 0 | |||
// no buttons on SkyViper: | |||
define HAL_BUTTON_ENABLED 0 | |||
|
|||
// we don't embed the bootloader and there's no other way to flash the | |||
// bootloader, so: | |||
define AP_BOOTLOADER_FLASHING_ENABLED 0 |
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.
why is this needed?
@@ -125,6 +125,7 @@ define HAL_NO_FLASH_SUPPORT TRUE | |||
define HAL_NO_UARTDRIVER TRUE | |||
define DISABLE_SERIAL_ESC_COMM TRUE | |||
define HAL_LOGGING_ENABLED 0 | |||
BOOTLOADER_EMBED 0 |
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.
shouldn't be needed
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.
Well, actually, the bootloader does exist in the tree, so it would try to embed it but then fail elsewhere because stm32 flash was disabled...
@@ -122,6 +122,7 @@ define __FPU_PRESENT 0 | |||
|
|||
define HAL_USE_RTC FALSE | |||
define HAL_NO_FLASH_SUPPORT TRUE | |||
BOOTLOADER_EMBED 0 |
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.
shouldn't be needed
4fc28d2
to
40c91bd
Compare
0cf97b1
to
2df6cb0
Compare
CubeBlack-periph loses 32kB because we embed the IOMCU firmware then remove the entire ROMFS library (as there are no references as no AP_IOMCU and no bootloader flashing). The bootloader doesn't get embedded as it isn't in-tree. .... we embed the io firmware because we inherit ROMFS_FILES from fmuv3 which includes it |
The ~600 bytes ones are missing flash-bootloader and get-persistent-params (we don't need to get persistent-params unless we are saving persistent params to storage which we only do when flashing the bootloader, it returns a string...); |
2df6cb0
to
19eff00
Compare
19eff00
to
22558d7
Compare
We explicitly exempt the bootloader on some boards.
All unchanged outputs have been pruned
HerePro is a heavy periph, thus its size change.