debug external prodebug external processors with usbdm and freedom board _ mcu on eclipsecessors...

Upload: alguien1972

Post on 01-Jun-2018

235 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    1/22

    6 Votes

    Debug External Processors with USBDM

    and Freedom BoardPosted on April 27, 2013

    Teaching at a university means to work in a very special environment. What students love is

    Open Source: because it allows them to see things and learn from the technology. The

    other thing is: students have a low budgets, so they appreciate if they can use inexpensive or

    low-cost hardware and software. The FRDM-KL25ZFreedom board for sure meets that low

    price, and no extra programming device needed.

    Now they are building their own boards, and they wish to program and debug it. They can

    borrow the Segger J-Linksand P&E Multilinkswe have available at the university. But why not

    use the Freedom board as hobby debug and programming solution? As explored in Using

    the Freedom Board as SWD Programmer, they can use the default factory installed

    OpenSDA to program another microcontroller of same type. But not to debug it.

    While writing the Using the Freedom Board as SWD Programmer article, I was looking into

    USBDM. USBDM has added in January 2013 support for OpenSDA. But at that time, it wassomehow not working for me, and I had not enough time to find out what the problem was.

    Time to get that fixed. Good news: With help and tips from the USBDM community, I have it

    finally working

    USBDM Debugging another FRDM-KL25Z

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    2/22

    USBDMis a free open source (GPLv2) debugging/programming interface for a range of

    Freescale microntrollers.

    Note: USBDM is *not* OSBDM. OSBDM (or OSJTAG) is an older free

    deb!!in! interfa"e #resent on $an% of t&e'rees"ale Toer Boards.

    It currently supports CodeWarrior and CodeSourcery Eclipse. With it, I wanted to overcome

    the OpenSDA limitation and using it as general purpose debug/programming device with

    CodeWarrior for MCU10.3.

    USBDM "o$es it& a standalone flas& #ro!ra$$er and s"ri#tin! en!ine.

    Bt &ad not &ad t&e ti$e to loo into t&at (%et).

    Installation

    The installer is available for download from http://sourceforge.net/projects/usbdm/files/Version%204.10.4/Installation/(USBDM_4_10_4a_Win.msi).

    nitiall% &ad sed t&e USBDM+,+-+-+/in.$si (t&e one it&ot t&e

    a. t ored at t&e be!innin!0 so$e&o ran into "onne"tion #roble$s later

    on. Note sre &at &as "ased t&is0 $a%be t&e #roble$ des"ribe at t&e end

    of t&is #ost. So de"ided to !o it& a fres& M1U-.2 (b-3-3--)0 installed t&e

    USBDM+,+-+,a+/in.$si0 and sin"e t&en t&in!s are orin! o.

    The setup provides the flexibility only to install what is needed:

    USBDM_4_10_4a_Win.!i

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    3/22

    n abo4e dialo!0 need to 4erif%5s#e"if% t&e #at& to $% 1ode/arrior

    installation.

    I would have expected that this would install the drivers for me too. Maybe it does, but it did

    not work for me. What I had to do is download the USBDM_Drivers file

    (USBDM_Drivers_1_0_1_Win_x64.msifor my Windows7 64bit machine) from

    http://sourceforge.net/projects/usbdm/files/Version%204.10.4/Installation/and to install it.

    USBDM Setu"

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    4/22

    Not sre if t&is as 6st a #roble$ it& $% $a"&ine0 bt: afterards $%

    O#enSDA5OSBDM5OSJTAG de4i"e dri4ers did not en$erate #ro#erl%. &ad

    to brose to t&e dri4er files e.!. in 1:7'rees"ale71/ M1U 4-.27Dri4ers

    7897Dri4ers7osbd$ to &a4e t&e$ installed a!ain.

    OpenSDA USBDM Firmware Installation

    For OpenSDA, I need a special firmware. I did download the USBDM_OpenSDA firmware zip

    file:

    Then updated the firmware on the Freedom board, following the instructions in the

    OpenSDA.txt in the archive. After that, the device should enumerate properly as USBDM

    BDM Interface:

    CodeWarrior for MCU10.3

    USBDM_Dri#er! $or Win%o&!

    USBDM_'"enSD( Fir&are

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    5/22

    If everything is working out, you should have now an extra connection setting in the new

    bareboard project wizard:

    dont no &%0 bt for &ate4er reason t&is o#tion and t&e

    "orres#ondin! fn"tions (deb! "onne"tions) ere not s&oin! # in

    1ode/arrior first. Sin"e tried it t&e first ti$e (and it did not or)0 &a4e

    for sre rebooted $% $a"&ine. 'a"t is: it is orin! no . So if %o see t&esa$e isse0 $a%be a reboot or re;rnnin! t&e set# ill &el#.

    To verify that things are properly installed, I can check the plugin using the Help > About

    dialog, then press Installation Details button:

    USBDM in the ne& "ro)e*t &i+ar% o$ ,o%eWarrior

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    6/22

    It adds a new Connection Type to the CodeWarrior debugger: USBDM ARM Interface

    t is 4er% eas% to sit"& beteen t&e ori!inal O#enSDA and USBDM:

    si$#l% USBDM A

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    7/22

    Using USBDM as SWD Debugging Probe (FRDM-KL25Z to FRDM-KL25Z)

    To use USBDM on FRDM-KL25Z to debug another external processor, following is needed

    Having a 10pin ARM Cortex Debug (SWD) header populated on two boards1.

    Connecting the two boards with a 10pin flat cable2.

    Having J11 cut on the master board to disconnect the SWD clock from the resident

    processor

    3.

    No change needed on the slave board to be debugged.4.

    And indeed: this worked :-): Im able to use my USBDM to debug the other KL25Z Freedomboard:

    FRDM-KL25Z debugging FRDM-K20D50M

    USBDM ,onne*tion S"ee%

    &o boar%! hooe% u" $or %ebugging

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    8/22

    Debugging the FRDM-K20D50Mwith the FRDM-KL25Z the same way as debugging the the

    FRDM-KL25Z above:

    As above, the master boards needs to have the J11 trace disconnected.

    Using FRDM-KL05Z to Debug an External Board

    Next one is the FRDM-KL05Z. However, this did not work out of the box. Until I have found

    this post in the Freescale Forum: The problem is a wrong wiring to the J6 header: the

    OpenSDA signal from U4 goes to pin1 of J6, and this pin1 goes as well to the KL05Z. This

    means that it is not possible to disconnect the OpenSDA from the KL05Z . The solution is

    to cut a trace and connect it to either pin 4 of J1 (SWD header) or to pin2 of J1. I did the

    second solution.

    First, I need to cut the J6 trace:

    FRDM-KL25Z %ebugging FRDM-K20D50M

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    9/22

    ala%s install a 6$#er afterards so "an ndo t&e "t.

    For the next step, a magnifying glass or a microscope is a good thing, plus some good

    soldering skills :-): I need to re-route the Pin11 from U4 to Pin2 of J6. For this I need to cut

    the trace just before the via hole to the KL05Z:

    After that, install a wire to route the Pin11 of U4 to Pin2 of J6:

    ,utting 3 ,onne*tion on FRDM-KL05Z

    ,utting ra*e on FRDM-K05Z

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    10/22

    nstead to 8in3 of J>0 t&e si!nal "an be roted to 8in, of J- instead. Bt J>

    as $"& easier to do for $e.

    With this, the FRDM-KL05Z is prepared to debug an external processor:

    With J6 removed, I can debug an external processor

    With J6 installed, I debug the KL05Z processor on the FRDM-KL05Z board

    Same way it works to debug the FRDM-K20D50M:

    Wire to re-route Signa

    FRDM-KL05Z %ebugging FRDM-KL25Z

    FRDM-KL05Z %ebug! FRDM-

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    11/22

    Note: &a4e not $ana!ed to deb! t&e "&an!ed '

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    12/22

    OpenSDA power and SWD clock:

    But this did not help .

    However, with the P&E Multilink Im still able to debug that board with the SWD debug header

    . So there are definitely good reasons to use a probe like this: to recover from cases

    where USBDM cannot help. As always: as second source and backup is what an engineer

    always needs.

    The other problem I was running into was this one with a 60 KByte application:

    Not sre if &a4e &it a li$it0 bt after t&at &ad to restart "li#se to

    re"o4er fro$ t&is isse0 as an% ot&er USBDM deb! session failed. Ma%be it

    &as "orr#ted t&e D@@ n an% "ase0 need to follo # on t&is.

    Summary

    With USBDM, I have an Open Source run control solution with CodeWarrior and the Freedom

    ,ut an% 11 ,onne*tion

    Faie% to re!ue target "ro*e!!

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    13/22

    boards. So far I just have explored OpenSDA Freedom boards, but it should support boards

    and microcontroller beyond that: I can now download *and* debug other microcontroller with

    the Freedom board . What Im missing with USBDM is the USB CDC support which the

    original OpenSDA provides(or I have not seen how to enable that).

    While professional solutions like P&E and Segger worked for me out of the box, I had to

    invest time to get USBDM up and running. After that, it was working nicely. Spending that

    extra time is like with any other Open Source projects I did or used: I trade in time for less

    costs, or to learn new things on return. I hope that this article saves you some time and is

    useful for you.

    Many thanks and kudos to pgo, dieterand Brionfor their help and posts, and all the ones

    who developed USBDM!

    Happy USBDMing

    Links

    USBDM Version 4.10.4 announcement: https://community.freescale.com/thread/303257

    USBDM Documentation on SourceForge: http://usbdm.sourceforge.net/

    USBDM Project on SourceForge: http://sourceforge.net/projects/usbdm/

    USBDM Sources on GitHub: https://github.com/podonoghue

    USBDM/OSBDM discussion forum: https://community.freescale.com/community/bdm

    SHARE THIS:

    GOOGLE+

    Erich Styger

    This entry was posted in Boards, CodeWarrior, Debugging, Eclipse, Embedded,

    K20D50M Freedom Board, Kinetis, KL05Z Freedom Board, KL25Z Freedom Board, Tips

    & Tricksand tagged CodeWarrior, Debugging, Flashing, freedom board, K20D50M

    44

    Be the first to like this.

    Using the Freedom Board

    as SWD Programmer

    USBDM 4.10.5 supports

    now MCU10.4

    Using the FRDM-KL25Z

    with CMSIS-DAP to

    program non-Freescale

    ARM Microcontrollers

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    14/22

    33 THOUGHTS ON DEBUG EXTERNAL PROCESSORS WITH USBDM AND FREEDOM BOARD

    Pingback: Debugging FRDM-KL05Z with USBDM | MCU on Eclipse

    Pingback: Serial Bootloader for the Freedom Board with Processor

    Expert | MCU on Eclipse

    Pingback: Can MCU10.4 recover a bricked OpenSDA Freedom

    Board? | MCU on Eclipse

    Pingback: Adding USBDM to CodeWarrior for MCU10.4 | MCU on

    Eclipse

    Pingback: Freedom Board with Segger OpenSDA Debug Firmware |

    MCU on Eclipse

    Freedom Board, KL05Z Freedom Board, KL25Z Freedom Board, open source projects,

    OSBDM/OSJTAG, P&E, technology, Tips&Tricks, USBDMby Erich Styger. Bookmark

    the permalink [http://mcuoneclipse.com/2013/04/27/debug-external-processors-

    with-usbdm-and-freedom-board/] .

    Allan K Liu

    on May 14, 2013 at 03:47said:

    Does it work for Iar ewarm? I am designing a general purpose USB

    OTG board based upon KL25Z.

    Erich Styger

    on May 14, 2013 at 07:41said:

    Hi Allan,

    USBDM does not support IAR (to my knowledge). But I just

    saw this: http://www.segger.com/opensda.html

    I need to try this out shortly, and if I do this, Ill write a post in

    my blog.

    I hope this helps.

    Bill Lewis

    on July 8, 2013 at 17:05said:

    I am considering trying a MK20DN512VLK10 on a by-hand wired

    prototype. Do you suspect USBDM would be able to program and

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    15/22

    debug one of those chips?

    Erich Styger

    on July 8, 2013 at 17:11said:

    Hi Bill,

    I did it with the K20D50M on the FRDM-K20D50M board, so

    this should work.

    warcomeb

    on July 16, 2013 at 11:05said:

    Hi Erich,

    I using Universal Multilink rev.A with MKL15128VLH4. I have

    connected in a dummy board SWD_DIO, SWD_CLK, TVCC, RESET

    and GND on PORT G. I try to program microcontroller by CW 10.3

    or CW 10.4 but I fail and the software tell me that this isnt possible

    to connect to the programmer do you know any issue on this

    microcontroller with U-Multilink? Can you help me? I choose this

    microcontroller for two project and now Im desperate!

    Thanks

    Marco

    Erich Styger

    on July 16, 2013 at 11:15said:

    Hi Marco,

    no I have not seen any issues on my side with using the P&E

    Multilink to program Kinetis devices, at least not such kind of

    issues. Does it work with a non-custom board? Like the

    FRDM board (solder the SWD header on it). That way you

    know your setup is working. Then check your wiring to the

    KL15. Best if you do it like e.g. on the FRDM board to make

    sure you have the traces right, with the proper resistors/etc.

    For our boards we replicated 11 the schematics as on the

    FRDM boards, and this worked very well.

    I hope this helps.

    warcomeb

    on July 16, 2013 at 11:33said:

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    16/22

    Thanks for the replay!

    I have the same issue with FRDM-KL25 at this

    point I think that U-Multilink is broken! what do you

    think?

    Thanks

    Marco

    Erich Styger

    on July 16, 2013 at 12:15said:

    Have you configured it to use SWD (use SWD re-

    duced pin protocol for communication)? Note that if

    you use the JTAG protocol, this will not work, you

    need SWD enabled. See bitmap USB Multilinke in-

    stead of OpenSDA in CodeWarrior

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    17/22

    warcomeb

    on July 16, 2013 at 12:45said:

    Yes I have setted this check in the configuration box!

    Erich Styger

    on July 16, 2013 at 12:58said:

    Maybe check the SWD cable (orientation, broken wires). It

    happend to me that I had a bad cable. Otherwise: get in

    touch with P&E support?

    warcomeb

    on July 16, 2013 at 14:25said:

    Yes, I tested this solutions I contacted the technical

    support of P&E, without results, their solutions have

    not worked.

    Marko

    on September 2, 2013 at 11:01said:

    Im going to use a Kinetis KL15 for my project but I have a FRDM

    KL25Z board where I have tested some code. Am I able to program

    my KL15 with the FRDM KL25Z board?

    Erich Styger

    on September 2, 2013 at 18:10said:

    Hi Marko,

    In general, the answer is no. But it all depends on what you

    are using: the instruction set and the main core is the same.

    But the peripherals and memory map very likely is different.

    Then it will not work. But I think for very simply things you

    could do this. But no guarantee.

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    18/22

    Pingback: Getting Started with ARM Microcontrollers | Mobile

    Communication & Coding Laboratory

    Jems

    on December 17, 2013 at 17:36said:

    Hi Erich !

    I read many article that you post ! I can not thank you enough for all

    this share !

    I did the DIY about the toolchain and also the Debug External

    Processors with USBDM and Freedom Board but there is little

    things knotted on my mind !

    I would like to program now a TWRK70 with the freedomboard

    KL25! But i was asking me if a software existing to use USBDM

    without using CW. I mean is there something that could be running

    on KEPLER ?

    Thanks again !

    Erich Styger

    on December 17, 2013 at 19:56said:

    Hi Jems,

    the KL25Z has a SWD debug interface, while the K70 has

    JTAG. So you cannot use the KL25Z (OpenSDA SWD) for

    this. And to my knowledge USBDM is only supported by

    CodeWarrior.

    Karibe

    on February 14, 2014 at 17:14said:

    Yeah, this is the problem i had with the boards today as i told you,

    So it doesnt work yet, even after I cut J6, I was still debugging the

    onboard controller . Until I cut and jump that trace

    Karibe

    on February 15, 2014 at 09:20said:

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    19/22

    I have no idea why my custom kl05z board will not work, I checked

    the pinout over and over agani, nothing wrong. Both freedom boards

    FRDM-KL25Z and FRDM-KL05Z are able to debug my kl24z custom

    board, but openocd just gets an error on the kl05z board at the end

    of initialization:

    Info : only one transport option; autoselect cmsis-dap

    Info : CMSIS-DAP: SWD Supported

    Info : CMSIS-DAP: Interface Initialised (SWD)

    Info : add flash_bank kinetis kl05.flash

    cortex_m reset_config sysresetreq

    adapter speed: 50 kHz

    Info : CMSIS-DAP: FW Version = 1.0

    Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST =

    0 nRESET = 0

    Info : DAP_SWJ Sequence (reset: 50+ 1followed by 0)

    Info : CMSIS-DAP: Interface ready

    Info : clock speed 50 kHz

    Info : IDCODE 0x0bc11477

    Error: CMSIS-DAP: Write Error (004)

    Info : kl05.cpu: hardware has 0 breakpoints, 0 watchpoints

    Error: CMSIS-DAP: Write Error (004)

    Polling target kl05.cpu failed, GDB will be halted. Polling again in

    100ms

    Error: CMSIS-DAP: Read Error (004)

    Polling target kl05.cpu failed, GDB will be halted. Polling again in

    300ms

    Error: CMSIS-DAP: Read Error (004)

    Polling target kl05.cpu failed, GDB will be halted. Polling again in

    700ms

    Error: CMSIS-DAP: Read Error (004)

    Polling target kl05.cpu failed, GDB will be halted. Polling again in

    1500ms

    Error: CMSIS-DAP: Read Error (004)

    Polling target kl05.cpu failed, GDB will be halted. Polling again in

    3100ms

    I think i will stick with the kl24z for now and redo my boards.

    Karibe

    on February 15, 2014 at 13:04said:

    At least I can report that I am able to debug either of the two

    freedom boards using the other, and the kl24z custom boardfrom either as well.

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    20/22

    Amreen

    on May 27, 2014 at 13:03said:

    Hello Erich,

    I want use this USBDM with Freedom Board to debug another

    board.

    I am using KL25Z128 controller.

    I have my old code without USBDM in it.

    So in debug configuration setting i added new connection for

    USBDM and i added USBDM target.

    Now i can Run or debug the code only for the first time.

    But after reconnecting the board i am not able to burn the code.

    Error occurred as : -Failed to resume target process.

    I have created new project with USBDM addition.

    It is working. But I want the USBDM in my previous project.

    Is it possible to add new connection through debug configuration

    setting?

    Please suggest if I am missing something.

    Or I need to create new project?

    Regards,

    Amreen

    Erich Styger

    on May 27, 2014 at 21:35said:

    Hi Amreen,

    yes, you can add/create a new debug configuration any time.

    But your problem looks more like a USBDM problem? I just

    saw that there is a new versio nof USBDM out now, so you

    might give it a try.

    Durgesh

    on June 6, 2014 at 12:08said:

    Hello Erich,

    I have followed the same procedure as above to program my target

    board(with MKL25Z32M4 MCU) using freedom board.

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    21/22

    Its giving the same error

    Failed to resume target process., Downloading binary to target

    Erich Styger

    on June 6, 2014 at 14:00said:

    Hello Durgesh,

    can you verify that it works with another FRDM-KL25Z

    board? I suggest to check your wiring. Failed to resume tar-

    get processor means that it is not able to reset and halt the

    processor, so have a look at the reset line.

    I hope this helps.

    Durgesh

    on June 6, 2014 at 15:14said:

    Hello Erich,

    Thanks for replying.

    Before cutting the J2, I have downloaded the test

    code onto freedom board through SWD debug

    header. It worked fine. That means my SWD connec-

    tions are correct.

    Again I could able to program my tar-

    get(MKL25Z32M4) using Multilink through SWD. So

    my target board SWD connections are also correct.

    But i am unable to program my target(MKL25Z32M4)

    using my freedom board(both are connected with

    SWD),after cutting J2

    Erich Styger

    on June 6, 2014 at 18:31said:

    What debug firmware do you have on the FRDM

    board?

    Durgesh

    on June 6, 2014 at 15:16said:

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...

    f 22 22/07/2014 11:03 p.m.

  • 8/9/2019 Debug External ProDebug External Processors with USBDM and Freedom Board _ MCU on Eclipsecessors With USBD

    22/22

    Sorry I have typed J2 instead of J11 in before reply

    Durgesh

    on June 9, 2014 at 16:50said:

    I have USBDM HCS08 programmer on my freedom

    board.

    As you have suggested, I have tried to program an-

    other freedom board with USBDM. Its working fine.

    Another thing I want to mention is I have programmed

    my target controller using ARM Programmer(Flash

    Programmer) tool of USBDM, through Freedom

    board. Its working.

    I am unable to guess what could be the problem of

    same USBDM while working with codewarrior to pro-

    gram different microcontroller(other than the freedom

    board)?

    I want to program my target with codewarrior using

    USBDM as it provides me debugging facility.

    Guide me if there is any other debugging work I need

    to do

    Is there any way to log my information to you, If i

    dont find any solution.

    Thanks in advance

    Erich Styger

    on June 9, 2014 at 18:21said:

    I suggest that you ask the forum on http://source-

    forge.net/projects/usbdm/as additional help on

    USBDM.

    ug External Processors with USBDM and Freedom Board | MCU o... http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-u...