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
Multilinnk Universal Debugger connection closed when program flash size exceeds its 50%
Muhammad S. Nov 27, 2017 at 03:59 AM (03:59 hours)
Staff: Takao Y.

  • Hi,

    I am using MCUxpresso-IDE and PE Micro multilink universal debugger, I cannot program the microcontroller(KL43Z256VLH4) if program flash memory exceeds 50% of its size.
    The debugging / programming session closed after 2-3 seconds with error "Connection closed by the GDB server." and connection breaks. On microcontroller reset, either program not execute or hangs after start.

    I can program/debug the same program(with flash size > 50%) on FRDM-KL43Z board without any problem.

    Below it the debugger console output

    Connection from "" via
    Connection from "" via
    Telnet server running on
    Copyright 2012 P&E Microcomputer Systems,Inc.
    Command Line :/usr/local/mcuxpressoide-10.0.0_344/ide/plugins/com.pemicro.debug.gdbjtag.pne_2.9.0.201703061630/lin/pegdbserver_console -device=NXP_KL4x_KL43Z256M4 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -spee#


    Target has been RESET and is active.
    CMD>CM /usr/local/mcuxpressoide-10.0.0_344/ide/plugins/com.pemicro.debug.gdbjtag.pne_2.9.0.201703061630/lin/gdi/P&E/supportFiles_ARM/NXP/KL4x/freescale_kl43z256m4_1x32x64k_pflash.arp


    ;version 1.01, 07/31/2014, Copyright 2014 P&E Microcomputer Systems, Inc. All rights reserved. [kl17z_256k_n_pflash_m0]

    ;device freescale, kl43z256m4, 1x32x64k, desc=pflash

    ;begin_cs device=$00000000, length=$00040000, ram=$20000000

    Loading programming algorithm ...

    WARNING - Selected .ARP file has been modified. CRC16 = $5564
    Verifying object file CRC-16 to device ranges ...
    block 00000000-00020053 ...
    Calculated CRC-16 does not match block. (File = $14D1, Device = $42C8)


    Module has been erased.
    Reloading programming algorithm ...

    Processing Object File Data ...

    Error during programming.
    Error Programming flash of device

    Error occured during Flash programming.

    PE-ERROR: Error downloading to the device.
    Preset breakpoint encountered.

    Disconnected from "" via
    Disconnected from "" via
    Target Disconnected.
    Target Disconnected.


    Best Regards,


  • Greetings,

    Could you tell me which memory addresses you are trying to program? I want to compare this with the kl43z256m4 pflash algorithm and see if you are programming outside any of the valid regions.

    Takao Yamada

    • Hi Yamada,

      Thanks for your reply,
      I have been going through the different memory regions of KL43Z256VLH4. Reference manual page 57 says it all, it has a flash size of 256KB with two program flash blocks, block 0 and block 1.

      Both the blocks are of equal size with different address ranges. I think as my program size exceeds to 50%, block 1 address range starts that gets failed to program/debug.

      You can find more information on reference manual below:

      As said FRDM-KL43Z flashes the same program without any error. I do not change anything in debugger setting or elsewhere except debugger(of course) while using FRDM-KL43Z.



  • Greetings,

    Are you sure you are programming a KL43Z256, and not a smaller subset device like the KL43Z128?

    Grab the mask off the silicon and confirm with NXP that this is a device with 256KB of flash. There should be no difference between programming your FRDM board compared to a custom or socketed board.

    Takao Yamada

  • Greetings,

    Any update on this?

    Takao Yamada

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