Skip to content

Commit af61802

Browse files
committed
Merge branch 'master' into fixed-pid-tool-tests
2 parents 0141831 + 3eee389 commit af61802

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
# Changelog
88

9+
## [1.16.4] - 16-05-2026
10+
11+
### Fixed
12+
13+
- Reverted PendSV task on RP2040 since this caused the MCU to freeze (#963)
14+
915
## [1.16.3] - 13-05-2026
1016

1117
### Added

uCNC/src/cnc_build.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern "C"
2525
#endif
2626

2727
#define CNC_MAJOR_MINOR_VERSION "1.16"
28-
#define CNC_PATCH_VERSION ".3"
28+
#define CNC_PATCH_VERSION ".4"
2929

3030
#define CNC_VERSION CNC_MAJOR_MINOR_VERSION CNC_PATCH_VERSION
3131

uCNC/src/hal/mcus/rp2040/mcu_rp2040.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ static void mcu_clear_servos(void)
231231

232232
static rp2040_alarm_t rtc_alarm;
233233

234-
void PendSV_Handler(void)
235-
{
236-
mcu_rtc_cb(mcu_millis());
237-
NVIC_ClearPendingIRQ(PendSV_IRQn);
238-
}
234+
// void PendSV_Handler(void)
235+
// {
236+
// mcu_rtc_cb(mcu_millis());
237+
// NVIC_ClearPendingIRQ(PendSV_IRQn);
238+
// }
239239

240240
void mcu_rtc_isr(void)
241241
{
@@ -291,7 +291,8 @@ void mcu_rtc_isr(void)
291291
ms_servo_counter = (servo_counter != 20) ? servo_counter : 0;
292292

293293
#endif
294-
SCB->ICSR = SCB_ICSR_PENDSVSET_Msk; // signal low priority task
294+
// SCB->ICSR = SCB_ICSR_PENDSVSET_Msk; // signal low priority task
295+
mcu_rtc_cb(mcu_millis());
295296
}
296297

297298
/**
@@ -336,7 +337,7 @@ void mcu_init(void)
336337
// init rtc, oneshot and servo alarms
337338
mcu_alarms_init();
338339
rtc_alarm.alarm_cb = &mcu_rtc_isr;
339-
NVIC_SetPriority(PendSV_IRQn, 0xFF); // background task
340+
// NVIC_SetPriority(PendSV_IRQn, 0xFF); // background task
340341
mcu_enqueue_alarm(&rtc_alarm, 1000UL);
341342

342343
#if SERVOS_MASK > 0

0 commit comments

Comments
 (0)