flash/stm32l4x: switch to to c loader instead of assembly loader
switching to C loader instead of the assembly version will enhance readability will reduce the maintenance effort. besides the switch to C loader, we added a new parameters to the loader like flash_word_size and flash_sr_bsy_mask in order to support properly STM32U5x and STM32G0Bx/G0Cx in dual-bank mode. Change-Id: I24cafc2ba637a065593a0506eae787b21080a0ba Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6109 Tested-by: jenkins Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
This commit is contained in:
committed by
Oleksij Rempel
parent
385eedfc6f
commit
4b1492bb8e
@@ -92,4 +92,22 @@
|
||||
|
||||
#define STM32L5_REGS_SEC_OFFSET 0x10000000
|
||||
|
||||
/* 100 bytes as loader stack should be large enough for the loader to operate */
|
||||
#define LDR_STACK_SIZE 100
|
||||
|
||||
struct stm32l4_work_area {
|
||||
struct stm32l4_loader_params {
|
||||
uint32_t flash_sr_addr;
|
||||
uint32_t flash_cr_addr;
|
||||
uint32_t flash_word_size;
|
||||
uint32_t flash_sr_bsy_mask;
|
||||
} params;
|
||||
uint8_t stack[LDR_STACK_SIZE];
|
||||
struct flash_async_algorithm_circbuf {
|
||||
uint8_t *wp;
|
||||
uint8_t *rp;
|
||||
uint8_t *buf;
|
||||
} fifo;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user