1 2 Previous Next 15 Replies Latest reply on Aug 14, 2017 1:09 PM by yfs

    BUG? - Cannot place breakpoints in PSoC Creator 4.1

    roger.2

      I have found that under certain peculiar circumstances I cannot set a breakpoint in PSoC creator 4.1. I am using a PSoC 4200 - this may not be relevant. The IDE says ...

         

      Programming started for device: 'PSoC 4200 CY8C4245AX*-483'.
      Device ID Check
      Erasing...
      Programming of Flash Starting...
      Protecting...
      Verify Checksum...
      Finished Programming
      Device 'PSoC 4200 CY8C4245AX*-483' was successfully programmed at 07/05/2017 17:27:52.
      Warning: Cannot set breakpoint: 'C:\PSoC Projects\Workspace1\BreakpointTest.cydsn\File1.c:16'.  Encountered error (No line 16 in C:\PSoC Projects\Workspace1\BreakpointTest.cydsn\File1.c).
      Continuing target program
      The target program has stopped at: file: main.c line: 18 function: main address: 0x00000162
      Continuing target program
      The target program has stopped at: file: File1.c line: 15 function: tryToDebugFunction address: 0x0000016A
      Continuing target program
      The target program has stopped at: file: File1.c line: 16 function: tryToDebugFunction address: 0x0000016E
      Continuing target program
      The target program has stopped at: file: File1.c line: 17 function: tryToDebugFunction address: 0x00000174
      Continuing target program
      The target program has stopped at: file: File1.c line: 18 function: tryToDebugFunction address: 0x0000017A

         

      Warning: Cannot set breakpoint: 'C:\PSoC Projects\Workspace1\BreakpointTest.cydsn\File1.c:16'.  Encountered error (No line 16 in C:\PSoC Projects\Workspace1\BreakpointTest.cydsn\File1.c).
      Warning: Cannot set breakpoint: 'C:\PSoC Projects\Workspace1\BreakpointTest.cydsn\File1.c:16'.  Encountered error (No line 16 in C:\PSoC Projects\Workspace1\BreakpointTest.cydsn\File1.c).

         

      This shows that I can single step through line 16 of File1.c but it refuses to set a breakpoint for me. I can set a breakpoint in the disassembly window by address, rather than line number. I can also set normal breakpoints in main.c.

         

      After much head banging it appears that this peculiarity seems related to the inclusion of a file referencing C varargs functionality, as provided by stdarg.h even if this functionality is not called.

         

      I include an offending project, stripped down to its bare essentials.

         

      Can anybody help?

         

      Roger.

        1 2 Previous Next