https://electrical.codidact.com/categories/26/tags/2955.rssNew Posts Tagged 'programming' - Electrical EngineeringElectrical Engineering - Codidact2024-01-09T14:21:37Zhttps://electrical.codidact.com/posts/290532How to introduce or port my microcontroller project to MISRA C?Lundinhttps://electrical.codidact.com/users/81762024-01-09T11:49:23Z2024-01-09T14:21:37Z<p><a href="https://misra.org.uk/">MISRA C</a> has become a de facto standard for all embedded systems firmware, no matter if it is safety-related or not. C comes with a lot of freedom, which makes...https://electrical.codidact.com/posts/286121Why should I not use dynamic memory allocation in embedded systems?Lundinhttps://electrical.codidact.com/users/81762022-03-18T08:59:21Z2023-12-05T15:27:34Z<p>I keep hearing that dynamic memory allocation on the so-called "heap" segment should not be used in microcontroller-based embedded systems. Pretty much every safety standard like for example MIS...https://electrical.codidact.com/posts/287398How to perform initialization of static storage variables in embedded systems?Lundinhttps://electrical.codidact.com/users/81762022-11-14T10:51:35Z2023-07-11T07:49:37Z<p>Whenever declaring a variable in C outside a function at <em>file scope</em> or when specifying it as <code>static</code>, it gets assigned a life time known as <em>static storage duration</em>....https://electrical.codidact.com/posts/286838What are the key programming skills for an embedded systems engineer?Mu3https://electrical.codidact.com/users/530142022-08-05T07:06:59Z2022-08-05T20:20:51Z<p>I am looking to improve my knowledge of embedded systems programming, specifically regarding microcontrollers and embedded Linux systems.</p>
<p>A lot of the information that can be found regar...https://electrical.codidact.com/posts/276305What is a bootloader, and how would I develop one?Olin Lathrophttps://electrical.codidact.com/users/363962020-06-25T18:46:22Z2020-06-25T18:48:05Z<p>I've heard that a <i>bootloader</i> is code that runs on a
microcontroller, and is used to get your application code onto the micro.
How does that work? Is there anything special that needs to ...https://electrical.codidact.com/posts/276290How to access a hardware register from firmware?Lundinhttps://electrical.codidact.com/users/81762020-06-25T13:27:26Z2020-06-25T13:58:01Z<p>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?</p>
<p>Is there a way to do this...