Skip to main content
Associate II
November 4, 2024
Question

STM32CubeProgrammer crashes when connect STM32F401CCU6

  • November 4, 2024
  • 9 replies
  • 2783 views

I just get a STM32F401CCU6 board (a real one) but now when I try to connect my board on STM32CubeProgrammer the application crahses... and when is unplug my board the application work again fine... 

It also look like my board is stuck in bootloader mode ( only the red led lights up)

I don't know if someone could help me...

Thank you

Totouan_0-1730741266723.png

 

Totouan_1-1730741301033.png

 

9 replies

Andrew Neil
Super User
November 4, 2024

@Totouan wrote:

a STM32F401CCU6 board


So what board is it?

And what version of CubeProgrammer?

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
TotouanAuthor
Associate II
November 4, 2024

As I said, it is a STM32F401CCU6 board  (a stmicroelectronic)

ANd for the version of CubeProgrammer :

Totouan_0-1730744678359.png

 

Andrew Neil
Super User
November 5, 2024

@Totouan wrote:

As I said, it is a STM32F401CCU6 board  (a stmicroelectronic)


That's just the chip - not the board.

Is it a Discovery board? a Nucleo board? an EV board? other?

 

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
gbm
Principal
November 5, 2024

I assume it's BlackPill. I think the problem is not related to the board/chip at all. CubeProgrammer frequently installs incorrectly. Then it tries (sometimes even with success) to display some strange error messages about missing components or refuses to execute some actions. That's probably the case here.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
gbm
Principal
November 4, 2024

And why don't you use the current version, 2.17?

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
TotouanAuthor
Associate II
November 4, 2024

Okay I will try with the latest version

Thanks for your help

TotouanAuthor
Associate II
November 4, 2024

Okay now I am running on the 2.17 version but there is still the same problem

Totouan_0-1730746893234.png

 

TotouanAuthor
Associate II
November 5, 2024

Sorry i didn't understood, here is the link from the product i bought : https://www.amazon.fr/dp/B0CLD5FG62?ref=ppx_yo2ov_dt_b_fed_asin_title

Andrew Neil
Super User
November 5, 2024

@Totouan wrote:

 here is the link from the product i bought : https://www.amazon.fr/dp/B0CLD5FG62?ref=ppx_yo2ov_dt_b_fed_asin_title


Always best to provide a link at the start - so that everyone knows exactly what you're talking about

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

That's a 3rd-party board - not an ST board - and there's a risk that it may not have a genuine STM32.

Have you contacted RUIZHI for support? Do they claim that it should work with CubeProgrammer?

AndrewNeil_0-1730808163344.png

Do you have that "WeAct" bootloader?

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
TotouanAuthor
Associate II
November 5, 2024

Thank you for your help, I will try what you told me to do

And yes it is written WeAct on the back of the board if it is what you meant.

 

TotouanAuthor
Associate II
November 5, 2024

Euh I made a little mistake... I clicked on solved... possible to remove that ? 

Andrew Neil
Super User
November 5, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
TotouanAuthor
Associate II
November 5, 2024

Thank you