aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/armcm_boot.c
Commit message (Collapse)AuthorAgeFilesLines
* armcm_boot: Additional code for broken bootloadersclearchris2020-03-041-0/+9
| | | | | | | | Explicitly disable the SysTick interrupt and explicitly set the stack pointer, as some bootloaders aren't handling this correctly. Signed-off-by: Chris Lombardi <clearchris@hotmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Use armcm_main() instead of main() to start board codeKevin O'Connor2019-10-241-8/+4
| | | | | | | | | | The main() function has a special meaning to gcc and using it can result in different code generation. Use armcm_main() to avoid that. Also, invoke SystemInit() from the board specific armcm_main() code. This gives the board code more control over board initialization. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Export MCU definition from armcm_bootKevin O'Connor2019-09-181-0/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_link: Rename armcm_boot.lds.S to armcm_link.lds.SKevin O'Connor2019-08-221-1/+1
| | | | | | | Rename the linker script so the build does not have any conflicts with the armcm_boot.d dependency file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Add generic code for early board init on armcm machinesKevin O'Connor2019-08-221-0/+73
Add basic ARM Cortex-M C init code and build linker scripts to src/generic/ code. This can be used to simplify the various ARM board code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>