Keil Logo

Error: Flash Download failed - "Cortex-M4

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Max K
Posted
23-May-2015 12:42 GMT
Toolset
None
New! Error: Flash Download failed - "Cortex-M4

Hello,

I'm working with µVision now. I have created a project and I want to load it on my evaluation board MCB4300 (LPC4350). If I click on "Build" I see "0 Error(s), 0 Warning(s)", but if I click on "Load" I get the following error message --> Error: Flash Download failed - "Cortex-M4".

In "Target Options" I completed:

Device: LPC4350-Cortex-M4
Utilities: Settings -> Flash Download -> Add -> LPC18xx/43xx S25FL032 SPIFI
Utilities: Settings -> Debug -> Download Options -> Download to Flash (yes)

Where is the problem? I hope anyone can help me.

Read-Only
Author
Max K
Posted
23-May-2015 14:27 GMT
Toolset
None
New! RE: Error: Flash Download failed - "Cortex-M4

And I also get the error message in Build Output: No Algorithm found for: 00000000H - 00002333H Erase skipped!

Read-Only
Author
Westonsupermare Pier
Posted
24-May-2015 02:03 GMT
Toolset
None
New! RE: Error: Flash Download failed - "Cortex-M4

May be you need to add a flash algorithm for the internal flash, because the 0-0x2333 doesn't sound like it's an external SPI flash

Read-Only
Author
Westonsupermare Pier
Posted
24-May-2015 02:11 GMT
Toolset
None
New! RE: Error: Flash Download failed - "Cortex-M4

The LPC4357 has two flash algorithms for the IAP 512KB banks at 0x1A000000 and 0x1B000000

Make sure the Target pane has IROM1 selected as one of those ranges, and not zero.

Review the example projects for the Keil MCB4300 board, uv4.7x has at least half a dozen of them.

Read-Only
Author
Max K
Posted
24-May-2015 12:34 GMT
Toolset
None
New! RE: Error: Flash Download failed - "Cortex-M4

I added the following informations in the target options form MCB4300 - LPC4350:

Target Options:

Device: LPC4350 -> LPC4350: Cortex-M4

Target:
IROM1: 0x1A000000 (Start) and 0x80000 (Size) (tick)
IROM2: 0x1B000000 (Start) and 0x80000 (Size)
IRAM1: 0x10000000 (Start) and 0x20000 (Size) (tick)
IRAM2: 0x20000000 (Start) and 0x10000 (Size)
Operating System: None

I can only add the following:

Utilities: Settings -> Flash Download -> Programming Algorithm -> Add

- LPC18xx/43xx S25FL032 SPIFI 4M (Flash Size) Ext. Flash SPI (Device Type) MDK Core (Origin
- RC28F640J3x Dual Flash 16M Ext. Flash 32-bit MDK Core
- S29GL064N Dual Flash 16M Ext. Flash 32-bit MDK Core

LPC18xx/43xx S25FL032 SPIFI Start: 0x14000000 Size: 0x00400000
RC28F640J3x Dual Flash Start: 0x00000000 Size: 0x01000000
S29GL064N Dual Flash Start: 0x1C000000 Size: 0x01000000

Utilities: Settings -> Flash Download -> RAM for Algorithm: 0x10000000 (Start), 0x1000 (Size)

I added LPC18xx/43xx S25FL032 SPIFI.

But it doesn't works. I get always the error message: "Error: Flash Download failed - "Cortex-M4""

Read-Only
Author
Westonsupermare Pier
Posted
24-May-2015 19:34 GMT
Toolset
None
New! RE: Error: Flash Download failed - "Cortex-M4

And is that accompanied by any other errors/warnings in the transaction log, that might suggest why it failed?

Read-Only
Author
Max K
Posted
24-May-2015 19:48 GMT
Toolset
None
New! RE: Error: Flash Download failed - "Cortex-M4

No, there are no other errors or warnings.

Now I set the jumpers to SPIFI but nothing happened. The MCB4350 (LPC4350) has no internal flash, so must I configure in a other way. I'm working more than two days with this problem, and I can't load my program to MCB4350.

The examples for MCB4300 is only for LPC4357 and not for LPC4350, otherwise I will use them.

Read-Only
Author
Max K
Posted
25-May-2015 17:35 GMT
Toolset
None
New! RE: Error: Flash Download failed - "Cortex-M4

If I choose:

S29GL064N Dual Flash 16M Ext. Flash 32-bit MDK Core

I get the following error message:

Flash Timeout. Reset the Target and try it again.

and after that:

Error: Flash Download failed - "Cortex-M4"

The MCB4300 (LPC4350) has no internal flash, so I have to load my program in the RAM or external flash. S29GL064N is my external flash. So why I get this error messages now?

Read-Only
Author
Reinhard Keil
Posted
27-May-2015 14:14 GMT
Toolset
None
New! RE: Error: Flash Download failed - "Cortex-M4

Maybe the reason is the configuration of the JTAG/SW port clock. Please configure it to 1MHz or higher. With slower clock speeds, the flash algorithms may time-out as the data are not delivered fast enough.

Read-Only
Author
Mehmet Aydogan
Posted
10-Nov-2017 08:40 GMT
Toolset
None
New! RE: Error: Flash Download failed - "Cortex-M4

I also encountered this problem for my application for another uC. I solved like below;

In target options,
select "Utilities", select your debugger and click "Settings",
There are Cortex-M Target Deriver Setup menu.
select "Flash Download" tab, there are a "Add" button.
please add your Chip's Programming Algorithm.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.