Search found 1470 matches

by victor_pv
Sat Aug 19, 2017 7:20 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 56
Views: 929

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

TX: What if the Serial.write (and friends) will check whether the Host is NAKing, and it timeouts while returning 0 ?? You mean without buffering even if there is capacity in the buffer? So the TX code currently is supposed to wait for NAK before pulling more data from the TX buffer and sending it....
by victor_pv
Sat Aug 19, 2017 5:58 pm
Forum: STM32F4 Boards
Topic: What happened to gpio_write_bit and others?
Replies: 7
Views: 165

Re: What happened to gpio_write_bit and others?

Originally, the pin map already included the ordered pins from PA0 till PG15, so I though the bit information is superfluous. Then I added the pin map to the FLASH and I think it made a difference on the size whether this bit info was included or not in the pin map table. May have bene due to aligm...
by victor_pv
Sat Aug 19, 2017 2:59 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 56
Views: 929

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Guys, with all the cores currently there is a TX timeout, if the host is not pulling packets as fast as the MCU can send them, there will be loses since the timeout will expire and the TX function will return before it sent everything. That's one of the reasons I modified Pito test sketch to send bl...
by victor_pv
Sat Aug 19, 2017 1:18 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 56
Views: 929

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Libmaple has code that checks one of the handshaking signals (DTR I think), and if it can't send data to the host, then the code "blocks" in the write() function It has been noted that this differs from the Due which don't seem to check if the Host is ready for the data Roger, I looked a lot at the...
by victor_pv
Sat Aug 19, 2017 1:09 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 56
Views: 929

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

@Pito, I pretty much agree with you on that theory.
by victor_pv
Fri Aug 18, 2017 10:44 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 56
Views: 929

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Yes, but keep reading: http://www.beyondlogic.org/usbnutshell/usb4.shtml#Isochronous OUT: When the host wants to send the function a bulk data packet, it issues an OUT token followed by a data packet containing the bulk data. If any part of the OUT token or data packet is corrupt then the function i...
by victor_pv
Fri Aug 18, 2017 8:59 pm
Forum: STM32F4 Boards
Topic: [SOLVED] [libmaple F4] Very large sketch size when using malloc()
Replies: 16
Views: 191

Re: [SOLVED] [libmaple F4] Very large sketch size when using malloc()

I've got Effective C++ second edition in a shelf ;) half way thru...
There is a lot of advise about classes, way more than my brain cares to remember...
by victor_pv
Fri Aug 18, 2017 8:50 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 56
Views: 929

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

The problem with blocking TX, is that in a serial port if there is nothing in the other end, there is a finite amount that it will take to send the data and the set baud rate, and then it will return, so it will not block permanently. But in USB, if the other end is not receiving it could block fore...
by victor_pv
Fri Aug 18, 2017 8:36 pm
Forum: STM32F4 Boards
Topic: [SOLVED] [libmaple F4] Very large sketch size when using malloc()
Replies: 16
Views: 191

Re: [SOLVED] [libmaple F4] Very large sketch size when using malloc()

I thought the libstdc++ would have the declaration like it does for other 'new' operators. Surprisingly I see the functions in file "new" within the GCC folders but not even those compiled and gave the error above. Well we will work on that at some point, at the moment I'll send the PR to just add n...
by victor_pv
Fri Aug 18, 2017 6:32 pm
Forum: STM32F4 Boards
Topic: [SOLVED] [libmaple F4] Very large sketch size when using malloc()
Replies: 16
Views: 191

Re: [SOLVED] [libmaple F4] Very large sketch size when using malloc()

Rick, did you test it successfully? I can't use those operators, even with the libstd++ version (remove new.cpp): ..\malloc_test.ino:41:33: error: no matching function for call to 'operator new(sizetype, unsigned int [12])' dumb_ptr = new(memory_buffer) dumbclass; ^ ..\malloc_test.ino:41:33: note: c...