Skip to main content
AScha.3
Super User
October 14, 2022
Solved

(programmed) STM32F030 stucks in the startup (xx.s ) forever. defective batch ??

the hole batch of F030C6T6 has same behavior :

can access with ST-Link , program, verify - all ok. read core registers, option bytes...ok.

but then no program start ! chip stays in startup here:

0693W00000Uo3uMQAR.png10 tested boards ihave identical behavior. chips coming from PCB assembler , as usual.

I replaced one with a (suspect source , from aliexpress dealer) F030 , then board running as it should.

  • can i do anything, to get these boards running?
  • if chips have all same defect, how is it possible to passing the wafer test ??

This topic has been closed for replies.
AScha.3
AScha.3Best answer
Super User
October 20, 2022

Thanks to all for your help . so finally i found it ...

  1. C6 chip has only 4k ram, so using same bin as with C8 version using > 4k ram going mad
  2. using optimizer (-O2) made the chip starting the program (but program stuck in While-loop)
  3. making all warnings away and using "volatile" for variables, modified in interrupt, get it running.

(program is old, transferred from other chip and never made in good/correct C-style )

-> chips are not defective, with optimized program for C6 version all running fine now.

but crazy, that the cpu stall in startup code, without showing some useful error (illegal adress or so).

If you feel a post has answered your question, please click on " Best Answer ".

24 replies

AScha.3
AScha.3Author
Super User
October 19, 2022

funny: now (still same program, changed nothing intentional ) starting normal, cpu registers now:

0693W00000UoMF8QAN.png but...i run compiler again , just to see: 0 warnings , 0 errors .

If you feel a post has answered your question, please click on " Best Answer ".
AScha.3
AScha.3Author
Super User
October 19, 2022

isr_vector ...in IDE ?

0693W00000UoMMYQA3.pngor where to look ?

+

_estack symbol -- is where ?

+ i have to go home now, tomorrow i can check ....

If you feel a post has answered your question, please click on " Best Answer ".
AScha.3
AScha.3AuthorBest answer
Super User
October 20, 2022

Thanks to all for your help . so finally i found it ...

  1. C6 chip has only 4k ram, so using same bin as with C8 version using > 4k ram going mad
  2. using optimizer (-O2) made the chip starting the program (but program stuck in While-loop)
  3. making all warnings away and using "volatile" for variables, modified in interrupt, get it running.

(program is old, transferred from other chip and never made in good/correct C-style )

-> chips are not defective, with optimized program for C6 version all running fine now.

but crazy, that the cpu stall in startup code, without showing some useful error (illegal adress or so).

If you feel a post has answered your question, please click on " Best Answer ".