Skip to content

Commit a69cf7d

Browse files
dchat-nordicrlubos
authored andcommitted
samples: esb: Add note and check about HMPAN-84
Add check if to apply HMPAN-84. Add note about HMPAN-84 to esb samples. Jira: NCSDK-36550 Signed-off-by: Dominik Chat <[email protected]> (cherry picked from commit 78238e5)
1 parent d0c686d commit a69cf7d

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

samples/esb/esb_monitor/src/main.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,11 @@ int clocks_start(void)
183183
}
184184
} while (err == -EAGAIN);
185185

186-
nrf_lrcconf_clock_always_run_force_set(NRF_LRCCONF000, 0, true);
187-
nrf_lrcconf_task_trigger(NRF_LRCCONF000, NRF_LRCCONF_TASK_CLKSTART_0);
186+
/* HMPAN-84 */
187+
if (nrf54h_errata_84()) {
188+
nrf_lrcconf_clock_always_run_force_set(NRF_LRCCONF000, 0, true);
189+
nrf_lrcconf_task_trigger(NRF_LRCCONF000, NRF_LRCCONF_TASK_CLKSTART_0);
190+
}
188191

189192
LOG_DBG("HF clock started");
190193

samples/esb/esb_prx/src/main.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,11 @@ int clocks_start(void)
144144
}
145145
} while (err == -EAGAIN);
146146

147-
nrf_lrcconf_clock_always_run_force_set(NRF_LRCCONF000, 0, true);
148-
nrf_lrcconf_task_trigger(NRF_LRCCONF000, NRF_LRCCONF_TASK_CLKSTART_0);
147+
/* HMPAN-84 */
148+
if (nrf54h_errata_84()) {
149+
nrf_lrcconf_clock_always_run_force_set(NRF_LRCCONF000, 0, true);
150+
nrf_lrcconf_task_trigger(NRF_LRCCONF000, NRF_LRCCONF_TASK_CLKSTART_0);
151+
}
149152

150153
LOG_DBG("HF clock started");
151154

samples/esb/esb_ptx/src/main.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,11 @@ int clocks_start(void)
134134
}
135135
} while (err == -EAGAIN);
136136

137-
nrf_lrcconf_clock_always_run_force_set(NRF_LRCCONF000, 0, true);
138-
nrf_lrcconf_task_trigger(NRF_LRCCONF000, NRF_LRCCONF_TASK_CLKSTART_0);
137+
/* HMPAN-84 */
138+
if (nrf54h_errata_84()) {
139+
nrf_lrcconf_clock_always_run_force_set(NRF_LRCCONF000, 0, true);
140+
nrf_lrcconf_task_trigger(NRF_LRCCONF000, NRF_LRCCONF_TASK_CLKSTART_0);
141+
}
139142

140143
LOG_DBG("HF clock started");
141144
return 0;

0 commit comments

Comments
 (0)