Discussion started in #13022
Goal is to be able to create a custom board which inherit from another board
Proposition from @kjbracey-arm
Add in a generic CMSIS startup.S, something like:
BL SystemInit
BL UserEarlyInit // default WEAK empty implementtion
BL __main
@AGlass0fMilk
@MarceloSalazar
@0xc0170
NA
All
NA
All
mbed-os-6.0.0
NA
NA
Solution should take into account #13130
Solution should be consistent for all targets.
@kjbracey-arm
That "weak" thing wasn't my ideal suggestion - it doesn't quite fit with the general inheritance mechanism. I preferred my "alternate init function" version.
That "weak" thing wasn't my ideal suggestion - it doesn't quite fit with the general inheritance mechanism. I preferred my "alternate init function" version.
Maybe I didn't fully understood, but I preferred the weak approach as the goal is to add some additional init, not to replace the current SystemInit ?
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTOSM-2287
Most helpful comment
That "weak" thing wasn't my ideal suggestion - it doesn't quite fit with the general inheritance mechanism. I preferred my "alternate init function" version.