Microchip Studio

From SEGGER Knowledge Base
Jump to navigation Jump to search

In order to use J-Link with Microchip Studio, usually it is not necessary to separately install the J-Link software and documentation package. Anyhow, we recommend to make sure that the latest version of the J-Link software is installed and the DLL in Microchip Studio is updated to the latest version. Microchip Studio comes with a lot sample projects for various eval boards.

Using an Microchip Studio project with J-Link

The following steps explain how to configure a project to be used with J-Link.

  • Open the project to configure
  • Click Project | Properties from the main menu
  • Click the Tool tab and select J-Link
  • Make sure that the appropriate target interface (JTAG / SWD / ...) is selected
  • Make sure that a proper target interface speed is selected (4 MHz works for almost all Cortex-M based targets and leads to good performance)

Microchip Studio Setup-J-Link-as-debugger.png

  • Click Build | Build Solution from the main menu
  • In order to start a debug session, click Start Debugging and Break.

Microchip Studio Start-debugging.png

  • Now the project is ready to be debugged with J-Link / J-Trace.

Microchip Studio FullScreenshot.png


Deactivating Compiler optimization

Microchip studio contains a compiler optimization for an optimized debugging experience.

You might need to deactivate that when debugging with J-Link / J-Trace.

  • Click Project | Properties from the main menu
  • Click the Toolchain tab and select <...> Compiler | Optimization
  • Set Optimization Level to None (-O0)

Microchip Studio DeactivateCompilerOptimization.png