Skip to main content
AVR Freaks
Main menu mobile
Home
Communities
Forums
Projects
Vendors
Wiki
Search
My summary
Privacy
Contact
Site Use Terms
Cookies
Communities
Forums
Vendors
WIKI
Projects
Signup
Login
Search form
Search
Entire Site
All Communities
AVR Freaks
Atmel SMART ARM-based MCUs
Internet of Things
Capacitive Touch
Projects
Vendors
Wiki
You are here
Home
»
User login
avruser1523's Posts
Main menu mobile
Home
Communities
Forums
Projects
Vendors
Wiki
Search
My summary
Privacy
Contact
Site Use Terms
Cookies
Communities
Forums
Vendors
WIKI
Projects
Discussion Topics
Comments/Replies
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
<<
<
1
2
3
4
5
6
7
8
9
>
>>
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.
@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...
@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...
I think I will open a different issue for this question, going off topic.
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...
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...
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...
Thanks again for everyones help on this.
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...
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...
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...
@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...
Pages