From 1c7b91aa8cafe9e34e1d4f158ac55d7f2bd68c82 Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Wed, 30 May 2018 14:20:32 +0100 Subject: [PATCH] us_ticker is not yet initialised at this stage --- .../TARGET_LPC176X/TARGET_UBLOX_C027/ublox_low_level_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/ublox_low_level_api.c b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/ublox_low_level_api.c index b033d29e1e..dae2ccfb80 100644 --- a/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/ublox_low_level_api.c +++ b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/ublox_low_level_api.c @@ -42,6 +42,7 @@ void ublox_mdm_init(void) // Can't use wait_ms() as RTOS isn't initialised yet //wait_ms(50); // when USB cable is inserted the interface chip issues // Here's the code from the non-RTOS version + us_ticker_init(); uint32_t start = us_ticker_read(); while ((us_ticker_read() - start) < 50000); }