AnsweredAssumed Answered

STM32F407IGT6 - SECTOR0 write problem

Question asked by klimov.nick on May 13, 2013
Latest reply on May 13, 2013 by Clive One
Why I'm unable to flash chip STM32F407IGT6 at SECTOR0 (0x0800 0000 - 0x0800 3FFF)???

When I try to fiil the flash with the ZERO by SEGGER J-Flash ARM  getting next error:
Application log started
- J-Flash ARM V4.62a (J-Flash compiled Feb  4 2013 11:51:31)
- JLinkARM.dll V4.62a (DLL compiled Feb  4 2013 11:51:03)
Reading flash device list [C:\Program Files\SEGGER\JLinkARM_V462a\ETC\JFlash\Flash.csv] ...
- List of flash devices read successfully (1789 Devices)
Reading MCU device list [C:\Program Files\SEGGER\JLinkARM_V462a\ETC\JFlash\MCU.csv] ...
- List of MCU devices read successfully (2059 Devices)
Opening project file [C:\Program Files\SEGGER\JLinkARM_V462a\Default.jflash] ...
- Project opened successfully
Connecting ...
- Connecting via USB to J-Link device 0
- J-Link firmware: V1.20 (J-Link Ultra Rev.1 compiled Nov 14 2012 22:39:02)
- JTAG speed: 5 kHz (Fixed)
- Initializing CPU core (Init sequence) ...
    - Initialized successfully
- JTAG speed: 2000 kHz (Auto)
- Connected successfully
Erasing chip ...
- Erasing 12 sectors, 1 range, 0x8000000 - 0x80FFFFF
- RAM tested O.K.
- Erase operation completed successfully - Completed after 0.426 sec
Filling with zero ...
- 12 of 12 sectors selected, 1 range, 0x8000000 - 0x80FFFFF
- RAM tested O.K.
- ERROR: Programming failed @ address 0x08000000 (block verification error)
- ERROR: Failed to fill with zero
Disconnecting ...
- Disconnected

When I try to programm firmware by Keil getting next errors:
Load "C:\\workspace.keil\\mybl\\mybl\\obj\\bootloader.AXF"
Set JLink Project File to "C:\workspace.keil\mybl\mybl\JLinkSettings.ini"
* JLink Info: Device "STM32F407IG" selected (1024 KB flash, 128 KB RAM).
 
JLink info:
------------
DLL: V4.54a, compiled Sep 17 2012 15:58:45
Firmware: J-Link Ultra Rev.1 compiled Nov 14 2012 22:39:02
Hardware: V1.00
Feature(s) : RDI, FlashBP, FlashDL, JFlash, GDB
 
* JLink Info: Found SWD-DP with ID 0x2BA01477
* JLink Info: Found SWD-DP with ID 0x2BA01477
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: Found Cortex-M4 r0p1, Little endian.
ROMTableAddr = 0xE00FF003
 
Target info:
------------
Device: STM32F407IG
VTarget = 3.280V
State of Pins:
TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 0
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints:          4
JTAG speed: 5000 kHz
 
Erase Done.
Programming Done.
Contents missmatch at: 08000000H  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000001H  (Flash=FFH  Required=0EH) !
Contents missmatch at: 08000002H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000003H  (Flash=FFH  Required=20H) !
Contents missmatch at: 08000004H  (Flash=FFH  Required=11H) !
Contents missmatch at: 08000005H  (Flash=FFH  Required=03H) !
Contents missmatch at: 08000006H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000007H  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000008H  (Flash=FFH  Required=19H) !
Contents missmatch at: 08000009H  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800000AH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800000BH  (Flash=FFH  Required=08H) !
Contents missmatch at: 0800000CH  (Flash=FFH  Required=1BH) !
Contents missmatch at: 0800000DH  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800000EH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800000FH  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000010H  (Flash=FFH  Required=1DH) !
Contents missmatch at: 08000011H  (Flash=FFH  Required=03H) !
Contents missmatch at: 08000012H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000013H  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000014H  (Flash=FFH  Required=1FH) !
Contents missmatch at: 08000015H  (Flash=FFH  Required=03H) !
Contents missmatch at: 08000016H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000017H  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000018H  (Flash=FFH  Required=21H) !
Contents missmatch at: 08000019H  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800001AH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800001BH  (Flash=FFH  Required=08H) !
Contents missmatch at: 0800001CH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800001DH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800001EH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800001FH  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000020H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000021H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000022H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000023H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000024H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000025H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000026H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000027H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000028H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000029H  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800002AH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800002BH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800002CH  (Flash=FFH  Required=23H) !
Contents missmatch at: 0800002DH  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800002EH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800002FH  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000030H  (Flash=FFH  Required=25H) !
Contents missmatch at: 08000031H  (Flash=FFH  Required=03H) !
Contents missmatch at: 08000032H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000033H  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000034H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000035H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000036H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000037H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000038H  (Flash=FFH  Required=27H) !
Contents missmatch at: 08000039H  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800003AH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800003BH  (Flash=FFH  Required=08H) !
Contents missmatch at: 0800003CH  (Flash=FFH  Required=29H) !
Contents missmatch at: 0800003DH  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800003EH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800003FH  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000040H  (Flash=FFH  Required=2BH) !
Contents missmatch at: 08000041H  (Flash=FFH  Required=03H) !
Contents missmatch at: 08000042H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000043H  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000044H  (Flash=FFH  Required=2BH) !
Contents missmatch at: 08000045H  (Flash=FFH  Required=03H) !
Contents missmatch at: 08000046H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000047H  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000048H  (Flash=FFH  Required=2BH) !
Contents missmatch at: 08000049H  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800004AH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800004BH  (Flash=FFH  Required=08H) !
Contents missmatch at: 0800004CH  (Flash=FFH  Required=2BH) !
Contents missmatch at: 0800004DH  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800004EH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800004FH  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000050H  (Flash=FFH  Required=2BH) !
Contents missmatch at: 08000051H  (Flash=FFH  Required=03H) !
Contents missmatch at: 08000052H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000053H  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000054H  (Flash=FFH  Required=2BH) !
Contents missmatch at: 08000055H  (Flash=FFH  Required=03H) !
Contents missmatch at: 08000056H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000057H  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000058H  (Flash=FFH  Required=2BH) !
Contents missmatch at: 08000059H  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800005AH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800005BH  (Flash=FFH  Required=08H) !
Contents missmatch at: 0800005CH  (Flash=FFH  Required=2BH) !
Contents missmatch at: 0800005DH  (Flash=FFH  Required=03H) !
Contents missmatch at: 0800005EH  (Flash=FFH  Required=00H) !
Contents missmatch at: 0800005FH  (Flash=FFH  Required=08H) !
Contents missmatch at: 08000060H  (Flash=FFH  Required=2BH) !
Contents missmatch at: 08000061H  (Flash=FFH  Required=03H) !
Contents missmatch at: 08000062H  (Flash=FFH  Required=00H) !
Contents missmatch at: 08000063H  (Flash=FFH  Required=08H) !
Too many errors to display !

Read/Write prottection bytes described at STM32F40xxx and STM32F41xxx Flash programming manual:

Reading target memory (0x1FFFC000 - 0x1FFFC00F) ...- RAM tested O.K.

- Target memory read successfully. (16 bytes, 1 range) - Completed after 0.137 sec

0x1FFFC000: 5500AAFF0x1FFFC004: 5500AAFF0x1FFFC008: 0000FFFF0x1FFFC00C: 0000FFFF

When I remaping of the firmware to SECTOR1 (till the address - 0x08004000) - I successfully write/programming chip.

What is the happen? Why I'm not able to use SECTOR0 at FLASH-memory?

 

Outcomes