File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -231,11 +231,11 @@ static void mcu_clear_servos(void)
231231
232232static 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
240240void 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
You can’t perform that action at this time.
0 commit comments