Skip to main content
Associate
May 25, 2024
Question

STM32WB10CC not programming on custom hardware

  • May 25, 2024
  • 2 replies
  • 4712 views

I designed a custom PCB. It is designed to be used in a remote control car I want to make/to control a BLDC motor and servo wirelessly or through a potentiometer.

When I attempt to program the microcontroller (connecting through STLINKV3) it seems to connect fine, and I am able to read the flash and option bytes. When I try to program a file, it fails with error "Error: failed to erase memory", except for one time where two blocks were written (see image) [the data is correct in the first but in the second only the 1 is correct].

I have attempted in every combination of software/hardware/core reset in CubeProgrammer, and have read various other community posts, with no success. 

I'm not quite too sure where to go from here, whether it is a hardware issue or a software configuration issue.

I have attached the Altium design files as well.

Any suggestions would be appreciated.

nmartini_0-1716614990108.png

 

2 replies

Maryem
Technical Moderator
May 30, 2024

Hello @nmartini,

 

Thank you for providing a detailed description of your issue. Could you please attach the binary file that you're trying to download and the log showing the error message you're encountering ?

Thank you in advance !

Maryem.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
nmartiniAuthor
Associate
May 31, 2024

Hi Maryem,

Please find attached.

Thanks,

Nick

Maryem
Technical Moderator
June 13, 2024

Hello @nmartini,

 

I apologize for the delay in getting back to you. Despite reviewing the files you've provided, I was unable to reproduce the issue on my end. Could you please share the current configuration of your option bytes?

Thank you for your patience and cooperation !

 

Maryem.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
nmartiniAuthor
Associate
June 14, 2024

Hi @Maryem,

I have attached screenshots of the option bytes as I couldn't see a way to save as text. I have been unable to change any of them as well so this is how they have been configured since I received it.

Thanks,

Nick