cancel
Showing results for 
Search instead for 
Did you mean: 

RW-Data and ZI-Data

websat13
Associate II
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.

4 REPLIES 4
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
Up vote any posts that you find helpful, it shows what's working..
websat13
Associate II
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.
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
Up vote any posts that you find helpful, it shows what's working..
websat13
Associate II
Posted on April 23, 2018 at 09:54

hello

it is working now, thanks clive for the help.

regards.