Skip to content

Commit

Permalink
Allow AP address to be in hex
Browse files Browse the repository at this point in the history
The previous implementation failed to parse this:

      <accessportV2 __apid="0" address="0xF0000000" />
      <accessportV2 __apid="1" address="0xF0002000" />
  • Loading branch information
jnkr-ifx committed Feb 20, 2025
1 parent 4b8312b commit f1cadeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/cmsis-pack/src/pdsc/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ impl DebugBuilder {
),
"accessportV2" => (
attr_parse(ap, "__dp").ok(),
attr_parse(ap, "address").ok().map(AccessPort::Address),
attr_parse_hex(ap, "address").ok().map(AccessPort::Address),
),
_ => unreachable!(),
}
Expand Down

0 comments on commit f1cadeb

Please sign in to comment.