-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the stm32l discovery board #5
Comments
Unless you have a pretty good idea already how this works, you'd be better On Wednesday, December 10, 2014, Nikolay Kuchumov notifications@github.com
|
ok, thanks, I'll order one from digikey |
Hello Geoffrey. |
When you stop the GDB session, what happens if you push the reset button on
Geoffrey On Sun, May 29, 2016 at 8:54 AM, Nikolay notifications@github.com wrote:
|
Wow, really, the black RESET button does the trick and the program is running again. |
Oh, by the way, I downloaded your book on the internets somewhere. |
No need for payment -- I intended it to be free. Make sure you have the http://www.cs.indiana.edu/~geobrown/book.pdf Geoffrey On Sun, May 29, 2016 at 9:08 AM, Nikolay notifications@github.com wrote:
|
Hello Geoffrey, I found a small typo in your book on page 80:
It should be |
Thank you ! It's always the bits that aren't directly input from the code Geoffrey On Sun, Jun 5, 2016 at 3:33 PM, Nikolay notifications@github.com wrote:
|
I tried to do the exercise 5.3 Echo but I don't understand how to write to the USB UART.
|
In unix like systems, tty's are a bit problematical. You could open the Geoffrey int fd = open(argv[1], O_RDWR | O_NDELAY | O_NOCTTY); if (fd == -1){
if (fcntl(fd, F_SETFL, 0) < 0) {
struct termios config, orig_config; if (tcgetattr(fd, &config) < 0) {
cfmakeraw(&config); config.c_cc[VMIN] = 1; config.c_cc[VTIME] = 10; config.c_cflag |= CLOCAL | CREAD; if (tcsetattr(fd, TCSANOW, &config) < 0) {
On Sun, Jun 5, 2016 at 6:25 PM, Nikolay notifications@github.com wrote:
|
Ok, thanks for the tip. http://stackoverflow.com/questions/18821811/serial-port-hangs
Anyway, I found a hacky solution which let me finish the exercise
(just in case anyone comes here resolving the same issues which is unlikely) |
Thanks, that's a new approach for me. Geoffrey On Sun, Jun 5, 2016 at 7:40 PM, Nikolay notifications@github.com wrote:
|
Hello.
I didn't find a "send a message" button so I'm creating an "issue".
I'm currently studying your STM32 book and bought (a while ago) an stm32ldiscovery board as opposed to stm32vldiscovery board.
What do you think should I do: will it be better for me to try to adopt your template for my stm32l microprocessor or should I order an stm32vldiscovery?
The text was updated successfully, but these errors were encountered: