Skip to content

Commit f0d7945

Browse files
vishwamarturActoryOuaggargkar-rahul-aws
authored
Fix SMP debugging issue on rp2040 (FreeRTOS#1174)
* Fix SMP debugging issue on rp2040 Related to FreeRTOS#1172 Add `multicore_reset_core1` before `multicore_launch_core1` in `xPortStartScheduler` function to fix debugging issue on rp2040 with SMP enabled. * Modify `portable/ThirdParty/GCC/RP2040/port.c` to include a call to `multicore_reset_core1` before `multicore_launch_core1` within the `#if portRUNNING_ON_BOTH_CORES` block. * Recover comments back --------- Co-authored-by: ActoryOu <jay2002824@gmail.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
1 parent b4a9707 commit f0d7945

File tree

1 file changed

+1
-0
lines changed
  • portable/ThirdParty/GCC/RP2040

1 file changed

+1
-0
lines changed

portable/ThirdParty/GCC/RP2040/port.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ void vPortStartFirstTask( void )
378378
#if portRUNNING_ON_BOTH_CORES
379379
ucPrimaryCoreNum = configTICK_CORE;
380380
configASSERT( get_core_num() == 0 ); /* we must be started on core 0 */
381+
multicore_reset_core1();
381382
multicore_launch_core1( prvDisableInterruptsAndPortStartSchedulerOnCore );
382383
#else
383384
ucPrimaryCoreNum = get_core_num();

0 commit comments

Comments
 (0)