1.i can run the shell with usb,but how to use shell with uart?
2.when i use chprintf like this chprintf((BaseSequentialStream *)&UARTD2,"hello!"); it doesn't work,and sometimes chprintf((BaseSequentialStream *)&USBD1,"hello!"); also doesn't work. are there have any documentation to learn about :how to use chprintf , shell?
qusetion about uart and shell
Moderators: RoccoMarco, barthess
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: qusetion about uart and shell
Hi,
The shell and chprintf() can be used on any object implementing a stream interface, the UART driver does not implement such interface, you need to use the serial driver for this.
Giovanni
The shell and chprintf() can be used on any object implementing a stream interface, the UART driver does not implement such interface, you need to use the serial driver for this.
Giovanni
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: qusetion about uart and shell
There is no specific documentation, you can generate it using doxygen on source files but it is exactly what you can see in the source comments.
There are lots of examples in demos and test applications.
Giovanni
There are lots of examples in demos and test applications.
Giovanni
Who is online
Users browsing this forum: Bing [Bot] and 46 guests