Skip to main content
websat13
Associate III
April 22, 2018
Question

RW-Data and ZI-Data

  • April 22, 2018
  • 4 replies
  • 1928 views
Posted on April 23, 2018 at 00:30

hello

i am working on an application with STm32f373, using keil uvision 5.

how can i get the values of RW-Data and ZI-Data, i need o send this data via

serial interface for debug purpouse.

is there any compiler directive like __TIME__ or __DATE__ to get this data

availlable?

regards.

    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    April 22, 2018
    Posted on April 23, 2018 at 01:29

    >>is there any compiler directive like __TIME__ or __DATE__ to get this data available?

    Symbols generated by the Linker

    http://www.keil.com/support/man/docs/armlink/armlink_pge1362065952432.htm

     
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    websat13
    websat13Author
    Associate III
    April 23, 2018
    Posted on April 23, 2018 at 02:08

    hello

    thanks clive for the response.

    i have trued with this example:

    extern unsigned int Image$$ER_ZI$$Length; extern char Image$$ER_ZI$$Base[]; memset(Image$$ER_ZI$$Base,0,(unsigned int)&Image$$ER_ZI$$Length);

    but i had this error:

    Error: L6218E: Undefined symbol Image$$ER_ZI$$Base.

    Error: L6218E: Undefined symbol Image$$ER_ZI$$Length.

    thanks.
    Tesla DeLorean
    Guru
    April 23, 2018
    Posted on April 23, 2018 at 03:16

    Project.sct

    ; *************************************************************

    ; *** Scatter-Loading Description File generated by uVision ***

    ; *************************************************************

    LR_IROM1 0x08000000 0x00200000  {    ; load region size_region

      ER_IROM1 0x08000000 0x00200000  {  ; load address = execution address

       *.o (RESET, +First)

       *(InRoot$$Sections)

       .ANY (+RO)

      }

      RW_IRAM1 0x20000000 0x00080000  {  ; RW data

       .ANY (+RW +ZI)

      }

    }

      extern uint32_t Image$$RW_IRAM1$$ZI$$Limit;

      printf('%08X\n', &Image$$RW_IRAM1$$ZI$$Limit);
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    websat13
    websat13Author
    Associate III
    April 23, 2018
    Posted on April 23, 2018 at 09:54

    hello

    it is working now, thanks clive for the help.

    regards.