Skip to main content
Pavel A.
Super User
August 15, 2019
Solved

Cannot debug and download flash on STM32H753 eval board with Keil

  • August 15, 2019
  • 3 replies
  • 1652 views

Dear experts,

Any hints what can be the problem?

I have STM32H753I-EVAL2 just out of box, no changes made.

https://www.st.com/en/evaluation-tools/stm32h753i-eval.html

Built an example app with Keil MDK. If it matters it is LwIP_HTTP_Server_Raw.

Keil sees the ST-LINK/v3 on the board but cannot erase and write internal flash.

Erase and program progress runs quickly but verification fails. All flash bytes read as FF.

CubeProgrammer v 2.1.0 successfully downloads the program and it runs fine -

after the power and debugger cable disconnected.

Without reset, after Keil failure the CubeProgrammer also cannot connect, and the onboard ST-Link cannot connect (puts a error message file on its USB drive).

When CubeProgrammer can connect, it shows that the memory is partially written. Spans of valid data interleaved with spans of FFs, But not all FFs, as Keil reports.

Is this a know issue with H7 or this board, or I need some extra setting?

Thanks in advance,

Pavel A.

This topic has been closed for replies.
Best answer by Tesla DeLorean

Check SW1 position

3 replies

Tesla DeLorean
Guru
August 15, 2019

Must be a newer board, the H7 EVAL I have uses the ST-LINK/V2

Make sure you have picked the correct Flash Algorithm, check which banking version it is failing with, and pick the other one.

Dial back the SWD frequency

Use uV 5.28(a)

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Pavel A.
Pavel A.Author
Super User
August 16, 2019

Hi Clive,

Yes this is "revision E" board.

As to the flash algo, Keil seems to use the correct loader (something named M7 and 2048K) - though my Keil version is not latest.

What is banking version? Do you mean the banks switched? But Cube Programmer succeeded to write it.

This is my first H7. Can this be caused by ECC , the manual says something about errors when writing incomplete 32-bit blocks... ?

-- pa

Pavel A.
Pavel A.Author
Super User
August 16, 2019

Update: Converted a minimal project from the board examples from SW4STM to Atollic (just the template) .

Atollic can upload the executable to the board, but then its debugger immediately breaks at a weird location (in the built-in bootloader?)

When I set the PC and SP manually, it runs correctly and debugger seems to work.

When importing SW4STM to Atollic, is replace of linker script or startup code needed?

-- pa

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
August 16, 2019

Check SW1 position

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Pavel A.
Pavel A.Author
Super User
August 28, 2019

Keil debug problem resolved.

In the IDE pack manager updated the 'H7 pack to v 2.3 (June 2019),

enabled it in debugger settings, went thru all debug settings and clicked OK.

Now Keil v 5.27 downloads into the flash and runs the demo fine.

(I don't get 5.28 yet,)

-- pa