STM32f401 Not Working

Any bugs you encounter with Flowcode should be discussed here.
Alan_37
Posts: 173
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

STM32f401 Not Working

Post 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 4466 times

LeighM
Valued Contributor
Posts: 411
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 76 times
Been thanked: 226 times

Re: STM32f401 Not Working

Post by LeighM »

Could you attach your Flowcode program and the build/programming log (.txt file)

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: STM32f401 Not Working

Post by Alan_37 »

Hi , LeighM

Thanks for your fast reply

here are the files
Attachments
STM401 - COM ANA.zip
(697.42 KiB) Downloaded 176 times

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: STM32f401 Not Working

Post 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
Attachments
STM32F401working.log
(94.88 KiB) Downloaded 181 times
STM32F401 Flowcode .log
(94.93 KiB) Downloaded 181 times

LeighM
Valued Contributor
Posts: 411
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 76 times
Been thanked: 226 times

Re: STM32f401 Not Working

Post 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.

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: STM32f401 Not Working

Post 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
Last edited by Alan_37 on Wed Nov 29, 2023 9:06 am, edited 4 times in total.

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: STM32f401 Not Working

Post 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 4429 times

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: STM32f401 Not Working

Post by Alan_37 »

Any help on this Pls ?

LeighM
Valued Contributor
Posts: 411
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 76 times
Been thanked: 226 times

Re: STM32f401 Not Working

Post 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.

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: STM32f401 Not Working

Post 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 ?

Post Reply