This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UART and RTE driver Problem for LWIP

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

Parents
  • 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

Reply
  • 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

Children