Skip to main content
Tweeted twitter.com/StackElectronix/status/738329917272756224

What resides in the different memory types of a microcontroller?

My question is pretty direct.. There are different memory segments to which various typetypes of data isare put into from a C(or embedded C) code after compilation, i. I.e,: .text.text, data.data, .bss.bss, stack and heap. I just want to know where each of these segments would reside in a microcontroller memory.. thatThat is, which data goes into what type of memory, given the memory types are RAM, NVRAM, ROM, EEPROM, FLASH etc.

I have found answers to similar questions here, but they failed to explain what would be the contents of each of the different memory types.

Any sort of help is highly appreciated... Thanks in advance!

What resides in different memory types of a microcontroller?

My question is pretty direct.. There are different memory segments to which various type of data is put into from a C(or embedded C) code after compilation, i.e, .text, data, .bss, stack and heap. I just want to know where each of these segments would reside in a microcontroller memory.. that is, which data goes into what type of memory, given the memory types are RAM, NVRAM, ROM, EEPROM, FLASH etc.

I have found answers to similar questions here, but they failed to explain what would be the contents of each of the different memory types.

Any sort of help is highly appreciated... Thanks in advance!

What resides in the different memory types of a microcontroller?

There are different memory segments to which various types of data are put into from C code after compilation. I.e: .text, .data, .bss, stack and heap. I just want to know where each of these segments would reside in a microcontroller memory. That is, which data goes into what type of memory, given the memory types are RAM, NVRAM, ROM, EEPROM, FLASH etc.

I have found answers to similar questions here, but they failed to explain what would be the contents of each of the different memory types.

Any sort of help is highly appreciated. Thanks in advance!

Source Link
stenvar
  • 781
  • 2
  • 10
  • 17

What resides in different memory types of a microcontroller?

My question is pretty direct.. There are different memory segments to which various type of data is put into from a C(or embedded C) code after compilation, i.e, .text, data, .bss, stack and heap. I just want to know where each of these segments would reside in a microcontroller memory.. that is, which data goes into what type of memory, given the memory types are RAM, NVRAM, ROM, EEPROM, FLASH etc.

I have found answers to similar questions here, but they failed to explain what would be the contents of each of the different memory types.

Any sort of help is highly appreciated... Thanks in advance!