Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
混口饭吃,
rt-thread
提交
cad32a32
R
rt-thread
项目概览
混口饭吃,
/
rt-thread
与 Fork 源项目一致
Fork自
Mr_Pangza / 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,发现更多精彩内容 >>
未验证
提交
cad32a32
编写于
1月 14, 2020
作者:
B
Bernard Xiong
提交者:
GitHub
1月 14, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3314 from karl-zh/RT_USING_TFM
Add TFM support in RTT
上级
b5caf6f5
be4e2395
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
3090 addition
and
0 deletion
+3090
-0
bsp/lpc55sxx/lpc55s69_nxp_evk/board/board.c
bsp/lpc55sxx/lpc55s69_nxp_evk/board/board.c
+11
-0
bsp/lpc55sxx/lpc55s69_nxp_evk/board/linker_scripts/LPC55S69_cm33_core0_flash_ns_mdk.scf
...board/linker_scripts/LPC55S69_cm33_core0_flash_ns_mdk.scf
+111
-0
bsp/lpc55sxx/lpc55s69_nxp_evk/project_ns.uvoptx
bsp/lpc55sxx/lpc55s69_nxp_evk/project_ns.uvoptx
+1811
-0
bsp/lpc55sxx/lpc55s69_nxp_evk/project_ns.uvprojx
bsp/lpc55sxx/lpc55s69_nxp_evk/project_ns.uvprojx
+1157
-0
未找到文件。
bsp/lpc55sxx/lpc55s69_nxp_evk/board/board.c
浏览文件 @
cad32a32
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
* Copyright (c) 2019-2020, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
...
...
@@ -10,6 +11,7 @@
* 2010-05-02 Aozima update CMSIS to 130
* 2017-08-02 XiaoYang porting to LPC54608 bsp
* 2019-08-05 Magicoe porting to LPC55S69-EVK bsp
* 2020-01-01 Karl Add RT_USING_TFM support
*/
#include <rthw.h>
...
...
@@ -56,11 +58,20 @@ void rt_hw_board_init()
/* Set the Vector Table base location at 0x10000000 */
SCB
->
VTOR
=
(
0x10000000
&
NVIC_VTOR_MASK
);
#else
/* VECT_TAB_FLASH */
#ifdef RT_USING_TFM
/* Set the Vector Table base location at 0x00020000 when RTT with TF-M*/
SCB
->
VTOR
=
(
0x00020000
&
NVIC_VTOR_MASK
);
#else
/* Set the Vector Table base location at 0x00000000 */
SCB
->
VTOR
=
(
0x00000000
&
NVIC_VTOR_MASK
);
#endif
#endif
#ifndef RT_USING_TFM
/* This init has finished in secure side of TF-M */
BOARD_BootClockPLL150M
();
#endif
//BOARD_BootClockFROHF96M();
/* init systick 1 systick = 1/(100M / 100) 100systick = 1s*/
...
...
bsp/lpc55sxx/lpc55s69_nxp_evk/board/linker_scripts/LPC55S69_cm33_core0_flash_ns_mdk.scf
0 → 100644
浏览文件 @
cad32a32
#!armclang --target=arm-arm-none-eabi -march=armv8-m.main -E -x c
/*
** ###################################################################
** Processors: LPC55S69JBD100_cm33_core0
** LPC55S69JET98_cm33_core0
**
** Compiler: Keil ARM C/C++ Compiler
** Reference manual: LPC55xx/LPC55Sxx User manual Rev.0.2 15 Aug 2018
** Version: rev. 1.0, 2018-08-22
** Build: b181008
**
** Abstract:
** Linker file for the Keil ARM C/C++ Compiler
**
** Copyright 2016 Freescale Semiconductor, Inc.
** Copyright 2016-2018 NXP
** Copyright 2019-2020 Arm Limited. All rights reserved.
** All rights reserved.
**
** SPDX-License-Identifier: BSD-3-Clause
**
** http: www.nxp.com
** mail: support@nxp.com
**
** ###################################################################
*/
/*
* Original code taken from RTT project at:
* https://github.com/RT-Thread/rt-thread
* File: bsp/lpc55sxx/lpc55s69_nxp_evk/board/linker_scripts/LPC55S69_cm33_core0_flash_mdk.scf
* Git SHA of the original version: 64945ba882d651a14933eb4e7b3d93d10d6daae1
*/
/* USB BDT size */
#define usb_bdt_size 0x0
/* Sizes */
#if (defined(__stack_size__))
#define Stack_Size __stack_size__
#else
#define Stack_Size 0x1000
#endif
#if (defined(__heap_size__))
#define Heap_Size __heap_size__
#else
#define Heap_Size 0x1000
#endif
#define m_interrupts_start 0x00020000
#define m_interrupts_size 0x00000200
#define m_text_start 0x00020200
#define m_text_size 0x00031000
#define m_core1_image_start 0x00072000
#define m_core1_image_size 0x00026000
#if (defined(__use_shmem__))
#define m_data_start 0x20033000
#define m_data_size 0x00010800
#define m_rpmsg_sh_mem_start 0x20043800
#define m_rpmsg_sh_mem_size 0x00000800
#else
#define m_data_start 0x20033000
#define m_data_size 0x0000cc00
#endif
#define m_usb_sram_start 0x40100000
#define m_usb_sram_size 0x00004000
LR_m_text m_interrupts_start m_interrupts_size+m_text_size { ; load region size_region
VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
* (RESET,+FIRST)
}
ER_m_text m_text_start FIXED m_text_size { ; load address = execution address
* (InRoot$$Sections)
* (+RO)
}
#if (defined(__use_shmem__))
RPMSG_SH_MEM m_rpmsg_sh_mem_start UNINIT m_rpmsg_sh_mem_size { ; Shared memory used by RPMSG
* (rpmsg_sh_mem_section)
}
#endif
RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
* (+RW +ZI)
}
ARM_LIB_HEAP +0 EMPTY Heap_Size { ; Heap region growing up
}
ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
}
RW_m_usb_bdt m_usb_sram_start UNINIT usb_bdt_size {
* (m_usb_bdt)
}
RW_m_usb_ram (m_usb_sram_start + usb_bdt_size) UNINIT (m_usb_sram_size - usb_bdt_size) {
* (m_usb_global)
}
}
LR_CORE1_IMAGE m_core1_image_start {
CORE1_REGION m_core1_image_start m_core1_image_size {
*(M0CODE)
}
}
bsp/lpc55sxx/lpc55s69_nxp_evk/project_ns.uvoptx
0 → 100644
浏览文件 @
cad32a32
此差异已折叠。
点击以展开。
bsp/lpc55sxx/lpc55s69_nxp_evk/project_ns.uvprojx
0 → 100644
浏览文件 @
cad32a32
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录