From 633662dbb31e1f6f7345666826a0a433c6434157 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Fri, 21 Apr 2017 11:05:07 +1200 Subject: [PATCH] Hold TMS high during reset. This is a questionable fix for the Kinetis K22F that samples this pin on release from reset to enable its EzPort which makes the flash unusable and disables the rest of the micro. --- src/platforms/native/platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platforms/native/platform.c b/src/platforms/native/platform.c index 8c8d777..d768661 100644 --- a/src/platforms/native/platform.c +++ b/src/platforms/native/platform.c @@ -176,6 +176,7 @@ void platform_init(void) void platform_srst_set_val(bool assert) { + gpio_set_val(TMS_PORT, TMS_PIN, 1); if ((platform_hwversion() == 0) || (platform_hwversion() >= 3)) { gpio_set_val(SRST_PORT, SRST_PIN, assert);