2018-04-22 03:30 PM
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.
2018-04-22 04:29 PM
>>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
2018-04-22 05:08 PM
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.2018-04-22 08:16 PM
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);2018-04-23 12:54 AM
hello
it is working now, thanks clive for the help.
regards.