cancel
Showing results for 
Search instead for 
Did you mean: 

see where my prgm finish in the flash memory

TARHAN SAMAH
Senior
Posted on May 24, 2018 at 14:34

hello evry one when i program my stm using keil ,, i want to see where is the adress that my sofware ended at 

in the flash memory 

just got this 

*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'

Build target 'ETHERNET-STM32F429ZI'

compiling eth.c...

linking...

Program Size: Code=55696 RO-data=1132 RW-data=664 ZI-data=76736

''ETHERNET-STM32F429ZI\ETHERNET-STM32F429ZI.axf'' - 0 Error(s), 0 Warning(s).

Build Time Elapsed: 00:00:14

Load ''ETHERNET-STM32F429ZI\\ETHERNET-STM32F429ZI.axf''

Erase Done.

Programming Done.

Verify OK.

Application running ...

Flash Load finished at 15:23:06

and i see in blue increasing a browser but very fastly so  i cannot get the end adress ??

0690X0000060Kv4QAE.png

is there a way to see the end adress ????

thanks 

8 REPLIES 8
AvaTar
Lead
Posted on May 24, 2018 at 14:54

Linker map ?

Debugger ?

Posted on May 24, 2018 at 14:57

.MAP file would be a good start

You could use FROMELF to inspect the .AXF file sections

Keil has some special symbols you can use of the target to print out the ending address in IROM

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 24, 2018 at 14:58

 ,

 ,

https://community.st.com/0D70X000006Srs3SAC

 ,
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 24, 2018 at 15:20

i dont know to use any of them 

Posted on May 24, 2018 at 15:31

Think of it as a learning opportunity...

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 24, 2018 at 15:46

Mister Clive , i used your old posts :

this instruction 

  extern uint32_t Load$$LR$$LR_IROM1$$Limit;

  printf('Limit %08X\n', (uint32_t)&Load$$LR$$LR_IROM1$$Limit);

i got this Limit 0800E370

this is my end of prgm+data or just prgm ???

Posted on May 24, 2018 at 16:52

Should be the entire span (code, constant data, data copied to RAM), you could dump the memory to the console and look, or use the ST-LINK Utilities to see the transition from data to 0xFF data patterns.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

#EndOfFlash​ 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..