forked from auracaster/openocd
flash/nor: update support for TI MSP432 devices
Added fixes for issues found in additional code reviews. Fixed host Endianness issues with using buffer reads and writes instead of the *_u32 variants. Changed code that tried to ID banks by hardcode bank_number values to use instead the bank base address. This fixes problems using configurations with multiple devices. Note that this replaces Change 4786 which has been abandoned because of extensive changes to the code to stop IDing banks by name. And I think I really messed up a rebase/merge on the document file. Tested on MSP432P401R, MSP432P4111, and MSP432E401Y Launchpads. Change-Id: Id05798b3aa78ae5cbe725ee762a164d673ee5767 Signed-off-by: Edward Fewell <efewell@ti.com> Reviewed-on: http://openocd.zylin.com/5481 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
committed by
Tomas Vanek
parent
e9932ef23d
commit
82a5c55dc3
@@ -34,14 +34,17 @@
|
||||
#define MSP432E411Y 7 /* MSP432E401Y device */
|
||||
#define MSP432E4X_GUESS 8 /* Assuming it's an MSP432E4x device */
|
||||
|
||||
/* Common MSP432 flash parameters */
|
||||
#define FLASH_BASE 0x00000000
|
||||
|
||||
/* MSP432P4 flash parameters */
|
||||
#define P4_FLASH_MAIN_BASE 0x00000000
|
||||
#define P4_FLASH_MAIN_BASE FLASH_BASE
|
||||
#define P4_FLASH_INFO_BASE 0x00200000
|
||||
#define P4_SECTOR_LENGTH 0x1000
|
||||
#define P4_ALGO_ENTRY_ADDR 0x01000110
|
||||
|
||||
/* MSP432E4 flash paramters */
|
||||
#define E4_FLASH_BASE 0x00000000
|
||||
#define E4_FLASH_BASE FLASH_BASE
|
||||
#define E4_FLASH_SIZE 0x100000
|
||||
#define E4_SECTOR_LENGTH 0x4000
|
||||
#define E4_ALGO_ENTRY_ADDR 0x20000110
|
||||
|
||||
Reference in New Issue
Block a user