Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
card10
openocd
Commits
f90ee7fd
Commit
f90ee7fd
authored
Jun 21, 2019
by
schneider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hack(max32xxx): Make address relative to flash bank
parent
e71ac88c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/flash/nor/max32xxx.c
src/flash/nor/max32xxx.c
+4
-1
No files found.
src/flash/nor/max32xxx.c
View file @
f90ee7fd
...
...
@@ -389,7 +389,10 @@ static int max32xxx_write_block(struct flash_bank *bank, const uint8_t *buffer,
uint32_t
buffer_size
=
16384
;
struct
working_area
*
source
;
struct
working_area
*
write_algorithm
;
uint32_t
address
=
bank
->
base
+
offset
;
//uint32_t address = bank->base + offset;
// XXX: Hack to get the second flash bank on the MAX32666 working. Not sure if this also
// works for other devices.
uint32_t
address
=
offset
;
struct
reg_param
reg_params
[
5
];
struct
mem_param
mem_param
[
2
];
struct
armv7m_algorithm
armv7m_info
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment