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
  • 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
  • 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
  • Replies 4 replies
  • Subscribers 473 subscribers
  • Views 770 views
  • Users 0 members are here
Related

LPC4357-EVB

zylotech
zylotech over 10 years ago

Hi all,

 

I recently bought a development board LPC4357 - EVB .

I can not so much regarding ARM programming or no experience when it comes ULINK2 , Keil and LPC4357 - EVB .

 

I have downloaded Examples2 \ GPIO \ Gpio_LedBlinky project .

When I program GPIO_ledBlinky in InFlash mode.

All goes well , I see that LED flashes.

 

But when I remove ULINK2 from the USB port when the LED stops flashing.

Should not be the code to be programmed into the LPC4357 chip when selecting " InFlash " ?

 

And why can not program in SPIFI mode (the flash is full chip Erased before i try flash in SPIFI mode)


DIP switch is

1. Down

2. UP

3. UP

4. UP

I get an error like this pop-up message "ERROR: Flash Download failed - "Cortex-M4"

 

in Keil Build Output windows

Load "C:\\LocalData\\LPC4357-EVB\\Examples2\\GPIO\\Gpio_LedBlinky\\Keil\\SPIFI 64MB Debug\\example.axf"

Erase Done.

Programming Failed!

Error: Flash Download failed  -  "Cortex-M4"

Flash Load finished at 14:32:41

 

Best Regards

 

Martin

  • Sign in to reply
  • Cancel

Top Replies

  • clem57
    clem57 over 10 years ago in reply to zylotech +1
    Aw! You used debug mode which links the PC to the target for breakpoints and register displays. Once that link terminates, the code is lost even if in flash. Did you actually see the flash being erased…
  • clem57
    clem57 over 10 years ago

    Hi zylotech

         Based on what you wrote, I see this is a dual core:

    The Cortex-M4 processor combines the benefits of a microcontroller with high-performance digital signal processing features such as single-cycle MAC, single instruction multiple data (SIMD) techniques, saturating arithmetic and a floating point unit.

    The Cortex-M0 coprocessor off-loads many of the data movement and I/O handling duties that can drain bandwidth from the Cortex-M4 core. The LPC4357 also includes 1 MB Flash memory, 136 KB of data memory, two high-speed USB 2.0 host / OTG / devices and advanced configurable peripherals such as the state configurable timer (SCT), Serial General Purpose I/O (SGPIO), and SPI flash Interface (SPIFI). Other features are Ethernet, LCD, an external memory controller and multiple digital and analog peripherals.

    from NXP development kit based on the dual-core LPC4357 microcontroller.I would take a look at this discussion for some hints: element14: Software examples and demos for the LPC4357-EVB

    I took a look at the example and see "Internal SRAM mode:    This example can run on Internal SRAM mode.".  I bet you choose this or it is the default for the example. If ELF format, it loads into SRAM mode, and runs under control of the ULINK debugger.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • zylotech
    zylotech over 10 years ago in reply to clem57

    Hi Clem Martins,

     

    Thank you for replying.
    I have selected the Inflash mode in Keil 5

    Here is my setup in Keil5
    image
    Setup Option for Targets
    image

    Setup for Utilities:

    image

    Setup for Debug options

    image
    Setup Debug Settings
    image
    Setup Device Manager
    image
    Video:
    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image
    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

     

    But when I remove ULINK2 from the USB port when the LED stops flashing.

    Should not be the code to be programmed into the LPC4357 chip when selecting " InFlash " ?

     

    //

    ZyloTech

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 10 years ago in reply to zylotech

    Aw! You used debug mode which links the PC to the target for breakpoints and register displays. Once that link terminates, the code is lost even if in flash. Did you actually see the flash being erased and written to?

    Clem

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • zylotech
    zylotech over 10 years ago in reply to clem57

    Thank you for replying.


    I have succeeded image

    I removed ULINK2 JTAG connector from lpc4357 - EVB and then power off  and power on .


    Thanks a lot Clem Martins  image


    //

    ZyloTech


    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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 © 2025 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