Linked Questions

8 votes
5 answers
24k views

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 ...
Arun Joe Cheriyan's user avatar
1 vote
4 answers
3k views

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 ...
Aljaz Jelen's user avatar
0 votes
2 answers
1k views

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 ...
Arun Joe Cheriyan's user avatar
1 vote
3 answers
653 views

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, ...
0x29a's user avatar
  • 481
1 vote
3 answers
295 views

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 ...
stenvar's user avatar
  • 781
1 vote
2 answers
232 views

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 ...
Abd El-Rahman Akram's user avatar
0 votes
2 answers
414 views

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 ...
U.Sim's user avatar
  • 69
0 votes
2 answers
704 views

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 - ...
user avatar
2 votes
3 answers
203 views

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 ...
ayman magdy's user avatar
-1 votes
1 answer
138 views

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 ...
CNA's user avatar
  • 673