cancel
Showing results for 
Search instead for 
Did you mean: 

the flash loader reported program an error

ahmedzizou690
Associate II
Posted on June 01, 2014 at 13:16

Hi everyone

I'm using IAR Embedded Workbench for ARM, v. 7.10, 32K Kickstart Edition on WIndows 7, for an university project to program a STM3221G-EVAL board (using SWD Interface).

if anyone can

solve

my

problem

when running some examples '' the flash loader reported program an error ''

Thanks
6 REPLIES 6
Posted on June 01, 2014 at 18:53

Can't really help you with IAR, but generally if you gets problems with JTAG/SWD that relate to things your user code may be doing that break the interface, then one solutions is to jumper the BOOT0 pin high and reset into the System Loader code, and once there erase the user code from the STM32 and try over again.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
chen
Associate II
Posted on June 02, 2014 at 10:49

Hi

''the flash loader reported program an error''

Way to vague an explanation - please give more information.

eg  a screen grab of the error.

FIY, please check if the option bytes have locked the flash (use ST-Link Util).

If the flash is locked, unlock it. I know Atollic cannot program when the Flash is locked, cannot remember if IAR has the same problem.

ahmedzizou690
Associate II
Posted on June 02, 2014 at 15:26

Hi

I

am trying

to use

ST-

LINK

Util

..

but the problem

is that I

do not know

how to

unlock

the

flash

..

Just to inform

you

that

the problem arises

for specific

examples

but The

flash

works for other

examples.

thank you

chen
Associate II
Posted on June 02, 2014 at 15:42

''

here is a

screenshot

of the error

''

I am not seeing the screenshot.

I have not got image paste to work yet.

The only way I manage to add an image is to use 'Attach File'

Lets see if I can get 'ImageManager' to insert an image :

0690X00000602QPQAY.bmp

So it looks like to insert an image - you have to upload it first.

chen
Associate II
Posted on June 02, 2014 at 15:57

''

I

am trying

to use

ST-

LINK

Util

..

but the problem

is that I

do not know

how to

unlock

the

flash

..

''

From the menus along the top, select 'Target' - drop down list appears, select 'Option Bytes'

On the new pop up screen that appears, the flash sectors are listed.

Any that are ticked are protected.

Un-tick and then press the 'Apply' button

ahmedzizou690
Associate II
Posted on June 02, 2014 at 18:51

Hi sung.chen_chung,

I think I have solved it..

thank you for your help.