Hi Mocambo,
REDIRECT 1 is a conditional compilation switch that requires you to write your own code to send/receive USB data to/from UART1 instead of reporting the USB test data sent/received on the primer display. REDIRECT 1 behaves like ST virtual COM project for the STM3210B. http://www.st.com/stonline/products/sup … um0424.zip
REDIRECT 0 //USB <--> DISPLAY (default)
REDIRECT 1 //USB <--> UART (requires RS232 hardware and more software like ST example)
My Primer has been modified with a RS232 level shifter chip on UART1, one day I may issue a new tested version of PrimerVirtualCOM that works with REDIRECT 1. This code was not included because it was assumed few people would be interested in modifying the hardware.
Incidentally, the reason why we set a baud rate at all is so that when REDIRECT is 1 we have a baud for the UART. However limiting the usb data rate is also helpful when the PC-ware that talks to the virtual com port may have trouble keeping up.
'Stewee'
Last edited by Stewee (2008-05-02 23:22:42)