2014-06-01 04:16 AM
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 cansolve
my
problem
when running some examples '' the flash loader reported program an error '' Thanks2014-06-01 09:53 AM
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.
2014-06-02 01:49 AM
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.2014-06-02 06:26 AM
Hi
I
am trying
to use
ST-
LINKUtil
..
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 Theflash
works for other
examples.
thank you
2014-06-02 06:42 AM
''
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 : So it looks like to insert an image - you have to upload it first.2014-06-02 06:57 AM
''
I
am trying
to use
ST-
LINKUtil
..
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' button2014-06-02 09:51 AM
Hi sung.chen_chung,
I think I have solved it..thank you for your help.