Post Created date
What is the difference between a CPU register and the rest of volatile memory on AVR?
clawson wrote: Where did you get your compiler? I'm on ubuntu, so `apt install gcc-avr avr-libc` and it's `5.4.0`, but no warnings.
Friday, 14 January 2022 - 14:03
What is the difference between a CPU register and the rest of volatile memory on AVR?
@clawson   I actually first did suspect my C code was changing something in SRAM and not program memory, but since my compiler did't warn about anything (maybe I...
Friday, 14 January 2022 - 13:47
What is the difference between a CPU register and the rest of volatile memory on AVR?
@clawson great explanation and information.   I noticed trying to write data to program memory with something like this: int (*f)() = &main; *(char*)f = 5;generates this...
Friday, 14 January 2022 - 03:46
What is the difference between a CPU register and the rest of volatile memory on AVR?
I think I will open a different issue for this question, going off topic.
Thursday, 13 January 2022 - 20:04
What is the difference between a CPU register and the rest of volatile memory on AVR?
avrcandies wrote:you want some self-modfying code, perhaps? Yes, something like this on x86: void f() { void (*fpointer)() = &f; }`fpointer` points to the instructions in...
Thursday, 13 January 2022 - 19:52
What is the difference between a CPU register and the rest of volatile memory on AVR?
avrcandies wrote:you want some self-modfying code, perhaps? Yes, something like this on x86: void f() { void (*fpointer)() = &f; }`fpointer` points to the instructions in...
Thursday, 13 January 2022 - 19:51
What is the difference between a CPU register and the rest of volatile memory on AVR?
While we are at it I'm going to address this comment from #8: Also worth noting is that the AVR does not execute code from RAM Using `objdump` to check a linked binary I see this...
Thursday, 13 January 2022 - 19:22
What is the difference between a CPU register and the rest of volatile memory on AVR?
Thanks again for everyones help on this.
Thursday, 13 January 2022 - 17:23
What is the difference between a CPU register and the rest of volatile memory on AVR?
awneil wrote:It's actually two distinct boxes   Correct, but in that example the boxes are either holding data, or you write data to them, or both, essentially there is data...
Thursday, 13 January 2022 - 16:46
What is the difference between a CPU register and the rest of volatile memory on AVR?
awneil wrote:SFRs do not necessarily store anything at all   I'm having a hard time understanding this, if it has nothing to do with holding data then why is it called...
Thursday, 13 January 2022 - 16:33
What is the difference between a CPU register and the rest of volatile memory on AVR?
awneil wrote:The Register File is just memory - all it does is store data   I mean technically all of them are just memory to store and/or retrieve data. What I meant...
Thursday, 13 January 2022 - 16:07
What is the difference between a CPU register and the rest of volatile memory on AVR?
@clawson @awneil   Thank you for the detailed explanation.    So when using say `UDR`, I will load/store to the same address but behind the scene the hardware is...
Thursday, 13 January 2022 - 15:44

Pages