cancel
Showing results for 
Search instead for 
Did you mean: 

When I try to program my STM32L476 Discovery board, I receive the following errors: Error: unknown or unsupported device (DevID = 0x0000) Error: Data mismatch found at address 0x08000004 (byte = 0xCD instead of 0x09)

DBURG.2449
Associate II

macOS high Sierra

version 10.13.6

I am unable to access log file under /tmp

I can program this board from a pc

Full console report:

STMicroelectronics ST-LINK GDB server. Version 5.3.2

Copyright (c) 2019, STMicroelectronics. All rights reserved.

Starting server with the following options:

    Persistent Mode      : Disabled

    Logging Level       : 1

    Listen Port Number     : 61234

    Status Refresh Delay    : 15s

    Verbose Mode        : Disabled

    SWD Debug         : Enabled

Waiting for debugger connection...

Debugger connected

   -------------------------------------------------------------------

            STM32CubeProgrammer v2.2.0          

   -------------------------------------------------------------------

Log output file:  /tmp/STM32CubeProgrammer_ORi32V.log

ST-LINK SN : 0672FF575251717867142819

ST-LINK FW : V2J35M26

Voltage   : 3.21V

SWD freq  : 4000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Cannot identify the device

Error: unknown or unsupported device (DevID = 0x0000)

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_kyXyTR.srec

 File     : ST-LINK_GDB_server_kyXyTR.srec

 Size     : 38932 Bytes

 Address    : 0x08000000 

Erasing memory corresponding to segment 0:

Download in Progress:

File download complete

Time elapsed during download operation: 00:00:00.278

Verifying ...

Error: Data mismatch found at address 0x08000004 (byte = 0xCD instead of 0x09)

Error: Download verification failed

1 REPLY 1
oeliks
Senior

Change GDB server to OCD and try again, if not try under reset. All in debug configuration .

Most errors I see here is when using macOs =) Did You tried it on normal liniux?​

Looks like You download software correctly, but in config of mcu you diasable swd, so st link cant find target 0x0000 and cant verify.​