Skip to content

Commit

Permalink
cortexar: Check the result of cortexar_ensure_core_powered
Browse files Browse the repository at this point in the history
Signed-off-by: Mary Guillemard <mary@mary.zone>
  • Loading branch information
marysaka committed Nov 1, 2024
1 parent 9b68194 commit 580171f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/target/cortexar.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,8 @@ static target_s *cortexar_probe(
target->halt_resume = cortexar_halt_resume;

/* Ensure the core is powered up and we can talk to it */
cortexar_ensure_core_powered(target);
if (cortexar_ensure_core_powered(target))
return false;

/* Try to halt the target core */
target_halt_request(target);
Expand Down

0 comments on commit 580171f

Please sign in to comment.