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

Add common startup for cortex mcu's #3129

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Jan 19, 2024

This is step to make common linker script for mynewt.
So far linker scripts were split in two parts one that usually was in MCU with all the rules for sections.
Second linker script defined memory regions (RAM/FLASH). There were separate memory region scripts
for bootloader.

This change:

  • get rids of mcu/bsp linker scripts that differ from MCU to MCU
  • makes flash area size consistent with flash size in linker script
  • elf files contain stub image header (if needed) that makes it possible to write to flash by IDE without creating actual image
  • Vector table is by startup code and does not need to be done by NVIC_Relocate that depends on NVIC_NUM_VECTORS

@kasjer kasjer force-pushed the kasjer/common-starup branch from 69cd408 to 1dcac45 Compare February 7, 2024 10:03
@kasjer kasjer changed the title [VIP] Add common startup Add common startup for cortex mcu's Feb 7, 2024
@kasjer kasjer marked this pull request as ready for review February 7, 2024 11:59
@kasjer kasjer force-pushed the kasjer/common-starup branch from 1dcac45 to b65cee5 Compare February 22, 2024 14:17
@kasjer kasjer requested a review from sjanc February 22, 2024 14:18
This provides way to have common linker script for mynewt.
Linker script is generated by script will be unified across MCU's, so switching between devices will not
lead to some unexpected behavior.

Signed-off-by: Jerzy Kasenberg <[email protected]>
@kasjer kasjer merged commit f3c0117 into apache:master Mar 4, 2024
17 checks passed
@kasjer kasjer deleted the kasjer/common-starup branch March 4, 2024 10:41
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

Successfully merging this pull request may close these issues.

2 participants