Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
search inside all forums
Error 34 during Programming with Keil
Abhijeet G. Oct 15, 2019 at 02:42 PM (14:42 hours)
Staff: Zahar R.

  • Hello there,

    I am working on my project involving KL25z FRDM Board (recently purchased), openSDA and Keil uVision5 on a windows 10 PC.

    Previously, I have flashed and debugged many programs on the same board with all same configurations.

    Now, after subsequent runs, the debugging process gets aborted saying "Error 34 during Programming!" but the program gets dumped onto the board (waiting for reset).

    Error Description:
    Notice -USB drive did not initialize (1234BEEF)
    Could not contact P&E Hardware Interface. Check Power and Connections.
    Initializing. -Could not contact P&E Hardware Interface. Check Power and Connections.
    Cannot enter background mode. Check connections.
    ERROR 34 during script!

    Debugging steps taken till now:
    1) Reinstalled the pemicro drivers on the same PC.
    2) Tried to flash with different projects (including basic programs like Blinky).
    3) Changed the board.
    4) Changed the Debug shift speed.
    5) Configured the option for "Delay after Reset and before communicating to target for xx milliseconds (decimal)."
    6) Reloaded the BOOTLOADER with the .SDA file.

    Inference till now:
    1) Hardware doesn't seems to be an issue.
    2) Reset script waits for a while.

    Any help on this is appreciated!


  • Hi Abhijeet, 

    What version of Keil are you currently using?

    What version of PEmicro run control dlls do you have installed? You can find it out by going to C:\Keil\ARM\PEMicro\build_version.txt

    Is there any chance you can download the latest version of Keil v528a from Keil website and install it into c:\Keil_v528a folder and see if the problem persists.

    Is there any chance we can get remote access to your PC via TeamViewer to do additional investigation? We are located in US Eastern time zone.

    You can send me an email to zahar "at" pemicro "dot" com to arrange remote session time.

    Best Regards,

  • Hi Zahar,

    1) The current keil version installed on my PC is
    -> Updating to 5.28a
    -> After update the version still shows as and the problem is still

    2) Contents of C:\Keil\ARM\PEMicro\build_version.txt,
    P&E DLL Version: v752
    P&E Build Date: 190807

    3) I downloaded the latest version and kept the installation folder as C:\Keil_v528a.

    After doing step 3, I am able to rectify the issue faced.

    Thanks for your suggestion.

    I'll update again if this issue gets repeated in the near future.

    Thanks and Regards,

  • Hi Abhijeet, 

    Thank you for following up. I am glad that you currently have a work around. This gives us a good data point to continue working on fully resolving the issue in future.

    Best Regards,

  • Hi Abhijeet, 

    In addition to just re-installing the whole IDE to a different directory, there is another workaround by making a change to the registry, described in the following FAQ:

    Best Regards,

    • Hi Zahar,

      Thank you for the information. Till now I haven't encountered the same problem again. But it happens, I will surely try this out and provide an update for the same.

      Really appreciate of adding this problem to the FAQ section.

      Thanks and Regards,
      Abhijeet Gupta

Add comment

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

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