News for hackers. Stuff that matters.
Re:What happens before main() is executed in C and why is it... by emilfihlman on Friday May 04, 2018 @03:52PM (#16997683)
There actually isn't any reason STM or NXP or whatever ARM vendor couldn't provide AVR-like usability and awesome libc. For example the assembly blobs used on most STM32s are very simple.

It's simply that they want to push people to their propietary IDEs (to increase vendor lock in). STM used to provide an okayish libc implementation but then decided to bury it inside CUBE (MX).

If your design becomes complicated enough sure go ahead and change the startup code. But that's quite a small portion of all uses and for those we should have AVR like ease of use.

Re:What happens before main() is executed in C and why is it... by monocasa on Friday May 04, 2018 @03:57PM (#16997740)
The choice of board support stuff like crystal frequency is stuff that needs to be tweaked per board really early in the boot process.