ksnf3000 0 Posted April 4, 2014 Share Posted April 4, 2014 Hello All, I am trying to write data into flash which i need to copy it to the SRAM later. I am doing this in assembly and this is part of the code i am trying to use. I have provided the addresses of the FMD, FMA and FMC registers needed for flash programming and then I am copying those addresses into the registers r8,r9 and r10. My question is how do i now load data values into the addresses pointed by the registers r8,r9 and r10? As you can see, I am clearly wrong somewhere and need assistance!! FMD EQU 0x000000AB FMA EQU 0x000000DC FMC EQU 0x000000FF . . . . . . LDR R8, =FMD LDR R9, =FMA LDR R10,=FMC MOV32 [R8], #0xF0F0F0F0 MOV32 R9, #0x00000000 poll MOV32 R10,#0xA4420001 BNE poll Thanks!! BR, \ksnf3000 Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.