aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/at91sam4l.c
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-02-14 17:33:28 -0800
committerMatthias Welwarsky <matthias@welwarsky.de>2019-03-08 14:05:35 +0000
commitc3b90c052acfb7e35a0f4ce22276d53a96d631c7 (patch)
tree38d260910f37f2213c6c1e3159dcef342ba25923 /src/flash/nor/at91sam4l.c
parent57e30102ea440d77aa001e26eb901d0cbb305a30 (diff)
downloadriscv-openocd-c3b90c052acfb7e35a0f4ce22276d53a96d631c7.zip
riscv-openocd-c3b90c052acfb7e35a0f4ce22276d53a96d631c7.tar.gz
riscv-openocd-c3b90c052acfb7e35a0f4ce22276d53a96d631c7.tar.bz2
flash/nor: use target_addr_t for flash bank base
This should allow users to configure flash at >32-bit addresses. Change-Id: I7c9d3c5762579011a2d9708e5317e5765349845c Signed-off-by: Tim Newsome <tim@sifive.com> Reviewed-on: http://openocd.zylin.com/4919 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/flash/nor/at91sam4l.c')
-rw-r--r--src/flash/nor/at91sam4l.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flash/nor/at91sam4l.c b/src/flash/nor/at91sam4l.c
index 794ccbb..f3b065f 100644
--- a/src/flash/nor/at91sam4l.c
+++ b/src/flash/nor/at91sam4l.c
@@ -203,7 +203,8 @@ static int sam4l_flash_command(struct target *target, uint8_t cmd, int page)
FLASH_BANK_COMMAND_HANDLER(sam4l_flash_bank_command)
{
if (bank->base != SAM4L_FLASH) {
- LOG_ERROR("Address 0x%08" PRIx32 " invalid bank address (try 0x%08" PRIx32
+ LOG_ERROR("Address " TARGET_ADDR_FMT
+ " invalid bank address (try 0x%08" PRIx32
"[at91sam4l series] )",
bank->base, SAM4L_FLASH);
return ERROR_FAIL;