nrf51: Rename to nrf5
Renaming of all nrf51 NOR flash code to nrf5, as to prepare the code for being able to flash nrf51 and nrf52 chips. The nrf51 command is retained for backwards compatability. "nRF5" is also the name Nordic Semiconductor uses to describe both the nrf51 and nrf52 chips. Change-Id: I5f4e3f1ec780184b28ad44f735a746e68908c502 Signed-off-by: Slowcoder <slowcoder@gmail.com> Reviewed-on: http://openocd.zylin.com/4209 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>fence_i_fix_for_release
parent
52885d2b53
commit
d43308af75
|
@ -5767,17 +5767,19 @@ Show information about flash driver.
|
|||
|
||||
@end deffn
|
||||
|
||||
@deffn {Flash Driver} nrf51
|
||||
@deffn {Flash Driver} nrf5
|
||||
All members of the nRF51 microcontroller families from Nordic Semiconductor
|
||||
include internal flash and use ARM Cortex-M0 core.
|
||||
Also, the nRF52832 microcontroller from Nordic Semiconductor, which include
|
||||
internal flash and use an ARM Cortex-M4F core.
|
||||
|
||||
@example
|
||||
flash bank $_FLASHNAME nrf51 0 0x00000000 0 0 $_TARGETNAME
|
||||
flash bank $_FLASHNAME nrf5 0 0x00000000 0 0 $_TARGETNAME
|
||||
@end example
|
||||
|
||||
Some nrf51-specific commands are defined:
|
||||
Some nrf5-specific commands are defined:
|
||||
|
||||
@deffn Command {nrf51 mass_erase}
|
||||
@deffn Command {nrf5 mass_erase}
|
||||
Erases the contents of the code memory and user information
|
||||
configuration registers as well. It must be noted that this command
|
||||
works only for chips that do not have factory pre-programmed region 0
|
||||
|
|
|
@ -36,7 +36,7 @@ NOR_DRIVERS = \
|
|||
%D%/mrvlqspi.c \
|
||||
%D%/niietcm4.c \
|
||||
%D%/non_cfi.c \
|
||||
%D%/nrf51.c \
|
||||
%D%/nrf5.c \
|
||||
%D%/numicro.c \
|
||||
%D%/ocl.c \
|
||||
%D%/pic32mx.c \
|
||||
|
|
|
@ -48,6 +48,7 @@ extern struct flash_driver lpcspifi_flash;
|
|||
extern struct flash_driver mdr_flash;
|
||||
extern struct flash_driver mrvlqspi_flash;
|
||||
extern struct flash_driver niietcm4_flash;
|
||||
extern struct flash_driver nrf5_flash;
|
||||
extern struct flash_driver nrf51_flash;
|
||||
extern struct flash_driver numicro_flash;
|
||||
extern struct flash_driver ocl_flash;
|
||||
|
@ -101,6 +102,7 @@ static struct flash_driver *flash_drivers[] = {
|
|||
&mdr_flash,
|
||||
&mrvlqspi_flash,
|
||||
&niietcm4_flash,
|
||||
&nrf5_flash,
|
||||
&nrf51_flash,
|
||||
&numicro_flash,
|
||||
&ocl_flash,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue