Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openocd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
openocd
Commits
f90ee7fd
Commit
f90ee7fd
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
hack(max32xxx): Make address relative to flash bank
parent
e71ac88c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/flash/nor/max32xxx.c
+4
-1
4 additions, 1 deletion
src/flash/nor/max32xxx.c
with
4 additions
and
1 deletion
src/flash/nor/max32xxx.c
+
4
−
1
View file @
f90ee7fd
...
@@ -389,7 +389,10 @@ static int max32xxx_write_block(struct flash_bank *bank, const uint8_t *buffer,
...
@@ -389,7 +389,10 @@ static int max32xxx_write_block(struct flash_bank *bank, const uint8_t *buffer,
uint32_t
buffer_size
=
16384
;
uint32_t
buffer_size
=
16384
;
struct
working_area
*
source
;
struct
working_area
*
source
;
struct
working_area
*
write_algorithm
;
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
reg_param
reg_params
[
5
];
struct
mem_param
mem_param
[
2
];
struct
mem_param
mem_param
[
2
];
struct
armv7m_algorithm
armv7m_info
;
struct
armv7m_algorithm
armv7m_info
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment