jlink: Use correct SWD buffer size 78/4878/2
authorMarc Schink <openocd-dev@marcschink.de>
Tue, 29 Jan 2019 08:23:09 +0000 (09:23 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 7 Feb 2019 19:32:41 +0000 (19:32 +0000)
commit6c2020eb48803b941a94d600e2a96728d05a7da9
treeef55ea52416ffa24e075588507850d0da00aa0a5
parentd869c5d3d706f2dfe6aa291cac52a32df8cba9ae
jlink: Use correct SWD buffer size

Currently, the SWD buffer size is adjusted corresponding to the free
device memory. However, the adjusted size is not used.

This fixes SWD operations on devices with small device memory, such as
EFM32PG12 Pearl Gecko STK. It should also fix #184.

Change-Id: I2ec5cf25c62f18bd9e99a2f4aa1aa8d85ed0821b
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/4878
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Tested-by: jenkins
src/jtag/drivers/jlink.c