[SOLVED]JLink connection with Freescale Kinetis K70

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

  • [SOLVED]JLink connection with Freescale Kinetis K70

    Hi

    I am trying to load bare metal C Program [calculating factorial of a number] on K70F120M using JLINK [JLinkARM V442b] and CodeBench. When I try to load in RAM [internal], it is loaded and executed successfully.

    But when I try to load on ROM [program flash], it is not connected. Following error message is displayed.

    Failed to execute MI Command.
    -target -download
    Error Message from debugger back end
    Error finishing flash operation

    Is JLink Support Programming Flash on K70F120M board? If yes, Am I missing some configurations?

    Regards
  • Hi,

    In general, your device is supported by the JLink.

    We need some information to help you:
    - Which version of CodeBench are you using?
    - Could you provide your (or a sample) project for the K70?
    So we can find out why programming flash does not work.

    Best regards
    Johannes
    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.
  • Hi

    Sorry for late reply.

    CodeBench Version: Sourcery CodeBench Version: 2012.03-69
    JLINK Version: JLinkARM_V442b
    Sample Project:

    #include <stdio.h>

    int factorial(int n) {
    if (n == 0)
    return 1;
    return n * factorial (n - 1);
    }

    int main () {
    int i;
    int n;
    for (i = 0; i < 10; ++i) {
    n = factorial (i);
    }
    return 0;
    }
  • Hi,

    Thanks for the information.

    I'm sorry but I cannot find your CodeBench Version. All I know, CodeBench for Kinetis EABI is version 2012.03-36 and for ARM EABI it is version 2012.03.28.
    But which one are you using?

    Is it possible to send me a complete project for CodeBench with your configurations, so I can reproduce your error.

    Best regards
    Johannes
    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.
  • You may use version 2012.03.28.

    Currently, I am trying a simple bare metal project having only one file say first.c with code

    #include <stdio.h>



    int factorial(int n) {

    if (n == 0)

    return 1;

    return n * factorial (n - 1);

    }



    int main () {

    int i;

    int n;

    for (i = 0; i < 10; ++i) {

    n = factorial (i);

    }

    return 0;

    }


    There is no special project setting/configurations
  • Hi,

    Thanks for the info.
    We will try to reproduce with 2012.03.28


    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.
  • Hi,

    We also created a small sample project for the K70 series and so far it works fine.

    Testing Environment:
    - J-Link DLL V4.54a
    - CodeBench 2012.03.28
    - K70FN1M0xxx12

    What needs to be done to test the project on your side:
    - Download the attachment
    - Extract it and import the project into your environment
    - Select the J-Link settings file (see screenshot below)
    - Build project and start debug session

    Short feedback would be appreciated.




    Best regards
    Johannes
    Files
    • TWR-K70.zip

      (25.85 kB, downloaded 651 times, last: )
    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.
  • Hi,

    I'm sorry. I thought it was in the zip.
    Now find it attached to this post.

    Best regards
    Johannes
    Files
    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.
  • Hi,

    Good to hear that everything is working also on your side.


    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.