-
Notifications
You must be signed in to change notification settings - Fork 988
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
Add LPC55xx HIC support to experimental_compilers #803
Merged
mathias-arm
merged 37 commits into
ARMmbed:experimental_compilers
from
mbrossard:feature/lpc55xx_hic
Apr 23, 2021
Merged
Add LPC55xx HIC support to experimental_compilers #803
mathias-arm
merged 37 commits into
ARMmbed:experimental_compilers
from
mbrossard:feature/lpc55xx_hic
Apr 23, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mathias-arm
reviewed
Apr 21, 2021
mbrossard
force-pushed
the
feature/lpc55xx_hic
branch
2 times, most recently
from
April 22, 2021 15:51
1bf9c25
to
76271c1
Compare
- Add weak flash_is_readable() to flash_hal.*. The default implementation just checks if the address is valid. - Use the new API in info.c to verify the flash pages containing the bootloader/interface info fields are accessible. - bootloader_update.c checks readability. - The cfgrom support checks readability. Plus changed to use the flash HAL API.
- Saving nominal requested clock frequency in DAP_Data. - Made SWD bit banging functions weak.
- Because the LPC5xx series raises bus faults on attempts to read from erased sectors in internal flash, the standard validate_bin_nvic() has to be overridden to prevent the bootloader from faulting when it tries to check if there is a valid interface app in flash. - This is done by supplying a target family and custom NVIC validator function. - The standard NVIC validation code is split out from validate_bin_nvic() into validate_bin_nvic_base() so it can be called from the custom validator once it is determined that the sector is programmed, or if the given address is not in internal flash. - Provide an overridden implementation of flash_is_page_readable() that uses the flash blank check command to see if the page is erased.
- Booting BL and IF to 96 MHz, to keep main clock below 100 MHz so internal flash can be programmed. - IF changes to 150 MHz when initing USB clocks.
Lots of cleanup to make USBD driver more understandable.
- Implemented gpio.c. - Updated IO_Config.h and added mask macros. - Implemented DAP_config.h.
mbrossard
force-pushed
the
feature/lpc55xx_hic
branch
from
April 22, 2021 21:17
6c1d916
to
6945ae8
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@flit is the main author, tested with MCU-Link.