Skip to content
Snippets Groups Projects
Commit f90ee7fd authored by schneider's avatar schneider
Browse files

hack(max32xxx): Make address relative to flash bank

parent e71ac88c
Branches
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment