Author Topic: SWD over Link2  (Read 3589 times)

ektos_team

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
SWD over Link2
« on: September 18, 2015, 11:16:37 am »
Hi!
I use Flash Magic 9.4 and have LPC Link2(LPC4370) board. So I want program other board LPCXpresso lpc1114 reva via SWD interface. The Flash Magic write always "...autobaud - step 1" message. What is wrong? The LPC Link2 is in USB DFU mode and I have choose "SWD over Link2" mode.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2099
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: SWD over Link2
« Reply #1 on: September 22, 2015, 08:45:21 am »
Is the LED on the Link2 flashing?

Please send us a debug file - instructions: http://www.flashmagictool.com/debugfile.html

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

akhirules

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: SWD over Link2
« Reply #2 on: November 13, 2015, 11:46:43 am »
I too had the same problem and the LED is Blinking

navin.gautam

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
    • Email
Re: SWD over Link2
« Reply #3 on: March 16, 2016, 04:23:39 pm »
I also have the same problem with LPC-Link2 trying to program LPC4357..
It complains about autobaud fail and LED on Link2 blinks.
I am selecting SWD over Link2...
Is there any solution yet?

I have attached degug log file.. if anybody need it
« Last Edit: March 16, 2016, 04:27:07 pm by navin.gautam »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2099
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: SWD over Link2
« Reply #4 on: March 16, 2016, 05:34:36 pm »
It says that the core on the LPC43xx didn't halt when expected.

What board are you using?

This isn't related to the problem you are having, but the oscillator frequency should be the crystal frequency, not the core frequency. E.g. 12MHz.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

navin.gautam

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
    • Email
Re: SWD over Link2
« Reply #5 on: March 18, 2016, 02:52:39 pm »
The LPC4357 board is our custom board.
We are using LpcXpresso to program and debug it. But since recently we needed to program few tens of test boards and we decided to use flashmagic. However there is no luck. The SWD interface is working well with LpcXpesso. I am attaching the schematic that has SWIO interface connector.
I tried the crystal value of 12 and it is same.


Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2099
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: SWD over Link2
« Reply #6 on: March 21, 2016, 11:56:16 am »
We made a change in version 9.71, now available. Please give it a try. We have tested this with a Keil MCB4300 board populated with a LPC4357 and a LPC-Link2 board.

Note: for this to work the boot pins must NOT be set to boot the part from external memory.

Andy
« Last Edit: March 21, 2016, 12:17:25 pm by Andy Ayre »
Embedded Systems Academy, Inc.
support at esacademy dot com

navin.gautam

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
    • Email
Re: SWD over Link2
« Reply #7 on: March 21, 2016, 03:30:40 pm »
Thanks for update.

I downloaded the new Flashmagic. There is an improvement. Now I can read Chip ID and check blank status.
However, when I tried to program a hex file it did not work.

First it complained about the Chip signature not matched and it asked if I want to continue. I press ok to continue. Then it started to erase flash block 0. But it never passed.

I have attached the debug log file for your reference.

How I did see the device signature not matched? I have selected right CPU. LPC4357.

Thanks

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2099
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: SWD over Link2
« Reply #8 on: March 22, 2016, 01:15:44 pm »
We will discuss this with NXP and post back when we have an update.
Embedded Systems Academy, Inc.
support at esacademy dot com

hctek

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: SWD over Link2
« Reply #9 on: July 18, 2016, 05:47:32 pm »
We will discuss this with NXP and post back when we have an update.

Hello, I am facing the same problem has described in this topic. You have some news?

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2099
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: SWD over Link2
« Reply #10 on: July 19, 2016, 08:31:53 am »
We are working on it, but I don't have an ETA.
Embedded Systems Academy, Inc.
support at esacademy dot com

hctek

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: SWD over Link2
« Reply #11 on: July 19, 2016, 10:03:07 am »
If you need my log file let me know.

stevewald

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
    • Email
SWD over Link2
« Reply #12 on: August 17, 2017, 06:19:55 pm »
I am trying to reprogram to the NHS3100 which came with the Temperature Logger ADK using FlashMagic (version 10.55.4768 on PC-windows7). The FlashMagic interface button does not have the required "SWD over Link2" item. What now?

Answered my question by reading Chapter 17 of the FM Manual -- I didn't have the SWD interface configured with the initial install. It's working now.
« Last Edit: August 17, 2017, 10:01:09 pm by stevewald »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2099
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: SWD over Link2
« Reply #13 on: August 17, 2017, 10:52:29 pm »
Thanks for posting the solution - it helps users that come after you.
Embedded Systems Academy, Inc.
support at esacademy dot com