Search found 320 matches

by danieleff
Wed Aug 23, 2017 4:39 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1212

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

Libmaple F1, bufsize 64 in sketch, logged 1.280.000 bytes -> OK. My problem is that I do get losses with libmaple maple mini TeraTerm (4.95 (SVN# 6761) May 31 2017 20:25:51) (Win10, usbser.sys 10.0.14393.0). Data received in log file from 1272912 to 1279552. Edit: If I run other CPU intensive progr...
by danieleff
Wed Aug 23, 2017 3:22 pm
Forum: STM32generic
Topic: [STM32GENERIC] USB HOST - KEYBOARD INTERFACE STM32F407
Replies: 4
Views: 70

Re: [STM32GENERIC] USB HOST - KEYBOARD INTERFACE STM32F407

Sorry but there is currently no USB keyboard functionality in STM32GENERIC. If anyone cares to implement: The ST low level code has to be put into STM32\cores\arduino\usb\hid from <download ST firmware>\Middlewares\ST\STM32_USB_Device_Library\Class\HID Add descriptors to usbd_desc.c Change usbd_conf...
by danieleff
Sat Aug 19, 2017 6:05 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1212

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

Libmaple latest from repo, Maple Mini, TeraTerm log, test code from first post (GCC 6-2017-q1-update), the USB seems to drop data (All ***'s should be on same column):
teraterm3.png
teraterm3.png (48.29 KiB) Viewed 60 times
by danieleff
Sat Aug 19, 2017 3:43 am
Forum: IDE's
Topic: [SOLVED] How to use libraries (EEPROM.h) with Sloeber
Replies: 8
Views: 137

Re: How to use libraries (EEPROM.h) with Sloeber

vitor_boss wrote:
Fri Aug 18, 2017 9:27 pm
I have wrote library path on Includes section, after indexing project again it worked

Project Settings->C/C++ General->Paths and Symbols->Include->Add....
Thank you for the help
By the way there is an "Arduino/Add library to selected project" menu option.
by danieleff
Fri Aug 18, 2017 4:47 pm
Forum: STM32generic
Topic: [STM32GENERIC] F746 Discovery
Replies: 68
Views: 1390

Re: [STM32GENERIC] F746 Discovery

I am having trouble downloading large files. After a few KB it just stops. I can fix by disabling heap in external ram (by commenting out `setHeap` in variant.cpp) So I guess there is some problem with it (but the display uses it, internal ram is not enough). The external ram setup is in STM32\syste...
by danieleff
Fri Aug 18, 2017 5:09 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1212

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

This is not about the TX buffer. The following code bypasses the whole SerialUSB class, no Serial.xxx call at all: #include "Arduino.h" char buffer[200]; #define TX 1000 void setup() { Serial.begin(115200); delay(3000); memset(buffer, '.', sizeof(buffer)); for(int i=0; i<sizeof(buffer) / 10; i++) { ...
by danieleff
Thu Aug 17, 2017 6:06 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1212

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

The following code: // USBSERIAL TX PROBLEM DEMONSTRATION // Pito 7/2017 #include "Arduino.h" void setup() { Serial.begin(115200); delay(3000); } #define TXCHARS 1000000 void loop() { uint32_t i; uint32_t elapsed = micros(); for (i = 0; i < TXCHARS; i++) { Serial.write('0' + (i % 10)); } elapsed = m...
by danieleff
Thu Aug 17, 2017 7:33 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1212

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

Everyone in this thread, can we first agree what's the desirable behavior for USB TX and RX in case the buffers fill? My preference: For TX, should return right away and the return value indicate how many bytes it could queue. If 0 bytes, then return 0. For X bytes, return X. (so this invoves takin...
by danieleff
Wed Aug 16, 2017 7:43 pm
Forum: IDE's
Topic: SOLVED: [SLOEBER] program crashes
Replies: 84
Views: 972

Re: Libmaple problem, program crashes with call to malloc.

The problem is the malloc, which crashes even without the KNX library, in a fresh, clean repository without me even adding the KNX library. The KNX library works nice when I compile with the Arduino IDE. Have you read my post? http://stm32duino.com/viewtopic.php?f=41&t=2434&start=50#p33027 I guess ...
by danieleff
Wed Aug 16, 2017 6:59 pm
Forum: IDE's
Topic: SOLVED: [SLOEBER] program crashes
Replies: 84
Views: 972

Re: Libmaple problem, program crashes with call to malloc.

In Eclipse the syscalls.c seems to be not compiled in. If I force it: extern "C" void *_sbrk(int incr); void setup() { _sbrk(0); // If I comment this out, no blinking Serial.begin(115200); pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)); delay(1000)...