element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum LPC4357-EVB: unable to program
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 17 replies
  • Subscribers 481 subscribers
  • Views 1962 views
  • Users 0 members are here
  • lpc43
  • lpc4357-evb
Related

LPC4357-EVB: unable to program

Former Member
Former Member over 11 years ago

I have programmed my software into LPC4357-EVB board and it became totally unusable - can't use JTAG at all.

I suspect that PLL1 initialisation was incorrect so the micro simply locks up.

 

The question is: How can I reprogram the board?

According to NXP spec, in order to get access to ISP I need to use USART0 or USART3.

 

However, on this board USART0 is hardwired to RAM and USART3 is connected to USB power protection chip.

 

Is it possible to reprogram the board without hardware modifications apart from soldering UART TX/RX pins?

  • Sign in to reply
  • Cancel
  • aghogho
    0 aghogho over 11 years ago in reply to michaelkellett

    I am using an LPC-LINK2 and a J-LINK. Both of these cannot connect to the processor core and enable jtag debugging. I don't know if ULINK will work as well as a number of people have asserted that the only solution will be to put the processor core in ISP mode.

     

    There is a complete schematic available from element14 at http://www.element14.com/community/docs/DOC-51065/l/multimedia-evaluation-board-with-lpc4357?isRedirect=true#documents

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 11 years ago in reply to aghogho

    I've never used the LPC processor but with an STM32 and a ULINK I would be able to recover by setting the ULINK to use serial wire mode debugging (not JTAG ) and to connect under reset. Just go though all the options in the Keil MDK debug setup for how the JLINK connects and see if any work. It may be that with this processor you really are stuck but it's worth  a try.

     

     

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aghogho
    0 aghogho over 11 years ago in reply to michaelkellett

    Unfortunately, the LPC4357-EVB only exposes a JTAG interface. Just as you mentioned, I never had any troubles using the STM32, or the KINETIS M4s. I was only attracted to the LPC4357 because it is a dual core Cortex-M4 and M0. At this point, I will tryout the suggestions from "The Rookie" above.

     

    Thanks,

    -Obi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 11 years ago in reply to aghogho

    Had a bit of  a look at the data sheet - they seem to have totally stuffed the use of the SW debug in the way they have arranged the debug access to the two cores. I think you'll need to hack your way in to a USART. It's  a pity the board designers didn't make this a bit easier  - a couple of jumpers would do it.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aghogho
    0 aghogho over 11 years ago in reply to michaelkellett

    After much tinkering, I have been able to recovery the processor with the use of the SWD from the LPC-link2 probe. I thought the board only supported JTAG. It turns out that it does support SWD as well. Using LPCXpresso IDE, I configure the lunch configuration to use SWD instead of JTAG and voila!!.

     

    From my observation, it looks like SWD can recovery from a bad flash image unlike JTAG. This is very useful as I was unable to configure the processor to enter ISP mode because the necessary pins were not exposed. I now have the ability to recovery from a bad flash without the use of the ISP mode.

     

    -Obi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aghogho
    0 aghogho over 11 years ago

    Using LPCXpresso IDE, configure the lunch configuration to use SWD instead of JTAG and voila!!.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 11 years ago in reply to aghogho

    Glad you got there - thanks for sharing the solution.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube