what is this?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

what is this?

573 Views
roberto_m
Contributor III

What is the procedure that was called before main? (see the attached image)

Thank you.

Labels (1)
0 Kudos
4 Replies

335 Views
roberto_m
Contributor III

any ideas?

0 Kudos

335 Views
J2MEJediMaster
Specialist I

It is probably the startup code that executes prior to invoking main() and establishes the C run-time environment.

 

---Tom

0 Kudos

335 Views
roberto_m
Contributor III

Hi,

thank you. But why this startup code have always a different address?

Roberto

0 Kudos

335 Views
bigmac
Specialist III

Hello Roberto,

 

If you examine the map file for the project, this will indicate where the startup code is located.  If using a standart .PRM file, this will normally be near the start of the ROM segment.

 

The following process works with earlier versions of CW, but I am not sure about later versions.  Whilst in debug mode, reset the MCU.  The PC should then point to the beginning of the startup code.  Single stepping of the startup code can then take place.

 

Regards,

Mac

 

0 Kudos