Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
openocd
Commits
f90ee7fd
Commit
f90ee7fd
authored
Jun 21, 2019
by
schneider
Browse files
hack(max32xxx): Make address relative to flash bank
parent
e71ac88c
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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