Hi I trying to implement PPP using LWIP over new keil 5.1 so on manage run time environment it force me to select uart_driver from cmsis rtos drivers but there is no access to uart_writedata and read data those implemented static in UART_STM32F10x.c and interrupt is also implemented on UART_STM32F10x.c so is anyone can help me to fix this to write my own standard modem file to start LWIP The problem is how to access uart using RTE drivers
As matter of fact I have problem with LCP section on my TCPNET and as far as I understand LCP sections are in .lib files so user cannot change it directly so I plan to move on LWIP bur PPP require a Standard modem file to dial then LWIP handle the LCP and other sections but I have problem to send data or receive data from USART (Modem is a GSM/GPRS modem I try noeway590e/660 sim900 a teilte modem and wavecom modem but same problem just after authentication connection failed (I use logic analyzer to find that out)) And still have problem on TCPNET I mean.
Is anyone have any Idea to help with that may help to fix sending/receiving data trough UARTs so I can try the LWIP PPP Plz help
Finally somehow it thinks that I figure it out me config the usart1 on rte_device then do extern ARM_DRIVER_UART Driver_UART1; it seems to define this in UART_STM32F10x.c as structure something like a object then I do some configs like this and It seems working at least kinda before main extern ARM_DRIVER_UART Driver_UART1; in main Driver_UART1.Initialize(NULL, 0); Driver_UART1.PowerControl(ARM_POWER_FULL); Driver_UART1.Configure(9600, 8, ARM_UART_PARITY_NONE, ARM_UART_STOP_BITS_1, ARM_UART_FLOW_CONTROL_NONE); In my loop Driver_UART1.WriteData("TEST",4); AND IST WORKING! Is it right way to use UART RTE drive and how to receive data and is there any document? But still if anyone can help me with receiving data and implementing the PPP for LWIP I would appreciate that Thanks
any hope any one can help me?! ARM_UART_EVENT_TX_DONE not work at least as far as hardware flow control is disabled is it right?!
any Idea?!
It's not right way to use UART with PPP stack, you should use function in standard modem file to send and receive data to/from UART, TCPNet library will auto init UART for you when you config it like PPP UART port.
LWIP has PPP but it say you must implement your standard modem Dial and Send and Receive function as far as I know it is CMSIS OS that have standard modem and you can select USART and it handle it or am I wrong?! tnx man for reply atleast
The ST uart driver file UART_STM32F10X.c has a bug in V1.0.5,may read data lost.i was fixed it