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

ID string in a flash

Hello,

I need to put an ID string (file name and version) at a particular address in a flash, so the programming application can read it from a hex / binary file.
I can probably use a scatter file, but is there any simpler solution ?

Cortex-M3 STM32F107
MDK-ARM 4.12

thank you,
Gennady

Parents
  • How about this?

    ; *************************************************************
    ; *** Scatter-Loading Description File generated by uVision ***
    ; *************************************************************
    
    LR_IROM1 0x08000000 0x00020000  {    ; load region size_region
      ER_IROM1 0x08000000 0x00020000  {  ; load address = execution address
       *.o (RESET, +First)
       *(InRoot$Sections)
       .ANY (+RO)
      }
      RW_IRAM1 0x20000000 0x0000C000  {  ; RW data
       .ANY (+RW +ZI)
      }
    }
    
    LR_IROM2 +0 {
      ER_IROM2 +0  {
       *.o(codeEnd, +Last)
      }
    }
    

Reply
  • How about this?

    ; *************************************************************
    ; *** Scatter-Loading Description File generated by uVision ***
    ; *************************************************************
    
    LR_IROM1 0x08000000 0x00020000  {    ; load region size_region
      ER_IROM1 0x08000000 0x00020000  {  ; load address = execution address
       *.o (RESET, +First)
       *(InRoot$Sections)
       .ANY (+RO)
      }
      RW_IRAM1 0x20000000 0x0000C000  {  ; RW data
       .ANY (+RW +ZI)
      }
    }
    
    LR_IROM2 +0 {
      ER_IROM2 +0  {
       *.o(codeEnd, +Last)
      }
    }
    

Children