Breakpoint issue - the current selected device is unable to set breakpoints during runtime - on one PC but not the other.

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have two PCs both Win8.1 64 bit Pro each with Studio 6.2 and on one I get Breakpoint warning glyph whenever I try running debug and the other works perfectly.  The code loads and runs perfectly without and load problems using JTAGICE3 but I can't debug with one.  It looks like it can't reference the symbols.  Optimisation is set to same on both.   

 

I have compared all the options for the toolchain and they appear identical.

 

Both PCs have Visual Studio 2012 pro although the one that has the issue also has VS2013 pro.

 

I have uninstalled 6.2 and reinstalled on the 'faulty' PC - still the same.

 

I can set breakpoints in very simple code setting tool as simulator on one but not the other.

 

I am sure it is something staring me in the face but I can't see it - can anyone tell me what to look for?

 

David

This topic has a solution.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you saying the two are using the same code on a shared network drive - or they each have a local checked out copy?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Same code shared via OneDrive.

 

David

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've no idea what OneDrive is but just to give you an idea. When you debug an ELF file the binary does not contains lines of C code that the debugger can show. All that -g does is embed links to files and line numbers. When the debugger (or even avr-objdump -S)  loads and displays the code it uses the file/line references and opens said files, reads the given line then uses it to annotate the disassembly. So if the files are not in EXACTLY the same place as when the code was built the debugger will not be able to "see" the files.

 

I suspect that something about your code sharing is making it the case that on one machine it cannot "see" the sources. A full, forced rebuild from local sources should fix this.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OneDrive (formerly SkyDrive) is Microsoft's cloud 'drive', similar to DropBox.  I have the same (relative) location on both PCs so if I work on one PC, close the project and open up the project on the other they will use exactly the same source files however starting the debugger instigates a build.  The other difference being the Atmel studio installation.

 

8< A full, forced rebuild from local sources should fix this.

 

Do you mean F7 or something else?

 

David 

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok I tried Ctrl+Alt+F7 to rebuild solution and it now looks to be working.  I'll mark as solved after I am able to test further, hopefully later today.

 

Thanks for your help,

 

David

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yep, rebuild solution solved the issue.  Many thanks.

 

David

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The paths in ELF are absolute not relative (which is kind of the problem) so if the code was built in /foo/path/to/files/ on one machine and debugged in /bar/path/to/files/ on the other then the files will not be found as the embedded paths will contain "/foo/" that you haven't got.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok so the path on both machines is %user%\path\to\files\testfile.elf.   However the %user% on each machine could be (and are) different, hence the issue.

 

Absolute paths are an absolute pain......

 

David 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

I am a novice to Atmel Studio 6.2 and programming.

 

I have upgraded from 6.1 to 6.2 to 6.2.1502

Now I am having the following problem with 6.2.1502. The problem did not exist with AS6.1 or the first AS6.2

 

I am now having somewhat the same problem but in addition to know being able to stop at set breakpoints, I am unable to view variables in the watch window. 

Nothing populates in Autos or Locals and if I add a variable like and integer that has been declared and initialized at the beginning of the program.

If I add a variable to the watch, the variable name shows in the Watch 1, the Value column shows unknown identifier and the type column shows Error.

 

What is posted in this forum subject did not work for me. But maybe it is just me not not being able to navigate to proper locations through AS6.2 to change the paths.

 

 

Here is my As6.x information.

 

Atmel Studio 6 (Version: 6.2.1502 - Service Pack 1)
© 2014 Atmel Corp.
All rights reserved.

OS Version: Microsoft Windows NT 6.0.6002 Service Pack 2
Platform: Win32NT

Installed Packages: Shell VSIX manifest - 6.2
Shell VSIX manifest
Version: 6.2
Package GUID: 5aa6ea3e-da7b-48c1-9b2a-cab2329d32ac
Company: Atmel Corporation

Installed Packages: Atmel ARM GNU Toolchain - 4.8.4.1437
ARM Toolchain
Version: ARM_Toolchain_Version:4.8.4.371 GCC_VERSION:4.8.4
Package GUID: D83C9208-1D2D-4665-9760-EB9EE264CF8F
Company: Atmel
HelpUrl: 
Release Description: ARM Toolchain

CMSIS
Version: 3.20
Package GUID: D83C9208-1D2D-4665-9760-EB9EE264CF8F
Company: Atmel
HelpUrl: 
Release Description: ARM Support File Version

 

Installed Packages: AVR macro Assembler - 2.1.57.1175
AVR Assembler
Version: 2.1.57.16
Package GUID: 03CB4AE1-80EA-40C7-B561-98CC87EA539C
Company: Atmel
HelpUrl: 
Release Description: AVR Assembler For 8-Bit Devices

 

Installed Packages: Atmel AVR (32 bit) GNU Toolchain - 3.4.2.1067
AVR Toolchain 32
Version: AVR32_Toolchain_Version:3.4.2.435 GCC_VERSION:4.4.7
Package GUID: DB6D383F-C5D9-4E7E-BBF9-F37C6EEB59FD
Company: Atmel
HelpUrl: 
Release Description: AVR Toolchain For 32-Bit Devices

 

Installed Packages: Atmel AVR (8 bit) GNU Toolchain - 3.4.5.1061
AVR Toolchain 8 Bit
Version: AVR8_Toolchain_Version:3.4.5.1522 GCC_VERSION:4.8.1
Package GUID: 2C7AA7CF-94C6-463C-81DA-4AA03B613C3B
Company: Atmel
HelpUrl: 
Release Description: AVR Toolchain For 8-Bit Devices

 

Installed Packages: Atmel Gallery - 1.3.1
Atmel Gallery
Version: 1.3.1
Package GUID: AtmelStudioExtensionManager
Company: Atmel

Installed Packages: Atmel Kits - 1.7.315
Atmel Kits
Version: 1.7.315
Package GUID: B624D6C6-CB86-4887-A57F-327D248085A9
Company: Atmel

Installed Packages: Atmel Software Framework - 3.20.1.1349
ASF
Version: 3.20.1
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.20.1
Release Description: ASF - 3.20.1 Release

ASF
Version: 3.19.0
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.19.0
Release Description: ASF - 3.19.0 Release

ASF
Version: 3.18.1
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.18.1
Release Description: ASF - 3.18.1 Release

ASF
Version: 3.18.0
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.18.0
Release Description: ASF - 3.18.0 Release

ASF
Version: 3.17.0
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.17.0
Release Description: ASF - 3.17.0 Release

ASF
Version: 3.16.0
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.16.0
Release Description: ASF - 3.16.0 Release

ASF
Version: 3.15.0
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.15.0
Release Description: ASF - 3.15.0 Release

ASF
Version: 3.14.0
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.14.0
Release Description: ASF - 3.14.0 Release

ASF
Version: 3.13.1
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.13.1
Release Description: ASF - 3.13.1 Release

ASF
Version: 3.12.1
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.12.1
Release Description: ASF - 3.12.1 Release

ASF
Version: 3.11.0
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.11.0
Release Description: ASF - 3.11.0 Release

ASF
Version: 3.10.1
Package GUID: 1E567EA3-6E83-4C11-8734-684F4581B25D
Company: Atmel
HelpUrl: http://asf.atmel.com/3.10.1
Release Description: ASF - 3.10.1 Release

 

Installed Packages: AtmelToolchainProvider - 6.2.678
AtmelToolchainProvider
Version: 6.2.678
Package GUID: AtmelToolchainProvider.Atmel.0780A430-065B-4EFD-B0D1-FC957262E6DF
Company: Atmel

Installed Packages: LiveWatch - 6.2.140
LiveWatch
Version: 6.2.140
Package GUID: 07290e21-75bd-4363-8d07-a5fa8e32876e
Company: Atmel

Installed Packages: MemoryLogger - 6.2.171
MemoryLogger
Version: 6.2.171
Package GUID: 99A2A244-8218-4868-A0D1-A1683E6FCC53
Company: Atmel

Installed Packages: Percepio Trace for Atmel Studio - 1.2
Percepio Trace for Atmel Studio
Version: 1.2
Package GUID: fe274744-c496-42fc-9e52-f77b92d669b1
Company: Percepio AB

Installed Packages: Visual Assist for Atmel Studio - 10.8.2023.3
Visual Assist for Atmel Studio
Version: 10.8.2023.3
Package GUID: 7997A33C-B154-4b75-B2AC658CD58C9510
Company: Whole Tomato Software

Installed Packages: GdbConsole - 6.2.132
GdbConsole
Version: 6.2.132
Package GUID: d616f47a-811f-4a7e-bcb8-8fe696222d92
Company: Atmel

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

First question: can you confirm you have set the configuration to 'Debug' when building?

 

David 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

David:

I will do that.

 

When I see options for release and debug, I have selected debug.

There were to or three places (I think three) that I have made sure debug is selected.

I have tried to find anything that says release so I can change it to debug.

 

I am thinking I may have to un-install the re-install Atmel Studio.

 

Thanks