Skip to content

Commit d745d64

Browse files
authored
Apply errata E10 fix to erase command (#279)
1 parent 4342402 commit d745d64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4686,6 +4686,10 @@ bool erase_command::execute(device_map &devices) {
46864686
auto con = get_single_bootsel_device_connection(devices);
46874687
picoboot_memory_access raw_access(con);
46884688

4689+
// Errata RP2350-E10 fix
4690+
auto model = raw_access.get_model();
4691+
if (model->chip_revision() == rp2350_a2) con.exit_xip();
4692+
46894693
uint32_t end = 0;
46904694
uint32_t binary_end = 0;
46914695
binary_info_header hdr;
@@ -4730,7 +4734,6 @@ bool erase_command::execute(device_map &devices) {
47304734
}
47314735
}
47324736

4733-
model_t model = raw_access.get_model();
47344737
enum memory_type t1 = get_memory_type(start , model);
47354738
enum memory_type t2 = get_memory_type(end, model);
47364739
if (t1 != flash || t1 != t2) {

0 commit comments

Comments
 (0)