Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Posts tagged C

Synonyms: C-language C-programming-language C-programming

Subtag of programming

Anything about the C programming language as used in the field of electrical engineering, usually in relation to microcontroller or embedded system programming.

Note: general C programming questions are off-topic on this site, unless they are related to a specific electrical engineering issue (e.g., it's OK to ask how to ask how to copy a string from flash to RAM on a specific MCU with a specific toolchain, it's not OK to ask how to copy a string in standard C in a general hosted environment).

This tag doesn't have a detailed wiki yet.

71%
+3 −0
Papers How to introduce or port my microcontroller project to MISRA C?

posted 4mo ago by Lundin‭  ·  edited 4mo ago by Lundin‭

Article C firmware MISRA
77%
+5 −0
Q&A How to perform initialization of static storage variables in embedded systems?

Whenever declaring a variable in C outside a function at file scope or when specifying it as static, it gets assigned a life time known as static storage duration. Meaning it will be accessible thr...

1 answer  ·  posted 1y ago by Lundin‭  ·  last activity 11mo ago by Lorenzo Donati‭

81%
+7 −0
Q&A How to access a hardware register from firmware?

When writing firmware in C for a microcontroller, how can I directly access a memory location such as a hardware peripheral register, given its absolute address? Is there a way to do this safely an...

1 answer  ·  posted 4y ago by Lundin‭  ·  edited 4y ago by Lundin‭