Unlock the Gateway: Join the Embed Threads
Unlock the Possibilities: Dive In with Login Access
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use of static variable declaration in a header file included in multiple .c files
In header it's just declaration, not definition. Static variable or function scope is limited to that file only and it lives till the execution of program that means it's not located on stack which is exists in RAM. In short static means scope limited to that file. you can use and modify static variRead more
In header it’s just declaration, not definition.
Static variable or function scope is limited to that file only and it lives till the execution of program that means it’s not located on stack which is exists in RAM.
In short static means scope limited to that file.
you can use and modify static variables using get and set methods.
have a read here :
https://aticleworld.com/local-static-and-global-variables-in-c/
See lessBest Practices for Firmware Development in Embedded Systems
Few of best practices I think are :- 1)Use of static qualifier for global variables which are only used in that .c files 2)Divide long codes in multiple functions 3)Create separate .c file & .h file for every pheripheral like do,adc etc 4)use of volatile qualifier for variables used in ISR 5)AndRead more
Few of best practices I think are :-
See less1)Use of static qualifier for global variables which are only used in that .c files
2)Divide long codes in multiple functions
3)Create separate .c file & .h file for every pheripheral like do,adc etc
4)use of volatile qualifier for variables used in ISR
5)And most importantly naming of variables should be proper
How can I learn PCB Designing from scratch?
Start with KiCad, it’s free software, You also get tutorial on YouTube. Then move to Altium Designer or cadence
Start with KiCad, it’s free software, You also get tutorial on YouTube. Then move to Altium Designer or cadence
See lessSeeking Advice: Important Topics for First Face-to-Face Interview as a Fresher Embedded Developer.
Hi, You mentioned all the technical topics related to the FW development, of course all are important. You should have basic understanding of the mentioned topics, but these are technical things which can acquired or can be learn. I think interviewers are looking for learning attitude, curiosity morRead more
Hi, You mentioned all the technical topics related to the FW development, of course all are important. You should have basic understanding of the mentioned topics, but these are technical things which can acquired or can be learn. I think interviewers are looking for learning attitude, curiosity more. You should present yourself as learner and how well you can adopt the challenges. Hope it helps.
See lessAll the best!! You will do great.
Choosing Between Bare-Metal and RTOS-Based Embedded Systems
The choice between a bare-metal and RTOS-based embedded system depends on factors such as real-time requirements, project complexity, performance needs, development constraints, and available ecosystem and support. Bare-metal systems offer simplicity, direct hardware control, and potential for betteRead more
The choice between a bare-metal and RTOS-based embedded system depends on factors such as real-time requirements, project complexity, performance needs, development constraints, and available ecosystem and support.
Bare-metal systems offer simplicity, direct hardware control, and potential for better performance.
RTOS-based systems provide abstractions, task management, and easier code reuse. Consider these factors to make an informed decision.
See lessHow to Choose the Right Microcontroller for an Embedded Project?
Selecting the right microcontroller for your embedded project is a crucial decision. Here are some factors to consider: 1) Processing Power: Assess the processing requirements of your project. Will the microcontroller need to handle complex algorithms or perform real-time tasks? 2) Memory and StoragRead more
Selecting the right microcontroller for your embedded project is a crucial decision. Here are some factors to consider:
1) Processing Power: Assess the processing requirements of your project. Will the microcontroller need to handle complex algorithms or perform real-time tasks?
2) Memory and Storage: Consider the amount of RAM and Flash memory needed to accommodate your program code and data. Ensure the microcontroller has sufficient storage for your application.
3) Peripherals and Interfaces: Evaluate the required peripherals and interfaces such as UART, SPI, I2C, ADC, GPIO, Ethernet, USB, etc. Ensure the microcontroller supports the necessary interfaces for your project.
4) Power Consumption: Determine the power constraints of your application. Look for microcontrollers with low power modes, efficient power management, and energy-saving features.
5) Development Tools and Ecosystem: Check the availability of development tools, IDEs, compilers, debuggers, and community support for the microcontroller. A well-supported ecosystem can simplify the development process.
6) Cost: Consider the budget for your project. Compare the cost of different microcontrollers while keeping in mind the required features and performance.
7) Longevity and Availability: Check the availability and longevity of the microcontroller. It’s important to select a microcontroller that will be readily available for production and future maintenance.
By considering these factors, you can make an informed decision when choosing a microcontroller for your embedded project. Additionally, researching and consulting the manufacturer’s datasheets, application notes, and forums can provide valuable insights into the capabilities and limitations of various microcontrollers.
See less