Search found 1467 matches

by victor_pv
Sat Aug 19, 2017 1:18 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 48
Views: 791

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: 48
Views: 791

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: 48
Views: 791

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: 176

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: 48
Views: 791

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: 176

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: 176

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...
by victor_pv
Fri Aug 18, 2017 6:00 pm
Forum: General discussion
Topic: Proposal for moderators to rename threads etc
Replies: 8
Views: 133

Re: Proposal for moderators to rename threads etc

Love the idea. Reminds of a VLAN at work for old servers we call Boneyard...
by victor_pv
Fri Aug 18, 2017 5:55 pm
Forum: STM32F4 Boards
Topic: [SOLVED] [libmaple F4] Very large sketch size when using malloc()
Replies: 16
Views: 176

Re: [libmaple F4] Very large sketch size when using malloc(), perhaps only in sloeber, need help with Arduino IDE test

Rick, probably we should add it to the F1 too.
I'll add the functions to the F1 and F4 new.cpp files and send PRs.

EDIT:
And just guessing in the example above, this:
dumppter;
should actually be:
dump_ptr;
by victor_pv
Fri Aug 18, 2017 2:18 pm
Forum: STM32F4 Boards
Topic: [SOLVED] [libmaple F4] Very large sketch size when using malloc()
Replies: 16
Views: 176

Re: [libmaple F4] Very large sketch size when using malloc(), perhaps only in sloeber, need help with Arduino IDE test

I did some more testing. Commenting out the new() call, brings the sketch size to 12KB //dumb = new dumbclass; The line with malloc() does not have a significant impact, this one: buffer = (char *)malloc(1024); When checking the .map file I see new is being pulled from stdc++, so that's what's pulli...