File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1366,7 +1366,11 @@ static int freertos_post_reset_cleanup(struct target *target)
1366
1366
struct freertos_data * rtos_data =
1367
1367
(struct freertos_data * )target -> rtos -> rtos_specific_params ;
1368
1368
1369
- if ((target -> rtos -> symbols != NULL ) &&
1369
+ // TODO: refactor and test here for the SMP riscv targets. Do we still need to clear target memory?
1370
+ if (!strcmp (target_type_name (target ), "esp32p4" )) {
1371
+ rtos_free_threadlist (target -> rtos );
1372
+ // writing esp32p4 memory causes a reset issue. OCD-989
1373
+ } else if (target -> rtos -> symbols &&
1370
1374
(target -> rtos -> symbols [FREERTOS_VAL_UX_CURRENT_NUMBER_OF_TASKS ].address != 0 )) {
1371
1375
int ret = target_buffer_write_uint (target ,
1372
1376
target -> rtos -> symbols [FREERTOS_VAL_UX_CURRENT_NUMBER_OF_TASKS ].address ,
You can’t perform that action at this time.
0 commit comments