]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
flash/nor/rp2xxx: fix endianness error
authorTomas Vanek <vanekt@fbl.cz>
Fri, 16 Aug 2024 21:35:06 +0000 (23:35 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Fri, 25 Apr 2025 09:45:06 +0000 (09:45 +0000)
commitf039fe7f9d1ecfc1ca25574d5527c35db119e77b
treed9a6f59f6a7c52e803a22b49acdbb5c1d4e4d09d
parenta9608871692be6cda4d73ae837b4313747370ff8
flash/nor/rp2xxx: fix endianness error

struct rp2xxx_rom_call_batch_record consists of uint32_t in the host
endianness. Therefore it should be converted to the target endianness
not just simply copied by target_write_buffer().

Concatenate algo code, converted batch records and terminator
to the host resident buffer and copy it at once to the target and
save some adapter turnaround times.

While on it remove typedef rp2xxx_rom_call_batch_record_t

Change-Id: I0e698396003869bee5dde4141d48ddd7d62b3cbc
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/8460
Reviewed-by: Jonathan Bell <jonathan@raspberrypi.com>
Tested-by: jenkins
src/flash/nor/rp2xxx.c