CodeWarrior " Runtime error 217" at breakpoint.
Win 7, CW 10.6.4 latest
Thank you,
Regards,
Stel
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 .
BR
Alice
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
Hi Alice,
I can download the bootloader very well.
MK60DN512ZVLq10,
Thank you,
Regards,
Stel
Hello Stel ,
"download the bootloader very well." , which bootloader ?
From
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
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
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
Hi Alice,
I get this corba / connection error, even with projects that previously worked.
Thank you,
Regards,
Stel
Hi Stel,
(1)
As i said before :
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
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
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
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
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
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