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
STM32
Moderator: Benj
-
- Posts: 47
- Joined: Sun Apr 05, 2009 2:39 pm
- Been thanked: 1 time
- Contact:
-
- Posts: 47
- Joined: Sun Apr 05, 2009 2:39 pm
- Been thanked: 1 time
- Contact:
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: STM32
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
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
-
- Posts: 47
- Joined: Sun Apr 05, 2009 2:39 pm
- Been thanked: 1 time
- Contact:
Re: STM32
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.
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.
-
- Posts: 47
- Joined: Sun Apr 05, 2009 2:39 pm
- Been thanked: 1 time
- Contact:
Re: STM32
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.
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.