infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 4 of 4

Thread: DAVE 4.4.2 & GCC8 Debugging Problems

  1. #1
    Beginner Beginner Clint is on a distinguished road
    Join Date
    Sep 2019
    Posts
    3
    Points
    65

    DAVE 4.4.2 & GCC8 Debugging Problems

    Hello everybody,

    i recently upgraded to GCC8 according to this thread: https://www.infineonforums.com/threads/4645-Upgrading-GCC-in-DAVE4?

    Compiling works fine and during debugging the microcontroller stops at breakpoints that were defined before launching the debugging configuration (see attached screenshot). So far, so good.

    Click image for larger version

Name:	DAVE_GCC8_breakpoint.png
Views:	4
Size:	129.6 KB
ID:	4138

    What doesn't work anymore with GCC8 is launching the exact same debugging configuration without breakpoints and hitting the "suspend" button while the microcontroller is running. If i do this nothing happens, except for the "suspend" button to become grey and unclickable. The only option then is to terminate everything (see second attached screenshot).
    From another example program with a blinking LED i know that hitting the suspend button doesn't stop the microcontroller. The LED keeps blinking. Surprisingly when i use the Segger JLink GDB console directly, suspending the microcontroller works fine.

    Click image for larger version

Name:	DAVE_GCC8_suspend.png
Views:	1
Size:	100.6 KB
ID:	4139

    Is this a known issue? Is there a workaround?
    With GCC49 (comes as standard with DAVE) everything worked perfectly fine. I also tried other GCC versions. With GCC6 and newer the problem occurs. Until GCC54 everything works perfectly fine.

    used software:
    - Windows 10 64bit
    - DAVE 4.4.2
    - GCC8 2019 q3 (https://developer.arm.com/tools-and-...-2019q3-update)
    - Segger JLink 6.50a

    used hardware:
    - XMC Link Isolated Debug Probe
    - XMC4800-E196x2048

    Thanks!

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    639
    Sorry I cannot reproduce your observation. I'm using as well the latest GCC and the latest Segger JLink Software ( when I connected the XMC Link a firmware upgrade was triggered)
    In my case when I update the Segger JLink software I overwrite the old version therefore in Preferences, Run/Debug>SEGGER J-Link, the path to the GDB server doe not contain any version information, i.e. C:/Program Files (x86)/SEGGER/JLink
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Beginner Beginner Clint is on a distinguished road
    Join Date
    Sep 2019
    Posts
    3
    Points
    65

    workaround

    @jferreira: So you can debug with full functionality using GCC8 GDB debugger and an XMC4800-E196x2048?

    I found a workaround, that works for me at the moment. I use GCC8 for compiling, but for debugging i use the GCC54 GDB debugger.
    Click image for larger version

Name:	DAVE_GCC8_GCC54debugger.png
Views:	1
Size:	55.1 KB
ID:	4161

    That seems to work fine until now, but i am still wondering why newer GDB debugger versions don't work.

  4. #4

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    639
    Yes, in my case I do not observe any problem.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.