Page 1 of 3

STM32f401 Not Working

Posted: Tue Nov 28, 2023 6:04 pm
by Alan_37
Hi,
I am trying to use the below stm32f401rc Dev board for my Project so first thing
I try to make c13 blink, the chip will program ok but no blink , nothing is working

any idea what the problem can be ?
stm32f401.jpg
stm32f401.jpg (190.62 KiB) Viewed 2774 times

Re: STM32f401 Not Working

Posted: Tue Nov 28, 2023 6:08 pm
by LeighM
Could you attach your Flowcode program and the build/programming log (.txt file)

Re: STM32f401 Not Working

Posted: Tue Nov 28, 2023 6:17 pm
by Alan_37
Hi , LeighM

Thanks for your fast reply

here are the files

Re: STM32f401 Not Working

Posted: Tue Nov 28, 2023 6:25 pm
by Alan_37
Also , I am not sure about this but when I tried to investigate
this issue I compared the config registers of the board after programming with
flowcode and another that is new and has a dummy firmware working .

I also tried to copy the firmware from the working board to the one that
was flashed with flowcode but it dose not make it work again

Re: STM32f401 Not Working

Posted: Tue Nov 28, 2023 7:42 pm
by LeighM
Thanks for the zip, nothing leaps out at me from what I can see.
But I don't currently have access to my Flowcode PC so can't check much at the moment.
Have you checked your clock configs with STM32CubeMX?
It would be easy to overclock something with that 25MHz crystal.

Re: STM32f401 Not Working

Posted: Tue Nov 28, 2023 8:04 pm
by Alan_37
The board has a 25Mhz oscillator so I entered in 25
I also tried to compile wilth 10MHZ but same result

The board comes programmed with a variable PWM on
C13 so the board is not defective.


Regarding CubeMX clock , i am not familiar with the program it
dose not seem to have the ability to program the RCC register directly
or produce hex or bin file .

I think I need HSE type but flashing is not successful via st-link with flowcode when I select it, only EXT flashes successful

Re: STM32f401 Not Working

Posted: Tue Nov 28, 2023 8:56 pm
by Alan_37
Also I can see that in Flowcode the 32F401RC is marked as 512K flash
and it is 256K not 512K .

.
.
hex.png
hex.png (38.75 KiB) Viewed 2737 times

Re: STM32f401 Not Working

Posted: Wed Nov 29, 2023 6:10 pm
by Alan_37
Any help on this Pls ?

Re: STM32f401 Not Working

Posted: Wed Nov 29, 2023 6:52 pm
by LeighM
The CubeMX is just useful for seeing the resultant clock rates as you set the various dividers and multipliers.
It also highlights any out of range settings.
The validated settings can then be copied to the Flowcode project settings.

You could try editing the device fcdx file, the 512 to 256 edit should be doable.
I might get chance to get near my PC tomorrow, otherwise it will be Friday when I can take a look.

Re: STM32f401 Not Working

Posted: Wed Nov 29, 2023 9:36 pm
by Alan_37
Hi ,

I have edited the fcdx file in C:\Program Files (x86)\Flowcode v9\data\DefaultData\FlowcodeV9\FCD\ARM
but it's not changing in flowcode is there another file in another location ?