Skip to content
Snippets Groups Projects
Commit 568e8423 authored by Austin Morton's avatar Austin Morton Committed by Freddie Chopin
Browse files

stlink: increase trace buffer size to maximum allowed on st-link v2 firmware


Increasing the trace buffer size on the st-link itself gives openocd a greater
chance of avoiding trace data overflowing within the st-link between polls
when there is a large amount of data being sent over the trace port

The st-link appears to split the given buffer size in half
while one half is awaiting transfer over USB, the other half is being
filled by DMA transfer.  If you do not poll frequently enough, the DMA
transfer will overflow back to the start of its current buffer, resulting in
corrupted output

Buffer size of 4096 bytes is the maximum allowed by the st-link v2

Change-Id: I169189b021c34f8d18de1601d78b8c5890367d68
Signed-off-by: default avatarAustin Morton <austinpmorton@gmail.com>
Reviewed-on: http://openocd.zylin.com/4085


Tested-by: jenkins
Reviewed-by: default avatarTomas Vanek <vanekt@fbl.cz>
Reviewed-by: default avatarFreddie Chopin <freddie.chopin@gmail.com>
parent f605a23b
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment