Skip to main content
loder
Associate II
July 26, 2016
Question

STM32F103C8 - IAR throws error while downloading code with ST-Link

  • July 26, 2016
  • 2 replies
  • 1154 views
Posted on July 26, 2016 at 16:22

Hi,

i get these errors while downloading my code via the ST-Link (latest firmware) to my controller (STM32F103C8):


Tue Jul 26, 2016 16:22:30: IAR Embedded Workbench 7.1 (armproc.dll) 

Tue Jul 26, 2016 16:22:30: Loaded macro file: D:\Programme\IARWorkbench_STM32\arm\config\debugger\ST\STM32F1xx_XL.dmac 

Tue Jul 26, 2016 16:22:30: Loaded macro file: D:\Programme\IARWorkbench_STM32\arm\config\flashloader\ST\FlashSTM32F10xxx.mac 

Tue Jul 26, 2016 16:22:33: Connected to ST-Link/V2 [SWD mode 50 kHz] Firmware V2.JS6 (Probe no: 28611187) 

Tue Jul 26, 2016 16:22:33: Software reset was performed 

Tue Jul 26, 2016 16:22:33: Initial reset was performed 

Tue Jul 26, 2016 16:22:35: Warning: Write failed (CPU data abort) at Memory address 0x1FFFF800 

Tue Jul 26, 2016 16:22:35: Reset FLASH readout protection 

Tue Jul 26, 2016 16:22:35: Hardware reset with strategy 2 was performed 

Tue Jul 26, 2016 16:22:35: 736 bytes downloaded (2.42 Kbytes/sec) 

Tue Jul 26, 2016 16:22:35: Loaded debugee: D:\Programme\IARWorkbench_STM32\arm\config\flashloader\ST\FlashSTM32F10xxxRAM10K.out 

Tue Jul 26, 2016 16:22:35: Target reset 

Tue Jul 26, 2016 16:22:37: Unloaded macro file: D:\Programme\IARWorkbench_STM32\arm\config\flashloader\ST\FlashSTM32F10xxx.mac 

Tue Jul 26, 2016 16:22:37: The flash loader program reported an error. 

Tue Jul 26, 2016 16:22:38: IAR Embedded Workbench 7.1 (armproc.dll) 

Any ideas, what causes the errors?
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    July 26, 2016
    Posted on July 26, 2016 at 18:23

    What does IAR support have to say?

    Why would it need to play with RDP or options bytes?

    Is this a custom board?

    Do you have similar errors with NUCLEO or DISCO boards?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    loder
    loderAuthor
    Associate II
    July 26, 2016
    Posted on July 26, 2016 at 19:26

    Thanks for your answer,

    i didn't contact IAR because i don't know if it is maybe my fault.

    It is the STM32F103C8 Board from China: https://i.ytimg.com/vi/DCjhJCk_bIE/maxresdefault.jpg

    I don't have any other stm32 board so i can't test if it would work with the nucleo :(