Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openocd_nrf52_patch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Calisch
openocd_nrf52_patch
Commits
e760ac88
Commit
e760ac88
authored
7 years ago
by
Sam Calisch (admin)
Browse files
Options
Downloads
Plain Diff
merge for nrf52
parents
29cfe9c5
6861f0d8
Branches
master
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/flash/nor/Makefile.am
+80
-67
80 additions, 67 deletions
src/flash/nor/Makefile.am
src/flash/nor/drivers.c
+6
-2
6 additions, 2 deletions
src/flash/nor/drivers.c
src/flash/nor/nrf52.c
+1062
-0
1062 additions, 0 deletions
src/flash/nor/nrf52.c
tcl/target/nrf52.cfg
+13
-0
13 additions, 0 deletions
tcl/target/nrf52.cfg
with
1161 additions
and
69 deletions
src/flash/nor/Makefile.am
+
80
−
67
View file @
e760ac88
noinst_LTLIBRARIES
+=
%D%/libocdflashnor.la
%C%
_libocdflashnor_la_SOURCES
=
\
%D%/core.c
\
%D%/tcl.c
\
$(
NOR_DRIVERS
)
\
%D%/drivers.c
\
$(
NORHEADERS
)
NOR_DRIVERS
=
\
%D%/aduc702x.c
\
%D%/aducm360.c
\
%D%/ambiqmicro.c
\
%D%/at91sam4.c
\
%D%/at91sam4l.c
\
%D%/at91samd.c
\
%D%/at91sam3.c
\
%D%/at91sam7.c
\
%D%/ath79.c
\
%D%/atsamv.c
\
%D%/avrf.c
\
%D%/cfi.c
\
%D%/dsp5680xx_flash.c
\
%D%/efm32.c
\
%D%/em357.c
\
%D%/faux.c
\
%D%/fm3.c
\
%D%/fm4.c
\
%D%/jtagspi.c
\
%D%/kinetis.c
\
%D%/kinetis_ke.c
\
%D%/lpc2000.c
\
%D%/lpc288x.c
\
%D%/lpc2900.c
\
%D%/lpcspifi.c
\
%D%/mdr.c
\
%D%/mrvlqspi.c
\
%D%/niietcm4.c
\
%D%/non_cfi.c
\
%D%/nrf51.c
\
%D%/numicro.c
\
%D%/ocl.c
\
%D%/pic32mx.c
\
%D%/psoc4.c
\
%D%/sim3x.c
\
%D%/spi.c
\
%D%/stmsmi.c
\
%D%/stellaris.c
\
%D%/stm32f1x.c
\
%D%/stm32f2x.c
\
%D%/stm32lx.c
\
%D%/stm32l4x.c
\
%D%/str7x.c
\
%D%/str9x.c
\
%D%/str9xpec.c
\
%D%/tms470.c
\
%D%/virtual.c
\
%D%/xmc1xxx.c
\
%D%/xmc4xxx.c
NORHEADERS
=
\
%D%/core.h
\
%D%/cfi.h
\
%D%/driver.h
\
%D%/imp.h
\
%D%/non_cfi.h
\
%D%/ocl.h
\
%D%/spi.h
noinst_LTLIBRARIES
+=
%D%/libocdflashnor.la
%C%
_libocdflashnor_la_SOURCES
=
\
%D%/core.c
\
%D%/tcl.c
\
$(NOR_DRIVERS)
\
%D%/drivers.c
\
$(NORHEADERS)
NOR_DRIVERS
=
\
%D%/aduc702x.c
\
%D%/aducm360.c
\
%D%/ambiqmicro.c
\
%D%/at91sam4.c
\
%D%/at91sam4l.c
\
%D%/at91samd.c
\
%D%/at91sam3.c
\
%D%/at91sam7.c
\
%D%/ath79.c
\
%D%/atsamv.c
\
%D%/avrf.c
\
%D%/cfi.c
\
%D%/efm32.c
\
%D%/em357.c
\
%D%/faux.c
\
%D%/fm3.c
\
%D%/fm4.c
\
%D%/jtagspi.c
\
%D%/kinetis.c
\
%D%/kinetis_ke.c
\
%D%/lpc2000.c
\
%D%/lpc288x.c
\
%D%/lpc2900.c
\
%D%/lpcspifi.c
\
%D%/mdr.c
\
%D%/non_cfi.c
\
%D%/ocl.c
\
%D%/pic32mx.c
\
%D%/spi.c
\
%D%/stmsmi.c
\
%D%/stellaris.c
\
%D%/stm32f1x.c
\
%D%/stm32f2x.c
\
%D%/stm32lx.c
\
%D%/stm32l4x.c
\
%D%/str7x.c
\
%D%/str9x.c
\
%D%/str9xpec.c
\
%D%/tms470.c
\
%D%/virtual.c
\
%D%/fm3.c
\
%D%/dsp5680xx_flash.c
\
%D%/kinetis.c
\
%D%/numicro.c
\
%D%/nrf51.c
\
%D%/nrf52.c
\
%D%/mrvlqspi.c
\
%D%/psoc4.c
\
%D%/sim3x.c
\
%D%/xmc1xxx.c
\
%D%/xmc4xxx.c
\
%D%/niietcm4.c
noinst_HEADERS
=
\
%D%/core.h
\
%D%/cfi.h
\
%D%/driver.h
\
%D%/imp.h
\
%D%/non_cfi.h
\
%D%/ocl.h
\
%D%/spi.h
NORHEADERS
=
\
%D%/core.h
\
%D%/cfi.h
\
%D%/driver.h
\
%D%/imp.h
\
%D%/non_cfi.h
\
%D%/ocl.h
\
%D%/spi.h
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/flash/nor/drivers.c
+
6
−
2
View file @
e760ac88
...
...
@@ -46,10 +46,11 @@ extern struct flash_driver lpc288x_flash;
extern
struct
flash_driver
lpc2900_flash
;
extern
struct
flash_driver
lpcspifi_flash
;
extern
struct
flash_driver
mdr_flash
;
extern
struct
flash_driver
numicro_flash
;
extern
struct
flash_driver
nrf51_flash
;
extern
struct
flash_driver
nrf52_flash
;
extern
struct
flash_driver
mrvlqspi_flash
;
extern
struct
flash_driver
niietcm4_flash
;
extern
struct
flash_driver
nrf51_flash
;
extern
struct
flash_driver
numicro_flash
;
extern
struct
flash_driver
ocl_flash
;
extern
struct
flash_driver
pic32mx_flash
;
extern
struct
flash_driver
psoc4_flash
;
...
...
@@ -99,6 +100,9 @@ static struct flash_driver *flash_drivers[] = {
&
lpc2900_flash
,
&
lpcspifi_flash
,
&
mdr_flash
,
&
numicro_flash
,
&
nrf51_flash
,
&
nrf52_flash
,
&
mrvlqspi_flash
,
&
niietcm4_flash
,
&
nrf51_flash
,
...
...
This diff is collapsed.
Click to expand it.
src/flash/nor/nrf52.c
0 → 100644
+
1062
−
0
View file @
e760ac88
This diff is collapsed.
Click to expand it.
tcl/target/nrf52.cfg
+
13
−
0
View file @
e760ac88
...
...
@@ -16,11 +16,24 @@ if { [info exists CPUTAPID] } {
set
_CPUTAPID
0x2ba01477
}
# Work-area is a space in RAM used for flash programming
# By default use 16kB
if
{
[info exists WORKAREASIZE]
}
{
set
_WORKAREASIZE
$WORKAREASIZE
}
else
{
set
_WORKAREASIZE
0x4000
}
swj_newdap
$_CHIPNAME
cpu
-expected-id
$_CPUTAPID
set
_TARGETNAME
$_CHIPNAME.cpu
target
create
$_TARGETNAME
cortex_m
-chain-position
$_TARGETNAME
$_TARGETNAME
configure
-work-area-phys
0x20000000
-work-area-size
$_WORKAREASIZE
-work-area-backup
0
flash
bank
$_CHIPNAME.flash
nrf52
0x00000000
0
1
1
$_TARGETNAME
flash
bank
$_CHIPNAME.uicr
nrf52
0x10001000
0
1
1
$_TARGETNAME
adapter_khz
10000
if
{
!
[using_hla]
}
{
...
...
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