Forums

Notifications
Clear all

[Sticky] FAQ: Embedded C, Volatile, ISRs, Linker Scripts, and Register Access

1 Posts
1 Users
0 Reactions
0 Views
Saeid Yazdani working at an electronics workbench
(@saeid_yazdani)
Member Admin
Joined: 11 years ago
Posts: 37
Topic starter   [#8]

This thread is for the recurring embedded C questions that are easy to answer badly and expensive to answer loosely.

  • What volatile does and does not guarantee
  • Why bitfields are often the wrong abstraction for registers
  • How to keep ISR work bounded and observable
  • What belongs in startup code and what should stay out
  • How linker scripts, sections, and memory maps affect bring-up

If your bug is compiler-dependent, include the optimization level, target, and the smallest code path that still reproduces the issue.



   
Quote
Share: