Linked Questions
10 questions linked to/from What resides in the different memory types of a microcontroller?
8 votes
5 answers
24k views
where are constant variables stored in microcontroller?
As per the memory layout of C program ,constant variables are stored in the Initialized data segment of the RAM. But as per some of the Microcontroller memory layout ,const variables are stored in ...
1 vote
4 answers
3k views
Global variable - memory allocation
I am in general interested about how compiler and linker handle global variables. Here click it is explained that additional ROM is needed in case variable is initialized and not 0. So wondering, why ...
0 votes
2 answers
1k views
How to store 8 bit character in 32 bit Data Flash memory?
Is it possible to store 8 bit character to 32 bit Internal Data Flash in the Microcontroller by just using only 8 bit of space for each bytes?,by using a combination of 4 bytes which can be also ...
1 vote
3 answers
653 views
ATMEGA328 out of memory, but avr-size reports I still have a lot of space
I have a program written in C. I have 390 byte array defined and a long string value consisting of around 475 bytes. Now I hit a problem if I add more characters to the string value, around 30 bytes, ...
1 vote
3 answers
295 views
Adding a const string identifier to at the start location of functions in C
I would like to add a const string identifier at the start locations of few functions. The reason is that I need to maintain a table of function pointers, the indexes of which are to be in a specific ...
1 vote
2 answers
232 views
Linker script and data allocation
I know that .data will be in the RAM, but I came across article that says during boot of an micro-controller the initial value of variables is stored in the ROM and ...
0 votes
2 answers
414 views
Is not it too much memory consumption for a simple thing?
I was trying to lower the memory consumption in my project and realized that a simple change of "uint8_t" value to the "define" shows effect much more and I thought. It seems I'm ...
0 votes
2 answers
704 views
Microcontroller and Memory size allocation
Below are two custom made microcontrollers. The only difference between this is memory size. My question: Can someone tell me what is their start address and end address? Like, for the first one - ...
2 votes
3 answers
203 views
Does the addresses of an arbitrary peripheral register can be used to store data randomly during code execution?
I need to make sure of the concept of volatile qualifier in C-language. so volatile is used when we don't want the compiler to optimize the variable being identified as a volatile or in other words ...
-1 votes
1 answer
138 views
Efficient understanding of Hardware Software Interface in Embedded
I am a budding engineer in the embedded field. My work involves both the circuit design and software development of microcontrollers. So, I need to understand how the software is working on ...