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

Keil ARM MDK 5 remote debugging with Proteus VSM

Description : I would like to program and debug STM32F103C8 using a simple schematic from Proteus and Keil ARM MDK 5.

Followed steps :

1. used vdmagdi.exe to make required changes in Tools.ini

2. Compiled and built a test software LED Blink in Keil ARM

3. Started Proteus with valid STM32F103C8 schematic

4. Enabled remote debugging

5. Started uVision and started debugging

After sometime the message pops up -->

1. VDMAPI dialogue box saying : "Connection lost with target".

2. VDMARM dialogue box: "Failed to start the Proteus VSM Simulation. Please ensure that you have loaded the correct design into ISIS"

I am attaching the Tools.ini and some screen shots..

3. uVision Dialogue box : " Error : Flash download failed - Target DLL has been cancelled"

I have tested the schematic separately with .hex file and it's working independently.

Am I missing something..? Kindly help..

[UV2]
ORGANIZATION="z"
NAME="y", "x"
EMAIL="abc"
ARMSEL=1
USERTE=1
TOOL_VARIANT=mdk_std
RTEPATH="C:\Users\ramuk\AppData\Local\Arm\Packs"
[ARM]
PATH="C:\Keil_v5\ARM\"
VERSION=5.30
PATH1="C:\Program Files (x86)\GNU Tools ARM Embedded\9 2019-q4-major\"
TOOLPREFIX=arm-none-eabi-
CPUDLL0=SARM.DLL(TDRV0,TDRV16,TDRV17,TDRV18)                                                                       # Drivers for ARM7/9 devices
CPUDLL1=SARMCM3.DLL(TDRV0,TDRV1,TDRV2,TDRV3,TDRV4,TDRV5,TDRV6,TDRV7,TDRV8,TDRV9,TDRV10,TDRV11)               # Drivers for Cortex-M devices
CPUDLL2=SARMCR4.DLL(TDRV0,TDRV4)                                                                                   # Drivers for Cortex-R4 devices
CPUDLL3=SARMV8M.DLL(TDRV0,TDRV2,TDRV4,TDRV6,TDRV7,TDRV8,TDRV12,TDRV13,TDRV14,TDRV15) 
# CPUDLL0=SARM.DLL(TDRV16,TDRV17,TDRV18)                                                                       # Drivers for ARM7/9 devices
# CPUDLL1=SARMCM3.DLL(TDRV0,TDRV1,TDRV2,TDRV3,TDRV4,TDRV5,TDRV6,TDRV7,TDRV8,TDRV9,TDRV10,TDRV11)               # Drivers for Cortex-M devices
# CPUDLL2=SARMCR4.DLL(TDRV4)                                                                                   # Drivers for Cortex-R4 devices
# CPUDLL3=SARMV8M.DLL(TDRV2,TDRV4,TDRV6,TDRV7,TDRV8,TDRV12,TDRV13,TDRV14,TDRV15)                               # Drivers for ARMv8-M devices
# BOOK0="HLP\RELEASE_NOTES.HTM" ("Release Notes for MDK 5.30",GEN)
# BOOK1="HLP\ARMTOOLS.chm" ("Complete User's Guide Selection",C)
# BOOK2="FVP\Hlp\fast_models_fvp_rg.pdf" ("Fixed Virtual Platforms Reference Guide Version 11.10 (PDF)",GEN)
# TDRV0=BIN\UL2CM3.DLL("ULINK2/ME Cortex Debugger")
# TDRV1=BIN\ULP2CM3.DLL("ULINK Pro Cortex Debugger")
# TDRV2=BIN\ULPL2CM3.dll("ULINKplus Debugger")
# TDRV3=BIN\CMSIS_AGDI.dll("CMSIS-DAP Debugger")
# TDRV4=Segger\JL2CM3.dll("J-LINK / J-TRACE Cortex")
# TDRV5=BIN\DbgFM.DLL("Models Cortex-M Debugger")
# TDRV6=STLink\ST-LINKIII-KEIL_SWO.dll ("ST-Link Debugger")
# TDRV7=NULink\Nu_Link.dll("NULink Debugger")
# TDRV8=PEMicro\Pemicro_ArmCortexInterface.dll("Pemicro Debugger")
# TDRV9=SiLabs\SLAB_CM_Keil.dll("SiLabs UDA Debugger")
# TDRV10=BIN\ABLSTCM.dll("Altera Blaster Cortex Debugger")
# TDRV11=TI_XDS\XDS2CM3.dll("TI XDS Debugger")
# TDRV12=BIN\ULP2V8M.DLL("ULINK Pro ARMv8-M Debugger")
# TDRV13=BIN\UL2V8M.DLL("ULINK2/ME ARMv8-M Debugger")
# TDRV14=BIN\CMSIS_AGDI_V8M.DLL("CMSIS-DAP ARMv8-M Debugger")
# TDRV15=BIN\DbgFMv8M.DLL("Models ARMv8-M Debugger")
# TDRV16=BIN\UL2ARM.DLL("ULINK2/ME ARM Debugger")
# TDRV17=BIN\ULP2ARM.DLL("ULINK Pro ARM Debugger")
# TDRV18=Segger\JLTAgdi.dll("J-LINK / J-TRACE ARM")
DELDRVPKG0=ULINK\UninstallULINK.exe("ULINK Pro Driver V1.0")
TDRV0=BIN\VDMARM.DLL ("Proteus VSM Simulator")
BOOK0=HLP\VDMAGDI.HLP ("Proteus VSM AGDI Driver")
[ARMADS]
PATH="C:\Keil_v5\ARM\"
PATH1=".\ARMCLANG\bin\"
CPUDLL0=SARM.DLL(TDRV0,TDRV16,TDRV17,TDRV18)                                                                       # Drivers for ARM7/9 devices
CPUDLL1=SARMCM3.DLL(TDRV0,TDRV1,TDRV2,TDRV3,TDRV4,TDRV5,TDRV6,TDRV7,TDRV8,TDRV9,TDRV10,TDRV11)               # Drivers for Cortex-M devices
CPUDLL2=SARMCR4.DLL(TDRV0,TDRV4)                                                                                   # Drivers for Cortex-R4 devices
CPUDLL3=SARMV8M.DLL(TDRV0,TDRV2,TDRV4,TDRV6,TDRV7,TDRV12,TDRV13,TDRV14,TDRV15)                                     # Drivers for ARMv8-M devices
# BOOK0="HLP\mdk5-getting-started.pdf" ("MDK-ARM Getting Started (PDF)",GEN)
# BOOK1="HLP\mdk5-getting-started_jp.pdf" ("MDK-ARM Getting Started (Japanese/PDF)",GEN)
# BOOK2="HLP\RELEASE_NOTES.HTM" ("Release Notes for MDK 5.30",GEN)
# BOOK3="HLP\ARMTOOLS.chm" ("Complete User's Guide Selection",C)
# BOOK4="ARMCC\sw\info\releasenotes.html" ("Release Notes for ARMCC 5.06u6",GEN)
# BOOK5="HLP\DUI0592E_02_mdk_getting_started_guide.pdf" ("ARM Compiler Getting Started Guide v5.06 for �Vision (PDF)",GEN)
# BOOK6="HLP\DUI0375G_02_mdk_armcc_user_guide.pdf" ("ARM Compiler v5.06 for �Vision (PDF)",GEN)
# BOOK7="HLP\DUI0377G_02_mdk_armlink_user_guide.pdf" ("ARM Linker v5.06 for �Vision (PDF)",GEN)
# BOOK8="HLP\DUI0378G_02_mdk_libraries_user_guide.pdf" ("ARM Libraries and Floating Point Support Guide v5.06 for �Vision (PDF)",GEN)
# BOOK9="HLP\DUI0379G_02_mdk_armasm_user_guide.pdf" ("ARM Assembler User Guide v5.06 for �Vision (PDF)",GEN)
# BOOK10="HLP\DUI0459F_02_mdk_fromelf_user_guide.pdf" ("Using the fromelf Image Converter v5.06 for �Vision (PDF)",GEN)
# BOOK11="HLP\DUI0590E_02_mdk_armar_user_guide.pdf" ("Creating Static Software Libraries with armar v5.06 for �Vision (PDF)",GEN)
# BOOK12="HLP\DUI0591E_02_mdk_errors_and_warnings_reference_guide.pdf" ("ARM Compiler Error and Warnings Reference Guide v5.06 for �Vision (PDF)",GEN)
# BOOK13="HLP\DUI0593E_02_mdk_migration_compatibility_guide.pdf" ("ARM Migration and Compatibility Guide v5.06 for �Vision (PDF)",GEN)
# BOOK14="ARMCLANG\sw\info\releasenotes.html" ("Release Notes for Arm Compiler 6.14.0",GEN)
# BOOK15="ARMCLANG\sw\hlp\compiler_user_guide.pdf" ("Arm Compiler User Guide Version 6.14 (PDF)",GEN)
# BOOK16="ARMCLANG\sw\hlp\compiler_reference_guide.pdf" ("Arm Compiler Reference Guide Version 6.14 (PDF)",GEN)
# BOOK17="ARMCLANG\sw\hlp\migration_and_compatibility_guide.pdf" ("Arm Compiler Migration and Compatibility Version 6.14 (PDF)",GEN)
# BOOK18="ARMCLANG\sw\hlp\errors_and_warnings_reference_guide.pdf" ("Arm Compiler Errors and Warnings Reference Guide Version 6.14 (PDF)",GEN)
# BOOK19="ARMCLANG\sw\hlp\libraries_user_guide.pdf" ("Arm Compiler Arm C and C++ Libraries and Floating-Point Support User Guide Version 6.14 (PDF)",GEN)
# BOOK20="ARMCLANG\sw\hlp\arm_instruction_set_reference_guide.pdf" ("Arm Instruction Set Reference Guide Version 1.0 (PDF)",GEN)
# BOOK21="ARMCLANG\sw\hlp\instruction_set_assembly_guide_for_armv7_and_earlier_arm_architectures.pdf" ("Instruction Set Assembly Guide Armv7 and earlier Version 2.0 (PDF)",GEN)
# BOOK22="FVP\Hlp\fast_models_fvp_rg.pdf" ("Fixed Virtual Platforms Reference Guide Version 11.10 (PDF)",GEN)
# TDRV0=BIN\UL2CM3.DLL("ULINK2/ME Cortex Debugger")
# TDRV1=BIN\ULP2CM3.DLL("ULINK Pro Cortex Debugger")
# TDRV2=BIN\ULPL2CM3.dll("ULINKplus Debugger")
# TDRV3=BIN\CMSIS_AGDI.dll("CMSIS-DAP Debugger")
# TDRV4=Segger\JL2CM3.dll("J-LINK / J-TRACE Cortex")
# TDRV5=BIN\DbgFM.DLL("Models Cortex-M Debugger")
# TDRV6=STLink\ST-LINKIII-KEIL_SWO.dll ("ST-Link Debugger")
# TDRV7=NULink\Nu_Link.dll("NULink Debugger")
# TDRV8=PEMicro\Pemicro_ArmCortexInterface.dll("Pemicro Debugger")
# TDRV9=SiLabs\SLAB_CM_Keil.dll("SiLabs UDA Debugger")
# TDRV10=BIN\ABLSTCM.dll("Altera Blaster Cortex Debugger")
# TDRV11=TI_XDS\XDS2CM3.dll("TI XDS Debugger")
# TDRV12=BIN\ULP2V8M.DLL("ULINK Pro ARMv8-M Debugger")
# TDRV13=BIN\UL2V8M.DLL("ULINK2/ME ARMv8-M Debugger")
# TDRV14=BIN\CMSIS_AGDI_V8M.DLL("CMSIS-DAP ARMv8-M Debugger")
# TDRV15=BIN\DbgFMv8M.DLL("Models ARMv8-M Debugger")
# TDRV16=BIN\UL2ARM.DLL("ULINK2/ME ARM Debugger")
# TDRV17=BIN\ULP2ARM.DLL("ULINK Pro ARM Debugger")
# TDRV18=Segger\JLTAgdi.dll("J-LINK / J-TRACE ARM")
TDRV0=BIN\VDMARM.DLL ("Proteus VSM Simulator")
BOOK0=HLP\VDMAGDI.HLP ("Proteus VSM AGDI Driver")
RTOS0=Dummy.DLL("Dummy")
RTOS1=VARTXARM.DLL ("RTX Kernel")
DELDRVPKG0=ULINK\UninstallULINK.exe("ULINK Pro Driver V1.0")
DEFAULT_ARMCC_VERSION_AC5="V5.06 update 6 (build 750)"
DEFAULT_ARMCC_VERSION_AC6="V6.14"
ARMCCPATH0="ARMCLANG"  ("V6.14")
ARMCCPATH1=".\ARMCC"  ("V5.06 update 6 (build 750)")
[KARM]
TDRV0=BIN\VDMARM.DLL ("Proteus VSM Simulator")
BOOK0=HLP\VDMAGDI.HLP ("Proteus VSM AGDI Driver")