CodeWarrior " Runtime error 217"  at breakpoint.

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

CodeWarrior " Runtime error 217"  at breakpoint.

2,488 Views
stel
Contributor I

CodeWarrior " Runtime error 217"  at breakpoint.

Win 7, CW 10.6.4 latest

 

Thank you,

 

Regards,

 

Stel

Labels (1)
0 Kudos
14 Replies

2,243 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Stel,

It maybe you add a breakpoint on the wrong place.

While only through " Runtime error 217 at breakpoint "  can not find the problem ,  And please screenshot the console window of CodeWarrior ,

it show the detail information .

pastedImage_0.png

BR

Alice

0 Kudos

2,243 Views
stel
Contributor I

Hi Alice,

Please see attached some screen-shots from CW crashes.

Thank you,

Regards,

Stel

0 Kudos

2,243 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Stel,

I have checked your attachment , and  your project haven't download to the chip,

which chip do you use ? Please firstly create a simple project , then download it to the chip , check whether it can work well .

BR

Alice

0 Kudos

2,243 Views
stel
Contributor I

Hi Alice,

I can download the bootloader very well.

MK60DN512ZVLq10,

Thank you,

Regards,

Stel

0 Kudos

2,243 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Stel ,

"download the bootloader very well." , which bootloader ?

From

pastedImage_0.png

i think your project have not download to the board successfully.

And have you test create a simple project ,  does it can work well ?

If no, it meaning your board have not connect with CW successful.

If the simple project can work well , it meaning there have some error with your project.

BR

Alice

0 Kudos

2,243 Views
stel
Contributor I

Hi Alice,

The program / CodeWarrior crash when debug mode, after successful compile, at the point

when a call to a simple dummy (print something) function is made.

This makes very difficult to troubleshoot. I searched the Net for possible answers already.

Thank you,

Regards,

Stel

0 Kudos

2,243 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Stel,

Please try do as i said.

(1)  Create a simple project , then build , then download , then run, check whether it can work well . please tell me the result , thank !

(2) "at the point when a call to a simple dummy (print something) function is made. " do you meaning when run to the "printf "  , the project can not run well ?

If yes , please screenshot your code , or you can send me a simple project , which i can repeat your problem.

BR

Alice

0 Kudos

2,243 Views
stel
Contributor I

Hi Alice,

I get this corba / connection error, even with projects that previously worked.

Thank you,

Regards,

Stel

0 Kudos

2,243 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Stel,

(1)

As i said before :

pastedImage_0.png

have you test ? tell me the result , thank !

Now we should firstly be sure the CW10.6  can link your board correct,  so i ask you create a simple project to test.

Then check your code, for example the printf .

(2)

And about your printf , i have not see your code , i do not know where do you print , console ? or UART ?

BR

Alice

0 Kudos

2,243 Views
stel
Contributor I

Hi Alice,

I started from an existing project. This project contains printf and worked without problems (I am aware off ☺)

I added Altera jbi/jbc, see attached. Initially I’ve got: memory heap size error. My action was to change malloc from jbi to MQX implementation, and double the size.

Did not solve it, but after downloading new version of CodeWarrior, It start passing over this problem. Even though, required multiple trials to download to get so far (every time it got stuck to different location or the same).

The printf are intended to serial port, even though (I did not check why), it printed to the console, some of them, as well.

The debugger pointed many times to problems, that after a while just disappear, without change in the code.

For example, the last 2 days, I had time to look into this, I have not got " Runtime error 217" error anymore.

Now it gets stuck somewhere in the code earlier, then previously did.

See bellow screen shots after every click on “run”:

Thank you,

Regards,

Stel

0 Kudos

2,243 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Stel,

I think it is not the reason of  CodeWarrior , for you said  and existing project can work well .

And sorry i don't know "Altera jbi/jbc" .

And you mentioned “CPLD/FPGA code” ,  doesn't  your project create by CW ?

I think now , you first should be sure where is wrong ? the hardware ? the IDE ? or  the code ?

BR

Alice

0 Kudos

2,243 Views
stel
Contributor I

Hi Alice,

You asked for the code.

Altera jbi is the code, I’m having problem with. It is C/C++ code.

This code emulate JTAG port on the GPIO pins to be able to program CPLD/FPGA.

Thank you,

Regards,

Stel

0 Kudos

2,243 Views
stel
Contributor I

Hi Alice,

Yes, the problem seams to be originating from the code, but CodeWarrior debugger,

Is crashing randomly at different stages, making it very difficult to debug.

That’s why I need your help,

Thank you,

Regards,

Stel

0 Kudos

2,243 Views
stel
Contributor I

Hi Alice,

Yes there is a printf inside of the function, and others.

I am trying to port the JTAG jbi embedded programming for CPLD/FPGA code (from Altera) to Kinetis K60.

Altera claims their code works on Windows (there are lots of “if windows else …”), the embedded code is untested.

Initially was their printf statement in the code, where (in the vicinity) seams that the debug crashed. Then I added my owns.

What should I do about printf, should I remove them from inside functions ?

Thank you,

Regards,

Stel

0 Kudos