Debug freedom board FRDM-KL25Z in CodeWarrior with J-Link

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Debug freedom board FRDM-KL25Z in CodeWarrior with J-Link

    Hi,

    It's successful for me to use CodeWarrior to debug program with using Segger OpenSDA firmware. However, if I use J-Link debugger instead of Segger OpenSDA, "Debugger can not write memory" error is occured. Please kindly advise.

    Jackie
  • Hi,

    The KL25 is a Cortex-M0+ with 2 hardware breakpoints.
    So, usually when debugging in flash you will only be able to set 2 breakpoints.
    J-Link offers a unique feature called unlimited flash breakpoints which allows to set an unlimited number of breakpoints in flash memory.
    segger.com/jlink-unlimited-flash-breakpoints.html

    Unfortunately, CodeWarrior does not support this feature: segger.com/jlink-ide-integration.html
    We were already in contact with Freescale regarding this but it has not been changed so far...
    We will check with them again.

    In the meantime:
    Maybe you want to try another free IDE (GCC based, Visual Studio style)?
    emide.org
    It supports the unlimited flash breakpoints feature.

    Note: The unlimited flash breakpoints feature is free for evaluation only.

    Not sure if emIDE already comes with a sample project for the board you are using. If not, you may quickly check with the guy who is maintaining it?


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.