Search found 318 matches

by danieleff
Sat Aug 19, 2017 6:05 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 62
Views: 1047

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 52 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: 128

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

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: 62
Views: 1047

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: 62
Views: 1047

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: 62
Views: 1047

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

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

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)...
by danieleff
Tue Aug 15, 2017 5:38 pm
Forum: STM32generic
Topic: [STM32GENERIC] F746 Discovery
Replies: 68
Views: 1381

Re: [STM32GENERIC] F746 Discovery

I just realized the tft buffer malloc should be * 2, because 1 pixel is 2 bytes.

But the code actually sometimes works (prints users online to display), sometimes fails to client.connect("www.stm32duino.com", 80)
by danieleff
Tue Aug 15, 2017 6:21 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 62
Views: 1047

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

Have anyone actually tried to just up the timeout from milliseconds to seconds? replace the SerialUSB code with the one from STM SerialUSB sits on top of the whole STM code. And STM CDC code does not have buffered writes (CDC_Transmit_FS() sends immediately, which was the initial problem), which is ...