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

ram data corrupt

hello

I write program in one kind of RTOS. But some times  all the data in RAM are corrupt since I add some code

in functions, if continue add some code in the function, the data in RAM is OK.

  • does the data copy from FALSH to RAM by linker? I think my code has impact on linker

  • hello pier

     I found since implement code in 0x08003E32 in function _scatterload, the data copy from Flash to RAM is not correct. I paste the code here, do you have idea about this? If I want to check the relative data in Flash, how can I know the exact data address?

    0x08003E20 4C06      LDR      r4,[pc,#24]  ; @0x08003E3C
    0x08003E22 4D07      LDR      r5,[pc,#28]  ; @0x08003E40
    0x08003E24 E006      B        0x08003E34
    0x08003E26 68E0      LDR      r0,[r4,#0x0C]
    0x08003E28 F0400301  ORR      r3,r0,#0x01
    0x08003E2C E8940007  LDM      r4,{r0-r2}
    0x08003E30 4798      BLX      r3
    0x08003E32 3410      ADDS     r4,r4,#0x10
    0x08003E34 42AC      CMP      r4,r5
    0x08003E36 D3F6      BCC      0x08003E26
    0x08003E38 F7FCF9C0  BL.W     __main_after_scatterload (0x080001BC)
    0x08003E3C 3F04      DCW      0x3F04
    0x08003E3E 0800      DCW      0x0800
    0x08003E40 3F24      DCW      0x3F24
    0x08003E42 0800      DCW      0x0800