MDK-Packs / CB_Lab4Layer

CMSIS-Build Lab with Layers
4 stars 9 forks source link

cprj project with Keil uvision: how to select correct debug probe #12

Open jeromecoutant opened 3 years ago

jeromecoutant commented 3 years ago

Hi

I have several ST internal packs describing the boards.

When we open cprj file with Uvision tool,

Maybe you could help to get the difference ?

Thx

@fred-r

jkrech commented 3 years ago

Hi Fred,

the flow of information about the default debug adapter for boards with on-board debug units is the following:

In the cprj the target is linked to a board: <target Bname="STM32L562E-DK" Bvendor="STMicroelectronics" ...

uVision is searching for the board description -> finding it in: Keil.STM32L562E-DK_BSP.pdsc the entry: <debugProbe connector="Micro-USB" debugClock="10000000" debugLink="swd" name="ST-Link"/>

will override the default "ULink2" with "ST-Link".