Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

Please accept the use of cookies on our site

At PEmicro we use web browser cookies in order to provide you with an enhanced experience and in order to be able to do things like shopping cart processing and identify you when you login to our website.

Click here to accept

search inside this forum
search inside all forums
Multilink Universal & Keil for STM32
Salvatore D. Oct 13, 2016 at 09:39 AM (09:39 hours)
Staff: Zahar R.

  • I've a 'little' problem.
    I'm using Keil environment and ST32

    The 'script' (erase/program) runs twice in the same way.
    Here what happens (unfortunately ther isn't possibility to add a screen shot image...):

    CPROGACMP Programmer for Freescale - Version - [Status Window]

    Copyright 2012 P&E....
    Command Line :"C:\Keil_v5\\UV4\UV4.exe"
    CMD>CM C:\Keil_v5\ARM\PEMicro\P&E\supportFiles_ARM\ST\STM32L0\ST_STM32L073VZ_1x32x48k.arp
    Initializing. Initialized.
    ;version 1.00, 03/31/2016, Copiright 2016 P&E....
    ;device ST, STM32L073VZ, 1x32x48k
    ;begin_cs device=$08000000, length=$00030000, ram=$20000000
    Loading programming algoritm ... Done
    Erasing. Module has been erased.
    Programming Address $08xxxx (repeating up to programmed all code)

    Then there is some other message (too fast to be read...), but something like "everything ok"

    After that the SAME is repeated again and at the end I can debug my application.

    Can you help me, please ?
    Thanks in advance


  • Hi Salvator, 

    What version of Keil IDE are you using exactly? Can you please describe the exact step of software setup steps that you are using?

    While we provide Keil with the backend run control and FLASH programming support, it is up to Keil IDE to properly integrate P&E support. To the best of my knowledge, there are two ways that the user can choose to download code into their device:

    1. By clicking on Load code and selecting the corresponding device name. This option will FLASH your firmware into target device without actually running a debug session.

    2. At the same time Starting a debug session should do a FLASH load and then allow you to proceed with stepping through code.

    Can you please clarify which option you are using? I was not able to replicate a double FLASH programming session taking place under Keil IDE on my side.

    Best Regards,

    • Hello Zahar,

      I'm using Keil MDK latest version:

      IDE-Version: ┬ÁVision V5.21.1.0

      Tool Version Numbers:
      Toolchain: MDK-ARM Cortex-M0/M0+ 256K for ST Version: 5.21a
      Toolchain Path: C:\Keil_v5\ARM\ARMCC\Bin
      C Compiler: Armcc.exe V5.06 update 3 (build 300)
      Assembler: Armasm.exe V5.06 update 3 (build 300)
      Linker/Locator: ArmLink.exe V5.06 update 3 (build 300)
      Library Manager: ArmAr.exe V5.06 update 3 (build 300)
      Hex Converter: FromElf.exe V5.06 update 3 (build 300)
      CPU DLL: SARMCM3.DLL V5.21a
      Dialog DLL: DARMCM1.DLL V1.14.0.0
      Target DLL: PEMicro\Pemicro_ArmCortexInterface.dll V1.11
      Dialog DLL: TARMCM1.DLL V1.10.0.0

      The double erase/programming happens when I'm using your 2nd option: flash + debug session.
      If I click on load code, the programming script is executed only once.
      The STM32L073VZ micro is connected with SWD.

      Let me know.


  • Hi Salvatore, 

    If you send me an email to zahar dot raskin at pemicro dot com, I will be happy to provide you the latest PEmicro run control plugin for Keil IDE, which will most likely resolve this issue.

    Best Regards,

Add comment

   Want to comment? Please login or create a new PEMicro account.

© 2018 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement