This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cannot connect to STM32F103T4 using ulink2

Hello,

Someone please help,

I have not been able to program or debug the STM32F103T4. I can correctly detect the part with the "Cortex-M Target driver setup" but when I go to connect for programming, I get the following error : "Cannot Access Memory", but only the first time , every time after that, I get "Cannot enter debug mode". If I cycle the power on my board, the above error sequence repeats itself.

I have checked and rechecked the setting for flash and memory locations and they are correct per the data sheets.

My board has multiple of these chips, and they all do the same thing.
Also The debugger works fine with the development PCB.

Parents
  • @Robert Rostohar

    Yes you have right I was wrong because in my test I try to inject debug into running mcu.

    seems nTRST is need only in hot plug connection.

    CortexM3 TRM:

    DWJ-DP reset
    nTRST reset initializes the state of the SWJ-DP controller. nTRST reset is typically
    used by the RealView? ICE module for hot-plug connection of a debugger to a system.
    nTRST enables initialization of the SWJ-DP controller without affecting the normal
    operation of the processor.

Reply
  • @Robert Rostohar

    Yes you have right I was wrong because in my test I try to inject debug into running mcu.

    seems nTRST is need only in hot plug connection.

    CortexM3 TRM:

    DWJ-DP reset
    nTRST reset initializes the state of the SWJ-DP controller. nTRST reset is typically
    used by the RealView? ICE module for hot-plug connection of a debugger to a system.
    nTRST enables initialization of the SWJ-DP controller without affecting the normal
    operation of the processor.

Children
No data