reset flag in CW IDE 10.5 for Cpp projects?

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

reset flag in CW IDE 10.5 for Cpp projects?

1,362 Views
abdullahansari
Contributor III


Hello Every one.

 

Does some one know if there exists a flag in CW IDE enabling returning to main after the reset button is pressed on board.

 

I have no problems of reset with C projects but as soon as i am building a Cpp project, write it to flash and reset my board, the project (only in cpp) doesnt start ever (or doesnt go back to main() and start from there). Am i missing some settings/flags in project/build/debugging properties?

 

I am using CW for MCU 10.5 (evaluation version).

 

Regards

Abdullah

Labels (1)
7 Replies

901 Views
abdullahansari
Contributor III

Hi Pascal,

Really admire your service. I got the problem solved yesterday from one of freescale members.I had to change the compiler settings from c++ hosted to c++_noio. Here is the link to another thread

https://community.freescale.com/thread/320227

Regards

Abdullah

0 Kudos

901 Views
trytohelp
NXP Employee
NXP Employee

Hi Abdullah,

Happy you've solved the problem.

enjoy with CodeWarrior development tool.

don't hesitate to contact us if you have other question/problem.

Regards

Pascal

0 Kudos

901 Views
trytohelp
NXP Employee
NXP Employee

Hi Abdullah,

What is the processor (derivative)?

       and depending of architectures you can have GCC or Freescale build version ?

Regards

Pascal

0 Kudos

901 Views
abdullahansari
Contributor III

Hi Pascal,

Its MK60F512 (150MHz). i am using GCC with ewl_c++_hoisted option for compiler.

0 Kudos

901 Views
trytohelp
NXP Employee
NXP Employee

Hi,

I don't have the same board but a TWR-K60D100M.

I've created 2 projects, 1 for C and 1 for C++.

On my side the behavior is the same on 2 projects.

I can:

      - load the application,

      - set a bkpt for a counter variable,

      - run the project.

            application is stopped on bkpt. Click several time on run.

      - click on Board Reset button,

      - run the project,

      - application is stopped and variable has init value.

So on my side it seems to be running without issue.

Attached you will find the generic example used.

Regards

Pascal

901 Views
abdullahansari
Contributor III

Hi,

Thanks for attaching the projects. The settings at my side are same. But you see the code must be reset and start running on flash when I press reset (button onboard) in what so ever condition it is before. But its not happening. So my story is without the debugger.

Lets say a code is flashed onto your board and its showing results on serial terminal.

1)Press the reset button on the board.

2)The code must restart from main initialy and start running and showing the displays on terminal again.

But the second step in my case is not happening in Cpp project, in all other C projects its restarting and running (with out debugger, so we dont press any run). I feel I am missing some flag or at least some lines in the startup code.

Regards

Abdullah

0 Kudos

901 Views
trytohelp
NXP Employee
NXP Employee

Hi Abdullah,

I need to create a new example which requires more time.

Can I propose you we continue to investigate the behavior via a Service Request ?

It will be more easy for us to handle the issue (tracking).

Regards

Pascal