STM32

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

STM32

Post by volodymyr0604 »

Hello, Benj.
I found the problem after compiling. When simulation works ok
STM32F051 in the function of Decisión (IF-TRUE, FALSE), this function works vice versa
Volodymyr

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32

Post by LeighM »

Could you post your Flowcode project, or an example of what you are doing?
Thanks

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: STM32

Post by volodymyr0604 »

Reads the code 0x29(Chip Font), should exit, but continues reading
Attachments
Snap3.png
(50.67 KiB) Downloaded 3155 times
Snap2.png
(57.37 KiB) Downloaded 3155 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32

Post by LeighM »

Hi,
Just a few ideas...
Is font_id a byte variable?
Is it possible to print out the font_id value, to see what the SPI thinks it received?
Could there be a problem with the SPI mode setting?
Any other reasons in the program flow that might cause the continuation of reading?
It's difficult to offer any more suggestions based on just partial program images, but hope that helps.
Leigh

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: STM32

Post by volodymyr0604 »

Hi.
I sent pictures three months ago with this problem.
Tried on SТМ32F051 and SТМ32F407, at simulation works correctly.
I inverted the (if false/true) after compilation it works correctly, it works equally false = true, true = false.
Tried with DSlog Pro on the CPU conclusions. The other subprograms are the same
problem.
Volodymyr.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32

Post by LeighM »

Ah, right, I wonder if this is a language related problem then

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: STM32

Post by Steve »

Hi Volodymyr,

Could you please post your FCFX Flowcode file and the C code file that is generated. This should help us see the cause of the problem.

Regards,
Steve.

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: STM32

Post by volodymyr0604 »

Hi LeighM.
Thanks for the advice, I found a problem.
Did reading and outputting SPI data.
There are 2 buffers on my board for SPI to separate devices, MISO SPI did not correctly read the data
and therefore other subprograms did not work correctly.
I connected it directly to the MISO SPI, now everything is working correctly even at 10 Mbits.
I continue to experiment.
Volodymyr.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32

Post by LeighM »

Glad to hear you have it working, thanks for letting us know

Post Reply