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

after_linker_process

hello !! please i want to know how could i control the placement of RW data of a "xxxx.o" on a specific region into the flash
PS : my input is a .axf file and my output would be a .hex file

Parents
  • You're going in circles, from an "application level" you import symbols in the same way other functions and variables. It's not an "assembly" concept, its object file basics.

    From the .AXF file

    ...
        i.__scatterload_zeroinit
        [Anonymous symbol #351]
            0x20002588:    2000        .       MOVS     r0,#0
            0x2000258a:    e001        ..      B        0x20002590 ; 0x20002590
            0x2000258c:    c101        ..      STM      r1!,{r0}
            0x2000258e:    1f12        ..      SUBS     r2,r2,#4
            0x20002590:    2a00        .*      CMP      r2,#0
            0x20002592:    d1fb        ..      BNE      0x2000258c ; 0x2000258c
            0x20002594:    4770        pG      BX       lr
            0x20002596:    0000        ..      MOVS     r0,r0
    ...
        APBPrescTable
            0x20002a84:    00000000    ....    DCD    0
            0x20002a88:    04030201    ....    DCD    67305985
        Region$$Table$$Base
            0x20002a8c:    20002ac0    .*.     DCD    536881856
            0x20002a90:    20002ac0    .*.     DCD    536881856
            0x20002a94:    0000004c    L...    DCD    76
            0x20002a98:    20002588    .%.     DCD    536880520
        Region$$Table$$Limit
    
    ...
        354  puts                       0x20002a11   Gb    1  Code  Hi   0x1e
        355  AHBPrescTable              0x20002a74   Gb    1  Data  Hi   0x10
        356  APBPrescTable              0x20002a84   Gb    1  Data  Hi   0x8
        357  Region$$Table$$Base        0x20002a8c   Gb    1   --   Hi
        358  Region$$Table$$Limit       0x20002a9c   Gb    1   --   Hi
        359  QPI_Mode                   0x20002aa4   Gb    2  Data  Hi   0x4
    

    If you've stripped the symbols you'll have to go fish for the structures, or work with the objects earlier.

Reply
  • You're going in circles, from an "application level" you import symbols in the same way other functions and variables. It's not an "assembly" concept, its object file basics.

    From the .AXF file

    ...
        i.__scatterload_zeroinit
        [Anonymous symbol #351]
            0x20002588:    2000        .       MOVS     r0,#0
            0x2000258a:    e001        ..      B        0x20002590 ; 0x20002590
            0x2000258c:    c101        ..      STM      r1!,{r0}
            0x2000258e:    1f12        ..      SUBS     r2,r2,#4
            0x20002590:    2a00        .*      CMP      r2,#0
            0x20002592:    d1fb        ..      BNE      0x2000258c ; 0x2000258c
            0x20002594:    4770        pG      BX       lr
            0x20002596:    0000        ..      MOVS     r0,r0
    ...
        APBPrescTable
            0x20002a84:    00000000    ....    DCD    0
            0x20002a88:    04030201    ....    DCD    67305985
        Region$$Table$$Base
            0x20002a8c:    20002ac0    .*.     DCD    536881856
            0x20002a90:    20002ac0    .*.     DCD    536881856
            0x20002a94:    0000004c    L...    DCD    76
            0x20002a98:    20002588    .%.     DCD    536880520
        Region$$Table$$Limit
    
    ...
        354  puts                       0x20002a11   Gb    1  Code  Hi   0x1e
        355  AHBPrescTable              0x20002a74   Gb    1  Data  Hi   0x10
        356  APBPrescTable              0x20002a84   Gb    1  Data  Hi   0x8
        357  Region$$Table$$Base        0x20002a8c   Gb    1   --   Hi
        358  Region$$Table$$Limit       0x20002a9c   Gb    1   --   Hi
        359  QPI_Mode                   0x20002aa4   Gb    2  Data  Hi   0x4
    

    If you've stripped the symbols you'll have to go fish for the structures, or work with the objects earlier.

Children