Search found 1394 matches

by Pito
Wed Aug 23, 2017 5:10 pm
Forum: STM32F103 Boards
Topic: AttachInterrupt for STM32F103
Replies: 11
Views: 5143

Re: AttachInterrupt for STM32F103

How did you measure the 5-10us interrupt latency?
by Pito
Wed Aug 23, 2017 8:03 am
Forum: Black Magic Probe & other
Topic: J-Link EDU Mini $18
Replies: 12
Views: 141

Re: J-Link EDU Mini $18

@pito Have you tried it ? I tested this on 2 different types of "dongle" and it would not install on either @Roger: As I wrote above you need a small fw mod, but no idea how to do it.. http://www.stm32duino.com/viewtopic.php?f=3&t=1448#p18757 UPDATE: tried here (for my educational purpose only) and...
by Pito
Wed Aug 23, 2017 6:39 am
Forum: Black Magic Probe & other
Topic: J-Link EDU Mini $18
Replies: 12
Views: 141

Re: J-Link EDU Mini $18

Segger offers ST-Link conversion to J-Link since spring '16..
Works with ST-Link clones (dongles) too (a tiny sw mod is needed afaik).
Has been tested by someone here and it works..
https://www.segger.com/products/debug-p ... -on-board/
by Pito
Tue Aug 22, 2017 4:48 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1222

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

Because of 3secs between the packets when the bufsize in the sketch is 256bytes (or 512, 1024 etc).. That is even visible in TT as the 4kB chunks always nap for 3secs.. Another test - counting bytes - logged into TT file. To make it simple I've TXed 1.280.000 bytes #define bufsize 64 #define TXCHARS...
by Pito
Tue Aug 22, 2017 1:52 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1222

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

Problem: STM32Generic with CDC_BUF 128, and bufsize = 256 (speed ???) 3seconds between packets STM32Generic CDC_BUFF 128 bufsize 256.JPG And STM32Generic with CDC_BUF 4096, and bufsize = 64 (speed 420kB/sec) STM32Generic CDC_BUFF 4096 and bufsize 64.JPG STM32Generic with CDC_BUF 4096, and bufsize = ...
by Pito
Tue Aug 22, 2017 1:19 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1222

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

This is with MMini, Libmaple F1, with this vitor_boss' mod of my sketch (Serial.write(buf..): void loop() { uint32_t i; uint8_t x = 85; uint32_t elapsed = micros(); uint8_t buf[bufsize]; for (i = 0; i < bufsize; i++) { buf[i] = x; } elapsed = micros(); for (i = 0; i < TXCHARS; i+=bufsize) { Serial.w...
by Pito
Tue Aug 22, 2017 9:08 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1222

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

@Rick: I tried with HyperTerminal (the same result - see above) and with minicom (ubuntu in virtualbox). With minicom I did not make any captures. @Victor: the "4096b buffer" could be some misinterpretation of data by the USBlyzer, or handshake.. UPDATE: it seems the usbser.sys requests 4kB bulk IN....
by Pito
Mon Aug 21, 2017 6:24 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1222

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

FYI - this is how the "USBlyzer" (not free, 33d eval) shows the transfer between MMini and TeraTerm (Libmaple F1). The USBlyzer provides huge amount of info, so I had to cut off a small chunk only - which fits as the attachment. You may see the payload UUUU data are fragmented into 1-16/414-426bytes...
by Pito
Mon Aug 21, 2017 9:43 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1222

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

The Serial.something comes historically from RS232-like serial UART communication, where the handshaking with the Host is managed by RTS/CTS, DTR/DSR etc., or via XON/XOFF, or done at application level via XYZMODEM/KERMIT etc. Without such handshaking it could come to data loss with RX/TX. But that ...
by Pito
Sun Aug 20, 2017 10:47 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 69
Views: 1222

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

From user's point of view I do not see any buffers (the internal one in the stm core or in the Host) and I "do not care about what buffers are inside the black box(es)". I have the Host, which can be unable to receive fast (for any reason). I do Serial.something (1byte or 1kB or 1MB) from my sketch....