lohastart.blogg.se

Segger embedded studio never hits breakpoint
Segger embedded studio never hits breakpoint












segger embedded studio never hits breakpoint
  1. #SEGGER EMBEDDED STUDIO NEVER HITS BREAKPOINT HOW TO#
  2. #SEGGER EMBEDDED STUDIO NEVER HITS BREAKPOINT MAC OS#
  3. #SEGGER EMBEDDED STUDIO NEVER HITS BREAKPOINT CODE#

#SEGGER EMBEDDED STUDIO NEVER HITS BREAKPOINT MAC OS#

Hm the way I see it, there is one for a MKR WAN 1300 at, so it should be available in the Arduino IDE on Mac OS too. Interestingly in the boot loader section of ArduinoCore-Samd, there isn’t one for mkrwan1310, there are others, but not this one. I would have expected it to progress into loop(), but it never does. Interestingly the debugger has gone into Setup and not StepOver as I clickedĪt this point, no amount of clicking progresses any further, regardless of the button pressed.

#SEGGER EMBEDDED STUDIO NEVER HITS BREAKPOINT CODE#

I can now StepOver and it appears to work as intended with the cursor incrementing through the core code and eventually after a few clicks I am presented with this screenshot. I agree, there should be no link and therefore was completely unnecessary, but I lost nothing by trying.Īfter clicking on the little green triangle in the top right next to PIO Debug, it compilers and I am presented with this screenshot Also, installing a GCC toolchain on the computer is also not used, as PlatformIO will always use its own compiler toolchains from its package repository, locally stored in /Users/matthew/.platformio/packages/ in your case. PlatformIO is completely separate from any Arduino IDE installation that may or may not be on the system. When the code stops in setup(), does pressing the “Step over” button advance execution by one line? The debugger will only break on further breakpoints you set (by clicking on the line number in the code panel which will place a red dot), or, if you are already at a breakpoint, if you use the “Step into” or “Step over” (line of code) buttons, or if you pause the processor manually by pressing the pause button. "internalConsoleOptions": "openOnSessionStart"Ĭan you show with screenshots exactly what you’re doing, step-by-step? If it reaches a breakpoint in setup() then that sounds perfectly fine. "toolchainBinDir": "/Users/matthew/.platformio/platforms/atmelsam/misc/svd/ATSAMD21G18A.svd", "executable": "/Users/matthew/Documents/PlatformIO/Projects/arduino_jlink/.pio/build/mkrwan1310/firmware.elf", "name": "!!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE ()"

#SEGGER EMBEDDED STUDIO NEVER HITS BREAKPOINT HOW TO#

This suggests the debugger is working and connected to the Segger, but as to how to progress, I have no idea. I click on the over to progress debugging and it moves forward and opens setup(), at which point it just stops.

segger embedded studio never hits breakpoint

I start debug, and after a short time of compiling, I get to a code showing the debug controls and sitting at the function init(). So far I have removed Arduino IDE completely, installed a fresh version of VSCode, PlatformIO, installed the GCC toolchain, tried various settings, different applications etc and I get to the same point every time. I say I can’t get it to work, that is not quite right, it gets so far and then just stops, no explanation, no error, just nothing. I have a Link EDU Mini connected to a MKRWAN 1310 via the pads on the bottom, both connected to my Mac via separate USB cables and I can’t get debug to work. I am at whits end trying to fix this and I am getting nowhere.














Segger embedded studio never hits breakpoint