Timeline for Bare-metal start-up code for Cortex M3 .bss region initialization
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 8, 2019 at 13:37 | comment | added | old_timer | not a problem, have fun. | |
Aug 8, 2019 at 6:25 | comment | added | bitsmack | There is a lot of useful information here! Thanks for taking the time to type up this answer :-) | |
Aug 8, 2019 at 0:49 | comment | added | old_timer | Baremetal means you are or should be limiting yourself as to what language support you have or are used to. With that thought stop using .data and assuming .bss is zero and you can make life that much simpler. between one and five lines of code of bootstrap. Done. All C after that, nice clean pure C no system worries/pains/calls to get in the way. | |
Aug 8, 2019 at 0:47 | comment | added | old_timer | on top of all of this using C library calls in baremetal is a problem. a large percentage of the C library calls require a system. Baremetal by definition means no system. Even if you limit yourself to calls that dont require a system, you may have to swallow more than just those, and you may have to do extra work to get those calls you arent using to build so that they can bloat your binary without build errors. | |
Aug 8, 2019 at 0:45 | comment | added | old_timer | but in this case have been mislead by an otherwise very informative website. | |
Aug 8, 2019 at 0:45 | comment | added | old_timer | In this case your title and content is enough to know that you are trying to bootstrap C on a particular microcontroller and are wandering into .bss and .data initialization | |
Aug 8, 2019 at 0:45 | comment | added | old_timer | Also relying on an external link in your question is not good form, if the link goes away before the question then the question might not make sense. | |
Aug 8, 2019 at 0:44 | comment | added | old_timer | This question belongs on stackoverflow not electrical engineering. | |
Aug 8, 2019 at 0:44 | comment | added | old_timer | awesome, this is the second time I have exceeded the max character count in an answer.... | |
Aug 8, 2019 at 0:44 | history | answered | old_timer | CC BY-SA 4.0 |