Skip to content

Commit

Permalink
Merge branch 'bugfix/systick_loop' into 'master'
Browse files Browse the repository at this point in the history
freertos: Fix Systick stuck when systimer was not reset

Closes WIFI-6052

See merge request espressif/esp-idf!24306
  • Loading branch information
KonstantinKondrashov committed Jun 21, 2023
2 parents d2fb724 + 42fa005 commit f29cff3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/freertos/port_systick.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ void vSystimerSetup(void)
systimer_ll_apply_counter_value(systimer_hal.dev, SYSTIMER_COUNTER_OS_TICK);

for (cpuid = 0; cpuid < SOC_CPU_CORES_NUM; cpuid++) {
// Set stall option and alarm mode to default state. Below they will be set to a required state.
systimer_hal_counter_can_stall_by_cpu(&systimer_hal, SYSTIMER_COUNTER_OS_TICK, cpuid, false);
uint32_t alarm_id = SYSTIMER_ALARM_OS_TICK_CORE0 + cpuid;
systimer_hal_select_alarm_mode(&systimer_hal, alarm_id, SYSTIMER_ALARM_MODE_ONESHOT);
}

for (cpuid = 0; cpuid < portNUM_PROCESSORS; ++cpuid) {
Expand Down

0 comments on commit f29cff3

Please sign in to comment.