STM32f401 Not Working

Any bugs you encounter with Flowcode should be discussed here.
LeighM
Valued Contributor
Posts: 401
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32f401 Not Working

Post by LeighM »

Yes, the live data is in a Windows hidden directory
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\

V9 not V10 in your case

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32f401 Not Working

Post by Alan_37 »

Hi I also managed to find that file by doing a search and edit it
also changed the ram value as it was 98K
flash2.jpg
flash2.jpg (10.54 KiB) Viewed 2818 times
But still in flowcode dose not change .
.
flash .jpg
flash .jpg (21.72 KiB) Viewed 2818 times
I think you will need to do it via an Library update

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32f401 Not Working

Post by LeighM »

I don't think that list comes from the fcd.
It will be worth trying your modified version anyway.
Just also ensure that <root> is the very first thing in the fcdx file.

No doubt someone at Matrix will update the system soon

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32f401 Not Working

Post by Alan_37 »

I have tried it and still don't work

Also the hex offset is still bigger then the the chip memory

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32f401 Not Working

Post by LeighM »

OK, there might be other things to change too, I will know better once I get to my PC :)
Unless Matrix get there first :)

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32f401 Not Working

Post by Alan_37 »

I think is fear to ask how matrix can sell a product and not even test for
at least a basic function like blink an led .

Thanks for your help LeighM, looking forward to make this work :)

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32f401 Not Working

Post by LeighM »

It's a tricky balance between testing every device, and thereby having a reduced set, or creating untested fcds for the gaps with the risk of a bug.

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32f401 Not Working

Post by Alan_37 »

I understand hope it will be fixed soon

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32f401 Not Working

Post by LeighM »

I've now had chance to have a look...

The fcdx looks correct (where it matters) ...

Code: Select all

    <parameters>
        <lscript value = 'stm32f.ld' />
        <romsize value = '256K' />
        <ramsize value = '64K' />
    </parameters>
The project clock setup has issues, please could you try the following changes to your settings (this will limit all the clocks to maximums)
RCC_PLLM /25
RCC_PLLN x336
RCC_PLLP /4
RCC_PLLQ /4
RCC_AHB_PRE /1
RCC_AHB1_PRE /2
RCC_AHB2_PRE /1

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32f401 Not Working

Post by Alan_37 »

Hi , is the memory part i was talking about in the section below that
it is not correct , should be flash bytes = 262144 & ram = 65536 .

Code: Select all

    
    <memory >
        <flash bytes='524288' />
        <ram bytes='98304' />
    </memory> 
Yes it finally worked with your clock settings also had to select HSE would not work on EXT,
so it was the clock settings.

I would never get it to work without your help

Thanks so much
Last edited by Alan_37 on Thu Nov 30, 2023 12:57 pm, edited 2 times in total.

Post Reply