Page 1 of 1
STM32
Posted: Sat Sep 02, 2017 10:02 am
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
Re: STM32
Posted: Sat Sep 02, 2017 2:21 pm
by LeighM
Could you post your Flowcode project, or an example of what you are doing?
Thanks
Re: STM32
Posted: Wed Sep 06, 2017 6:19 pm
by volodymyr0604
Reads the code 0x29(Chip Font), should exit, but continues reading
Re: STM32
Posted: Wed Sep 06, 2017 8:58 pm
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
Re: STM32
Posted: Thu Sep 07, 2017 6:56 pm
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.
Re: STM32
Posted: Thu Sep 07, 2017 10:57 pm
by LeighM
Ah, right, I wonder if this is a language related problem then
Re: STM32
Posted: Fri Sep 08, 2017 9:04 am
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.
Re: STM32
Posted: Tue Sep 19, 2017 6:47 am
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.
Re: STM32
Posted: Tue Sep 19, 2017 8:37 am
by LeighM
Glad to hear you have it working, thanks for letting us know