BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: Timer example in FT32 Toolchain only works in Release config  (Read 337 times)

Jurgen

  • Newbie
  • *
  • Posts: 1
    • View Profile
Timer example in FT32 Toolchain only works in Release config
« on: August 17, 2022, 12:20:44 PM »

Hello,

just testing the Timer Example 3 that comes with the FT32 toolchain. It works fine in build configuration "Release", but there are no timer interrupts when using GDB and build configuration "Debug".
Same happens with the project I am currently working on. So debugging anything having to do with interrupts seems impossible.

Is there a workaround for that or am I maybe missing some crucial switch somewhere?

Greetings,
Jurgen
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 625
    • View Profile
Re: Timer example in FT32 Toolchain only works in Release config
« Reply #1 on: October 07, 2022, 04:04:09 PM »

Hello Jurgen,

The debugger may affect ISRs (Interrupt Service Routines) if you: (a) Trigger a breakpoint inside an ISR or (b) Step into one from the main code. All applications will run if they are built for debug and should even run from the debugger if no breakpoints are set. I can confirm that the timer examples will RUN when they are compiled as Debug. The debugger, in this case ft32-elf-gdb from the toolchain, is unable to find the source code for a breakpoint under some circumstances which will require some investigation.

Could please provide some information on where you are placing breakpoints and at which points you are stepping the code?

Best regards BRT Community
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 625
    • View Profile
Re: Timer example in FT32 Toolchain only works in Release config
« Reply #2 on: October 11, 2022, 04:48:53 PM »

Hello again,

We have raised this issue within our GitHub repository providing details of the issue itself, and details for a workaround to resolve it. This can be accessed using the following link: https://github.com/Bridgetek/ft90x-sdk/issues/1

The replacement library files (and requisite file location) are in the following release: https://github.com/Bridgetek/ft90x-sdk/releases/tag/v2.6.0-issue.1

Replacing the hardware libraries with these two files will fix the debugging issue.

Best regards BRT Community
Logged