japaric / f3

Board Support Crate for the STM32F3DISCOVERY
Apache License 2.0
95 stars 35 forks source link

ITM/`iprint` send data in 32-bit chunks #9

Closed japaric closed 7 years ago

japaric commented 8 years ago

Be careful with alignment.

japaric commented 8 years ago

Note to self: benchmark this with the time module

jcsoo commented 8 years ago

Have you noticed any problems losing output when sending data quickly? I'm running the same code on the F4 and sometimes lose characters.

I have a feeling that it may be dropping it on the ST-Link side, unfortunately.

japaric commented 8 years ago

Have you noticed any problems losing output when sending data quickly?

Not yet but I haven't tried high throughput either.

I wouldn't expect it to lose data though. The iprintln has a busy wait loop in it to prevent queuing more data if the bus is already busy. I'd expect that to "throttle" the data rate.

I have a feeling that it may be dropping it on the ST-Link side, unfortunately.

FWIW, the ST-LINK is an STM32F1 device and I doubt it's clocked at a high frequency.

japaric commented 7 years ago

Done in cortex-m some time ago.