what is this?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

what is this?

1,307 次查看
roberto_m
Contributor III

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

Thank you.

标签 (1)
0 项奖励
回复
4 回复数

1,069 次查看
roberto_m
Contributor III

any ideas?

0 项奖励
回复

1,069 次查看
J2MEJediMaster
Specialist I

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

 

---Tom

0 项奖励
回复

1,069 次查看
roberto_m
Contributor III

Hi,

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

Roberto

0 项奖励
回复

1,069 次查看
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 项奖励
回复