Hello Jerome,
After erasing the chip (deleting the program built with Mbed OS 6.6.0) using the STM32CubeProgrammer and modifying the Mbed OS 6.6.0:
targets/TARGET_STM/mbed_overrides.c
and
targets/targets.json
according to your proposal the programming and debugging works OK.
Thank you, Zoltan