You are here

Unable to debug with newer version of ARM GNU Toolchain. | Cypress Semiconductor

Unable to debug with newer version of ARM GNU Toolchain.

Summary: 8 Replies, Latest post by Carlos on 24 Nov 2016 06:02 PM PST
Verified Answers: 0
Last post
Log in to post new comments.
user_365962704's picture
User
166 posts

Hi,

Just to play with Creator 4.0 i did installed the newest GNU ARM Toolchain (Version 5-2016-q3-update at the moment) [1], and went to Tools > Options > Project Management > ARM Toolchains, set Default Toolchain to ARM GCC Generic and the place the path to the bins of the newest toolchain on the dedicated place.

Being able to compile, generate the bin files and program the PSoC device as usual (usual meaning using the toolchain provided with Creator) but i'm not able to Debug, there's a couple of errors:

- "There was an unhandled error during the debug session. This has forced the debugger to shutdown. Try again."

- "The request to start the debugger failed. Make sure that all files with debugging information are available."

 

Don't know if it's related to the toolchain used, is possible to do a debug session with the default toolchain provided with Creator (both projects builded in Debug mode).

I can work with the default toolchain but i would like to know if it's possible to fix the issue.

 

Thanks in advance

Carlos

[1] https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads

ANKS's picture
Cypress Employee
89 posts

Hello Carlos,

I tried to reproduce the issue you are facing on PSoC Creator4.0 with Windows7 OS.But I was able to debug the project successfully.

What you can do is check in  the Task Manager (while starting Debugging session)whether cypsocdebugger.exe is present in Processes tab or not.

This forum post may also help-

http://www.cypress.com/forum/psoc-creator-software/debug-directly-gdb-in...

user_365962704's picture
User
166 posts

Hi ANKS, thanks for the reply,

I did find cypsocdebugger.exe when debugging with the default toolchain, and it appears and disappears after when i try to debug with the newer version of the toolchain. I'm using Windows10, did you added the new toolchain path to the environment?. Here [1] they disable thatt option because having multiple versions of the toolchain.

Will check the GDB post, thanks for the link.

 

Carlos

 

[1] https://gnuarmeclipse.github.io/toolchain/install/#windows

ANKS's picture
Cypress Employee
89 posts

Hello Carlos,

I tried on system with Windows10 OS ,but was unable to reproduce the issue.I did exactly what you have mentioned in Interaction#1 of yours.I didn't added the new tool chain path to the environment.I downloaded the Windows Zip version of new GNU ARM Toolchain available at this link-

 https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads

 

user_365962704's picture
User
166 posts

Hi ANKS,

Must be a problem with my PC then, will try to do the same on another PC and see if it works.

Thanks for the help

Carlos

user_365962704's picture
User
166 posts

Found a couple of post that talks about the same issue:

http://www.psocdeveloper.com/forums/viewtopic.php?f=48&t=6938
http://www.psocdeveloper.com/forums/viewtopic.php?f=48&t=6813&start=20

I'm using Win10 x64 version so i did the following command in the command line:

> ngen install "C:\Program Files (x86)\Cypress\PSoC Creator\4.0\PSoC Creator\bin\psoc_creator.exe"

Now Creator is a little bit faster but still unable to debug with the newer toolchain, i guess the problem is my PC, it's about 6 years old.

ANKS's picture
Cypress Employee
89 posts

Hello Carlos,

After certain successful debugging session I am able to recreate this issue of being unable to debug.Have you observed the same after certain successful debug session

Rod Muirhead's picture
User
4 posts

Hello Carlos/Anks

I have the same issue with debugging and would be interested to see if you found an answer to the problem. I have a Windows 7 PC and everything worked fine up until a few weeks ago. Some time after a Windows updates and when I updated to psoc creator 4. Programming is fine SWD is correct but debug times out. I also have a laptop with Windows 10 and everything is good on that. Just my PC stopped working.

Regards

Rod

user_365962704's picture
User
166 posts

Hi Rod,

I gave up on debugging with the newer toolchain, i'm only working with the toolchain that comes with Creator by default, my pc is Windows 10 64x, i haven't tried with other machines.

Hope it can be figured out soon, or a toolchain update with the next ServicePack of Creator, according to the release notes there's improvement on the code generation for Cortex M0 devices (most of the PSoC 4 families have this processor).

 

Carlos

Log in to post new comments.