Hello! I've got a problem. I am working with microcontroller 1986BE91T(ARM Cortex M3). My project is successfully built. But when I try to download code to Flash memory (Flash DownLoad) I get an error window - Flash DownLoad Failed - "Cortex-M3". Below in Build Output window I see - Full Chip Erase Done. Programming Done. Contents Mismatch at: 08000000H (Flash = FFh Required 10H). Contents Mismatch at: 08000001H (Flash = FFh Required 13H). Contents Mismatch at: 08000002H (Flash = FFh Required 00H). Contents Mismatch at: 08000003H (Flash = FFh Required 20H).
There wasn't such a problem earlier and my project was downloaded successfully. And it worked correctly. But now I 've got such a problem. Can you help me with my trouble, please. Any help would be appreciated.
Probably your memory settings are not in accordance with the Flash algorithm.
Check the target memory settings in ""Options for Target -> Target"" and Flash algorithm settings in ""Options for Target -> Debug -> Flash Downloads""
Target memory settings in ""Options for Target->Target"": Read-Only Memory Areas: on-chip IROM1 Start-0x8000000 Size - 0x20000 Startup =Yes Read-Write Memory Areas: on-chip IRAM1 Start-0x20000000 Size - 0x8000
Flash algorithm settings in ""Options for Target -> Debug -> Flash Downloads"". Device Size = 128K ;Device Type=On-Chip Flash; Address Range= 0x08000000H-0x0801FFFFH Start:0x08000000H Size:0x00020000
RAM for Algorithm: Start: 0x20000000 Size:0x8000
Maybe the problem is a bad condition of microcontroller. Maybe it's damaged. Can it be a real reason of the problem?
Bad flash memory normally gives a few individual bit errors.
Your printout shows the value 0xff, which indicates unprogrammed memory cells.
That's normal when you have the wrong algorithm, or you for some reason have managed to program the wrong memory range. Or if you have a write-protected chip. But "full chip erase" would normally clear any code protection flags.