Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2345VOR
rt-thread
提交
1ea7a3f5
R
rt-thread
项目概览
2345VOR
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1ea7a3f5
编写于
4月 26, 2020
作者:
Thomas_Fly
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[nrfx] Add the on-chip flash
上级
805432d3
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
300 addition
and
34 deletion
+300
-34
bsp/nrf5x/libraries/drivers/SConscript
bsp/nrf5x/libraries/drivers/SConscript
+3
-2
bsp/nrf5x/libraries/drivers/drv_flash.c
bsp/nrf5x/libraries/drivers/drv_flash.c
+184
-0
bsp/nrf5x/libraries/drivers/drv_flash.h
bsp/nrf5x/libraries/drivers/drv_flash.h
+29
-0
bsp/nrf5x/nrf52840/.config
bsp/nrf5x/nrf52840/.config
+15
-5
bsp/nrf5x/nrf52840/board/Kconfig
bsp/nrf5x/nrf52840/board/Kconfig
+37
-4
bsp/nrf5x/nrf52840/board/board.h
bsp/nrf5x/nrf52840/board/board.h
+5
-0
bsp/nrf5x/nrf52840/board/linker_scripts/link.sct
bsp/nrf5x/nrf52840/board/linker_scripts/link.sct
+3
-3
bsp/nrf5x/nrf52840/board/sdk_config.h
bsp/nrf5x/nrf52840/board/sdk_config.h
+5
-1
bsp/nrf5x/nrf52840/project.uvoptx
bsp/nrf5x/nrf52840/project.uvoptx
+7
-7
bsp/nrf5x/nrf52840/project.uvprojx
bsp/nrf5x/nrf52840/project.uvprojx
+4
-4
bsp/nrf5x/nrf52840/template.uvoptx
bsp/nrf5x/nrf52840/template.uvoptx
+4
-4
bsp/nrf5x/nrf52840/template.uvprojx
bsp/nrf5x/nrf52840/template.uvprojx
+4
-4
未找到文件。
bsp/nrf5x/libraries/drivers/SConscript
浏览文件 @
1ea7a3f5
...
...
@@ -10,8 +10,9 @@ src = Split("""
if
GetDepend
([
'BSP_USING_UART'
]):
src
+=
[
'drv_uart.c'
]
# src += ['drv_common.c']
if
GetDepend
([
'BSP_USING_ON_CHIP_FLASH'
]):
src
+=
[
'drv_flash.c'
]
path
=
[
cwd
]
...
...
bsp/nrf5x/libraries/drivers/drv_flash.c
0 → 100644
浏览文件 @
1ea7a3f5
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-04-29 supperthomas first version
*/
#include "board.h"
#include <nrfx.h>
#include "nrfx_nvmc.h"
#ifdef BSP_USING_ON_CHIP_FLASH
//#include "drv_config.h"
#include "drv_flash.h"
#if defined(PKG_USING_FAL)
#include "fal.h"
#endif
#include <rtdbg.h>
#define LOG_TAG "drv.flash"
/**
* @brief Gets the page of a given address
* @param Addr: Address of the FLASH Memory
* @retval The page of a given address
*/
static
uint32_t
GetPage
(
uint32_t
Addr
)
{
uint32_t
page
=
0
;
if
(
Addr
<
(
MCU_FLASH_START_ADDRESS
+
MCU_FLASH_SIZE
))
{
page
=
(
Addr
-
MCU_FLASH_START_ADDRESS
)
/
MCU_FLASH_PAGE_SIZE
;
}
else
{
return
0xffffffff
;
}
return
page
;
}
/**
* Read data from flash.
* @note This operation's units is word.
*
* @param addr flash address
* @param buf buffer to store read data
* @param size read bytes size
*
* @return result
*/
int
mcu_flash_read
(
rt_uint32_t
addr
,
rt_uint8_t
*
buf
,
size_t
size
)
{
size_t
i
;
if
((
addr
+
size
)
>
MCU_FLASH_END_ADDRESS
)
{
LOG_E
(
"read outrange flash size! addr is (0x%p)"
,
(
void
*
)(
addr
+
size
));
return
-
RT_EINVAL
;
}
for
(
i
=
0
;
i
<
size
;
i
++
,
buf
++
,
addr
++
)
{
*
buf
=
*
(
rt_uint8_t
*
)
addr
;
}
return
size
;
}
/**
* Write data to flash.
* @note This operation's units is word.
* @note This operation must after erase. @see flash_erase.
*
* @param addr flash address
* @param buf the write data buffer
* @param size write bytes size
*
* @return result
*/
int
mcu_flash_write
(
rt_uint32_t
addr
,
const
uint8_t
*
buf
,
size_t
size
)
{
if
((
addr
+
size
)
>
MCU_FLASH_END_ADDRESS
)
{
LOG_E
(
"ERROR: write outrange flash size! addr is (0x%p)
\n
"
,
(
void
*
)(
addr
+
size
));
return
-
RT_EINVAL
;
}
if
(
addr
%
4
!=
0
)
{
LOG_E
(
"write addr should be 4-byte alignment"
);
//4byte write
//else byts
return
-
RT_EINVAL
;
}
if
(
size
<
1
)
{
return
-
RT_ERROR
;
}
if
(
size
%
4
!=
0
)
{
nrfx_nvmc_bytes_write
(
addr
,
buf
,
size
);
return
size
;
}
else
{
nrfx_nvmc_words_write
(
addr
,
buf
,
size
/
4
);
return
size
;
}
}
/**
* Erase data on flash.
* @note This operation is irreversible.
* @note This operation's units is different which on many chips.
*
* @param addr flash address
* @param size erase bytes size
*
* @return result
*/
int
mcu_flash_erase
(
rt_uint32_t
addr
,
size_t
size
)
{
nrfx_err_t
result
=
RT_EOK
;
uint32_t
FirstPage
=
0
,
NbOfPages
=
0
;
if
((
addr
+
size
)
>
MCU_FLASH_END_ADDRESS
)
{
LOG_E
(
"ERROR: erase outrange flash size! addr is (0x%p)
\n
"
,
(
void
*
)(
addr
+
size
));
return
-
RT_EINVAL
;
}
FirstPage
=
GetPage
(
addr
);
NbOfPages
=
GetPage
(
addr
+
size
-
1
)
-
FirstPage
+
1
;
for
(
int
i
=
0
;
i
<
NbOfPages
;
i
++
)
{
result
=
nrfx_nvmc_page_erase
((
FirstPage
+
i
)
*
MCU_FLASH_PAGE_SIZE
);
if
(
NRFX_SUCCESS
!=
result
)
{
LOG_E
(
"ERROR: erase flash page %d ! error code is (%x)
\n
"
,
FirstPage
+
i
,
result
);
return
-
RT_EINVAL
;
}
}
LOG_D
(
"erase done: addr (0x%p), size %d"
,
(
void
*
)
addr
,
NbOfPages
*
MCU_FLASH_PAGE_SIZE
);
return
size
;
}
#if defined(PKG_USING_FAL)
static
int
fal_flash_read
(
long
offset
,
rt_uint8_t
*
buf
,
size_t
size
);
static
int
fal_flash_write
(
long
offset
,
const
rt_uint8_t
*
buf
,
size_t
size
);
static
int
fal_flash_erase
(
long
offset
,
size_t
size
);
const
struct
fal_flash_dev
mcu_onchip_flash
=
{
"mcu_onchip"
,
MCU_FLASH_START_ADDRESS
,
MCU_FLASH_SIZE
,
MCU_FLASH_PAGE_SIZE
,
{
NULL
,
fal_flash_read
,
fal_flash_write
,
fal_flash_erase
}
};
static
int
fal_flash_read
(
long
offset
,
rt_uint8_t
*
buf
,
size_t
size
)
{
return
mcu_flash_read
(
mcu_onchip_flash
.
addr
+
offset
,
buf
,
size
);
}
static
int
fal_flash_write
(
long
offset
,
const
rt_uint8_t
*
buf
,
size_t
size
)
{
return
mcu_flash_write
(
mcu_onchip_flash
.
addr
+
offset
,
buf
,
size
);
}
static
int
fal_flash_erase
(
long
offset
,
size_t
size
)
{
return
mcu_flash_erase
(
mcu_onchip_flash
.
addr
+
offset
,
size
);
}
#endif
#endif
/* BSP_USING_ON_CHIP_FLASH */
bsp/nrf5x/libraries/drivers/drv_flash.h
0 → 100644
浏览文件 @
1ea7a3f5
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-04-29 supperthomas first version
*/
#ifndef __DRV_FLASH_H__
#define __DRV_FLASH_H__
#include <rtdevice.h>
#include <rthw.h>
#ifdef __cplusplus
extern
"C"
{
#endif
int
nrfx_flash_read
(
rt_uint32_t
addr
,
rt_uint8_t
*
buf
,
size_t
size
);
int
nrfx_flash_write
(
rt_uint32_t
addr
,
const
rt_uint8_t
*
buf
,
size_t
size
);
int
nrfx_flash_erase
(
rt_uint32_t
addr
,
size_t
size
);
#ifdef __cplusplus
}
#endif
#endif
/* __DRV_FLASH_H__ */
bsp/nrf5x/nrf52840/.config
浏览文件 @
1ea7a3f5
...
...
@@ -200,6 +200,7 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_MONGOOSE is not set
# CONFIG_PKG_USING_MYMQTT is not set
# CONFIG_PKG_USING_KAWAII_MQTT is not set
# CONFIG_PKG_USING_BC28_MQTT is not set
# CONFIG_PKG_USING_WEBTERMINAL is not set
# CONFIG_PKG_USING_CJSON is not set
# CONFIG_PKG_USING_JSMN is not set
...
...
@@ -226,6 +227,7 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_COAP is not set
# CONFIG_PKG_USING_NOPOLL is not set
# CONFIG_PKG_USING_NETUTILS is not set
# CONFIG_PKG_USING_CMUX is not set
# CONFIG_PKG_USING_PPP_DEVICE is not set
# CONFIG_PKG_USING_AT_DEVICE is not set
# CONFIG_PKG_USING_ATSRV_SOCKET is not set
...
...
@@ -302,6 +304,7 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set
# CONFIG_PKG_USING_LUNAR_CALENDAR is not set
# CONFIG_PKG_USING_BS8116A is not set
# CONFIG_PKG_USING_URLENCODE is not set
#
# system packages
...
...
@@ -312,6 +315,12 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_LWEXT4 is not set
# CONFIG_PKG_USING_PARTITION is not set
# CONFIG_PKG_USING_FAL is not set
# CONFIG_PKG_USING_FAL_V00500 is not set
# CONFIG_PKG_USING_FAL_V00400 is not set
# CONFIG_PKG_USING_FAL_V00300 is not set
# CONFIG_PKG_USING_FAL_V00200 is not set
# CONFIG_PKG_USING_FAL_V00100 is not set
# CONFIG_PKG_USING_FAL_LATEST_VERSION is not set
# CONFIG_PKG_USING_SQLITE is not set
# CONFIG_PKG_USING_RTI is not set
# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
...
...
@@ -343,6 +352,11 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_LITTLED is not set
# CONFIG_PKG_USING_LKDGUI is not set
# CONFIG_PKG_USING_NRF5X_SDK is not set
CONFIG_PKG_USING_NRFX
=
y
CONFIG_PKG_NRFX_PATH
=
"/packages/peripherals/nrfx"
CONFIG_PKG_USING_NRFX_V210
=
y
# CONFIG_PKG_USING_NRFX_LATEST_VERSION is not set
CONFIG_PKG_NRFX_VER
=
"v2.1.0"
# CONFIG_PKG_USING_WM_LIBRARIES is not set
# CONFIG_PKG_USING_KENDRYTE_SDK is not set
# CONFIG_PKG_USING_INFRARED is not set
...
...
@@ -367,11 +381,6 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_BEEP is not set
# CONFIG_PKG_USING_EASYBLINK is not set
# CONFIG_PKG_USING_PMS_SERIES is not set
CONFIG_PKG_USING_NRFX
=
y
CONFIG_PKG_NRFX_PATH
=
"/packages/peripherals/nrfx"
CONFIG_PKG_USING_NRFX_V210
=
y
# CONFIG_PKG_USING_NRFX_LATEST_VERSION is not set
CONFIG_PKG_NRFX_VER
=
"v2.1.0"
#
# miscellaneous packages
...
...
@@ -423,6 +432,7 @@ CONFIG_SOC_NRF52840=y
# On-chip Peripheral Drivers
#
# CONFIG_BSP_USING_GPIO is not set
# CONFIG_BSP_USING_ON_CHIP_FLASH is not set
CONFIG_BSP_USING_UART
=
y
CONFIG_BSP_USING_UART0
=
y
# CONFIG_BSP_USING_UART1 is not set
bsp/nrf5x/nrf52840/board/Kconfig
浏览文件 @
1ea7a3f5
...
...
@@ -2,14 +2,14 @@ menu "Hardware Drivers Config"
config SOC_NRF52840
bool
config SOC_NRF52840
config SOC_NRF52840
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
config BSP_USING_JLINK_TO_USART
bool "Enable JLINK TO USART (uart0)"
bool "Enable JLINK TO USART (uart0
|RX_PIN:8|TX_PIN:6
)"
select BSP_USING_UART
select BSP_USING_UART0
default y
...
...
@@ -30,11 +30,44 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_UART0
bool "Enable UART0"
default y
if BSP_USING_UART0
config BSP_UART0_RX_PIN
int "uart0 rx pin number"
range 0 31
default 8
config BSP_UART0_TX_PIN
int "uart0 tx pin number"
range 0 31
default 6
endif
config BSP_USING_UART1
bool "Enable UART1"
default n
endif
endif
menu "On-chip flash config"
config MCU_FLASH_START_ADDRESS
hex "MCU FLASH START ADDRESS"
default 0x00000000
config MCU_FLASH_SIZE_KB
int "MCU FLASH SIZE, MAX size 1024 KB"
range 1 1024
default 1024
config MCU_SRAM_START_ADDRESS
hex "MCU RAM START ADDRESS"
default 0x20000000
config MCU_SRAM_SIZE_KB
int "MCU RAM SIZE, MAX size 256 KB"
range 1 256
default 256
config MCU_FLASH_PAGE_SIZE
hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000"
range 0x1000 0x1000
default 0x1000
endmenu
endmenu
endmenu
bsp/nrf5x/nrf52840/board/board.h
浏览文件 @
1ea7a3f5
...
...
@@ -5,6 +5,11 @@
#include "nrf.h"
#define MCU_FLASH_SIZE MCU_FLASH_SIZE_KB*1024
#define MCU_FLASH_END_ADDRESS ((uint32_t)(MCU_FLASH_START_ADDRESS + MCU_FLASH_SIZE))
#define MCU_SRAM_SIZE MCU_SRAM_SIZE_KB*1024
#define MCU_SRAM_END_ADDRESS (MCU_SRAM_START_ADDRESS + MCU_SRAM_SIZE)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
extern
int
Image
$$
RW_IRAM1
$$
ZI
$$
Limit
;
#define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
...
...
bsp/nrf5x/nrf52840/board/linker_scripts/link.sct
浏览文件 @
1ea7a3f5
...
...
@@ -2,13 +2,13 @@
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x000
1F000 0x00061
000 { ; load region size_region
ER_IROM1 0x000
1F000 0x00061
000 { ; load address = execution address
LR_IROM1 0x000
00000 0x100
000 { ; load region size_region
ER_IROM1 0x000
00000 0x100
000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x2000
25F8 0x0000DA08
{ ; RW data
RW_IRAM1 0x2000
0000 0x40000
{ ; RW data
.ANY (+RW +ZI)
}
}
...
...
bsp/nrf5x/nrf52840/board/sdk_config.h
浏览文件 @
1ea7a3f5
...
...
@@ -11687,7 +11687,11 @@
// </h>
//==========================================================
// <e> NRFX_NVMC_ENABLED - nrfx_nvmc - NVMC peripheral driver
//==========================================================
#ifndef NRFX_NVMC_ENABLED
#define NRFX_NVMC_ENABLED 1
#endif
// </e>
// </h>
...
...
bsp/nrf5x/nrf52840/project.uvoptx
浏览文件 @
1ea7a3f5
...
...
@@ -119,13 +119,13 @@
<TargetDriverDllRegistry>
<SetRegEntry>
<Number>
0
</Number>
<Key>
U
L2CM3
</Key>
<Name>
UL2CM3(-S0 -C0 -P0 ) -FN2 -FC4000 -FD20000000 -FF0nrf52xxx -FF1nrf52xxx_uicr -FL0200000 -FL11000 -FS00 -FS110001000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm)
-FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm)
</Name>
<Key>
J
L2CM3
</Key>
<Name>
-U683349164 -O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC4000 -FN2 -FF0nrf52xxx.flm -FS00 -FL0200000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm) -FF1nrf52xxx_uicr.flm -FS110001000 -FL11000
-FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm)
</Name>
</SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
<Key>
J
L2CM3
</Key>
<Name>
-U683349164 -O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC2000 -FN2 -FF0nrf52xxx.flm -FS00 -FL0200000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm) -FF1nrf52xxx_uicr.flm -FS110001000 -FL11000
-FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm)
</Name>
<Key>
U
L2CM3
</Key>
<Name>
UL2CM3(-S0 -C0 -P0 ) -FN2 -FC4000 -FD20000000 -FF0nrf52xxx -FF1nrf52xxx_uicr -FL0200000 -FL11000 -FS00 -FS110001000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm)
-FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm)
</Name>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint/>
...
...
@@ -359,7 +359,7 @@
<Group>
<GroupName>
Applications
</GroupName>
<tvExp>
1
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<cbSel>
0
</cbSel>
<RteFlg>
0
</RteFlg>
...
...
@@ -379,7 +379,7 @@
<Group>
<GroupName>
Drivers
</GroupName>
<tvExp>
1
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<cbSel>
0
</cbSel>
<RteFlg>
0
</RteFlg>
...
...
@@ -411,7 +411,7 @@
<Group>
<GroupName>
nrfx
</GroupName>
<tvExp>
1
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<cbSel>
0
</cbSel>
<RteFlg>
0
</RteFlg>
...
...
bsp/nrf5x/nrf52840/project.uvprojx
浏览文件 @
1ea7a3f5
...
...
@@ -18,7 +18,7 @@
<Vendor>
Nordic Semiconductor
</Vendor>
<PackID>
NordicSemiconductor.nRF_DeviceFamilyPack.8.32.1
</PackID>
<PackURL>
http://developer.nordicsemi.com/nRF5_SDK/pieces/nRF_DeviceFamilyPack/
</PackURL>
<Cpu>
IRAM(0x20000000,0x
00040000) IROM(0x00000000,0x00100000) CPUTYPE("Cortex-M4") FPU2 DSP
CLOCK(12000000) ELITTLE
</Cpu>
<Cpu>
IRAM(0x20000000,0x
40000) IROM(0x00000000,0x100000) CPUTYPE("Cortex-M4") FPU2
CLOCK(12000000) ELITTLE
</Cpu>
<FlashUtilSpec></FlashUtilSpec>
<StartupFile></StartupFile>
<FlashDriverDll>
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC4000 -FN2 -FF0nrf52xxx -FS00 -FL0200000 -FF1nrf52xxx_uicr -FS110001000 -FL11000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm) -FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm))
</FlashDriverDll>
...
...
@@ -275,7 +275,7 @@
<OCR_RVCT4>
<Type>
1
</Type>
<StartAddress>
0x0
</StartAddress>
<Size>
0x
de
000
</Size>
<Size>
0x
100
000
</Size>
</OCR_RVCT4>
<OCR_RVCT5>
<Type>
1
</Type>
...
...
@@ -299,8 +299,8 @@
</OCR_RVCT8>
<OCR_RVCT9>
<Type>
0
</Type>
<StartAddress>
0x2000
26c
0
</StartAddress>
<Size>
0x
3d94
0
</Size>
<StartAddress>
0x2000
000
0
</StartAddress>
<Size>
0x
4000
0
</Size>
</OCR_RVCT9>
<OCR_RVCT10>
<Type>
0
</Type>
...
...
bsp/nrf5x/nrf52840/template.uvoptx
浏览文件 @
1ea7a3f5
...
...
@@ -119,13 +119,13 @@
<TargetDriverDllRegistry>
<SetRegEntry>
<Number>
0
</Number>
<Key>
U
L2CM3
</Key>
<Name>
UL2CM3(-S0 -C0 -P0 ) -FN2 -FC4000 -FD20000000 -FF0nrf52xxx -FF1nrf52xxx_uicr -FL0200000 -FL11000 -FS00 -FS110001000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm)
-FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm)
</Name>
<Key>
J
L2CM3
</Key>
<Name>
-U683349164 -O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC4000 -FN2 -FF0nrf52xxx.flm -FS00 -FL0200000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm) -FF1nrf52xxx_uicr.flm -FS110001000 -FL11000
-FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm)
</Name>
</SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
<Key>
J
L2CM3
</Key>
<Name>
-U683349164 -O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC2000 -FN2 -FF0nrf52xxx.flm -FS00 -FL0200000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm) -FF1nrf52xxx_uicr.flm -FS110001000 -FL11000
-FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm)
</Name>
<Key>
U
L2CM3
</Key>
<Name>
UL2CM3(-S0 -C0 -P0 ) -FN2 -FC4000 -FD20000000 -FF0nrf52xxx -FF1nrf52xxx_uicr -FL0200000 -FL11000 -FS00 -FS110001000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm)
-FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm)
</Name>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint/>
...
...
bsp/nrf5x/nrf52840/template.uvprojx
浏览文件 @
1ea7a3f5
...
...
@@ -18,7 +18,7 @@
<Vendor>
Nordic Semiconductor
</Vendor>
<PackID>
NordicSemiconductor.nRF_DeviceFamilyPack.8.32.1
</PackID>
<PackURL>
http://developer.nordicsemi.com/nRF5_SDK/pieces/nRF_DeviceFamilyPack/
</PackURL>
<Cpu>
IRAM(0x20000000,0x
00040000) IROM(0x00000000,0x00100000) CPUTYPE("Cortex-M4") FPU2 DSP
CLOCK(12000000) ELITTLE
</Cpu>
<Cpu>
IRAM(0x20000000,0x
40000) IROM(0x00000000,0x100000) CPUTYPE("Cortex-M4") FPU2
CLOCK(12000000) ELITTLE
</Cpu>
<FlashUtilSpec></FlashUtilSpec>
<StartupFile></StartupFile>
<FlashDriverDll>
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC4000 -FN2 -FF0nrf52xxx -FS00 -FL0200000 -FF1nrf52xxx_uicr -FS110001000 -FL11000 -FP0($$Device:nRF52840_xxAA$Flash\nrf52xxx.flm) -FP1($$Device:nRF52840_xxAA$Flash\nrf52xxx_uicr.flm))
</FlashDriverDll>
...
...
@@ -275,7 +275,7 @@
<OCR_RVCT4>
<Type>
1
</Type>
<StartAddress>
0x0
</StartAddress>
<Size>
0x
de
000
</Size>
<Size>
0x
100
000
</Size>
</OCR_RVCT4>
<OCR_RVCT5>
<Type>
1
</Type>
...
...
@@ -299,8 +299,8 @@
</OCR_RVCT8>
<OCR_RVCT9>
<Type>
0
</Type>
<StartAddress>
0x2000
26c
0
</StartAddress>
<Size>
0x
3d94
0
</Size>
<StartAddress>
0x2000
000
0
</StartAddress>
<Size>
0x
4000
0
</Size>
</OCR_RVCT9>
<OCR_RVCT10>
<Type>
0
</Type>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录