This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to write to memory address 0x82800 ? (ST10)

i could read address 0x82800 by this code :

mov R2,#0x2800
EXTS #8,#1
mov R1,[R2]


which R1 contains right answer .

but i cant write to this address with this code :

mov R1,0xffff
mov R2,#0x2800
EXTS #8,#1
Mov [R2],R1


when i can read this location , why i can not write ?
please help me.

Parents
  • i tried many times using C code , but no success, then searching internet, but no success,then i read datasheet and understand using off DPP register, tried, but no success,and then using EXT instructions and no success,using flash programming register , but... , then ask question here...

    this is new test result:

    #define memory_location *( unsigned int huge *)(0x00082800)
    
    and in main function
    {
    uart_send(memory_location); //send value to uart > this value is correct i.e. 0x1111
    memory_location = 0xffff;   //write to location  > correct???
    uart_send(memory_location); //send value to uart > but this is last data, not 0xffff
    }
    

Reply
  • i tried many times using C code , but no success, then searching internet, but no success,then i read datasheet and understand using off DPP register, tried, but no success,and then using EXT instructions and no success,using flash programming register , but... , then ask question here...

    this is new test result:

    #define memory_location *( unsigned int huge *)(0x00082800)
    
    and in main function
    {
    uart_send(memory_location); //send value to uart > this value is correct i.e. 0x1111
    memory_location = 0xffff;   //write to location  > correct???
    uart_send(memory_location); //send value to uart > but this is last data, not 0xffff
    }
    

Children