Can you confirm that this hasn't do anything with it?MJU wrote:I've made the same program in FC V6 and V7.
When I look into the generated C-code I find differences in the generated code.
In the UART stuff I find these differences:
/*========================================================================*\
Use :cal_uart1
:Variabele declaratie
:Macro functie declaraties.
\*========================================================================*/
V7 = #define MX_UART_CTS_PORT_1 portb
V6 = #define MX_UART_CTS_PORT_1 portc
V7 = #define MX_UART_RTS_TRIS_1 trisb
V6 = #define MX_UART_RTS_TRIS_1 trisc
V7 = #define MX_UART_CTS_TRIS_1 trisb
V6 = #define MX_UART_CTS_TRIS_1 trisc
V7 = #define MX_UART_CTS_PIN_1 (3)
V6 = #define MX_UART_CTS_PIN_1 (5)
Maybe this is not the problem, but the fact is that the LCD is connected to the B-port, and the code in the Flowcode 7 some references go to port B makes me wonder.
Could this be something?
Can I edit the V7 C-code in this manner that I can test it? How can I flash the changed C-code to the chip?
I really hope this is the problem, and can be solved.
I've waisted already too much time searching for the solution..
There are in FC7 differences in the way the UART initialisation is done.
Some UART pins point to port B where they should point to port C....