Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PHPmihuan
rt-thread
提交
bc133b83
R
rt-thread
项目概览
PHPmihuan
/
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,发现更多精彩内容 >>
提交
bc133b83
编写于
2月 26, 2021
作者:
Thomas_Fly
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp/max32660] add the gcc and vscode environment
上级
b19e71e1
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
10777 addition
and
6 deletion
+10777
-6
bsp/maxim/MAX32660_EVSYS/.vscode/.cortex-debug.peripherals.state.json
...X32660_EVSYS/.vscode/.cortex-debug.peripherals.state.json
+1
-0
bsp/maxim/MAX32660_EVSYS/.vscode/.cortex-debug.registers.state.json
...MAX32660_EVSYS/.vscode/.cortex-debug.registers.state.json
+1
-0
bsp/maxim/MAX32660_EVSYS/.vscode/launch.json
bsp/maxim/MAX32660_EVSYS/.vscode/launch.json
+24
-0
bsp/maxim/MAX32660_EVSYS/.vscode/tasks.json
bsp/maxim/MAX32660_EVSYS/.vscode/tasks.json
+39
-0
bsp/maxim/MAX32660_EVSYS/README.md
bsp/maxim/MAX32660_EVSYS/README.md
+30
-2
bsp/maxim/MAX32660_EVSYS/board/board.c
bsp/maxim/MAX32660_EVSYS/board/board.c
+1
-1
bsp/maxim/MAX32660_EVSYS/board/linker_scripts/link.lds
bsp/maxim/MAX32660_EVSYS/board/linker_scripts/link.lds
+27
-0
bsp/maxim/MAX32660_EVSYS/max32660.svd
bsp/maxim/MAX32660_EVSYS/max32660.svd
+10650
-0
bsp/maxim/MAX32660_EVSYS/rtconfig.py
bsp/maxim/MAX32660_EVSYS/rtconfig.py
+3
-2
bsp/maxim/libraries/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/GCC/startup_max32660.S
...CMSIS/Device/Maxim/MAX32660/Source/GCC/startup_max32660.S
+1
-1
未找到文件。
bsp/maxim/MAX32660_EVSYS/.vscode/.cortex-debug.peripherals.state.json
0 → 100644
浏览文件 @
bc133b83
[]
\ No newline at end of file
bsp/maxim/MAX32660_EVSYS/.vscode/.cortex-debug.registers.state.json
0 → 100644
浏览文件 @
bc133b83
[]
\ No newline at end of file
bsp/maxim/MAX32660_EVSYS/.vscode/launch.json
0 → 100644
浏览文件 @
bc133b83
{
//
使用
IntelliSense
了解相关属性。
//
悬停以查看现有属性的描述。
//
欲了解更多信息,请访问:
https://go.microsoft.com/fwlink/?linkid=
830387
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"cwd"
:
"${workspaceRoot}"
,
"executable"
:
"rt-thread.elf"
,
"name"
:
"Debug MAX"
,
"request"
:
"launch"
,
"type"
:
"cortex-debug"
,
"servertype"
:
"openocd"
,
"interface"
:
"swd"
,
"svdFile"
:
"max32660.svd"
,
"configFiles"
:
[
"interface/cmsis-dap.cfg"
,
"target/max32660.cfg"
],
"runToMain"
:
true
,
//
"preLaunchTask"
:
"build"
},
]
}
\ No newline at end of file
bsp/maxim/MAX32660_EVSYS/.vscode/tasks.json
0 → 100644
浏览文件 @
bc133b83
{
//
See
https://go.microsoft.com/fwlink/?LinkId=
733558
//
for
the
documentation
about
the
tasks.json
format
"version"
:
"2.0.0"
,
"tasks"
:
[
{
"label"
:
"build"
,
"type"
:
"shell"
,
"command"
:
"scons"
,
"problemMatcher"
:
[
"$gcc"
],
"presentation"
:
{
"echo"
:
true
,
"reveal"
:
"always"
,
"focus"
:
true
,
"panel"
:
"shared"
,
"showReuseMessage"
:
true
},
"group"
:
{
"kind"
:
"build"
,
"isDefault"
:
true
}
},
{
"label"
:
"clean"
,
"type"
:
"shell"
,
"command"
:
"scons -c"
,
"problemMatcher"
:
[],
"presentation"
:
{
"echo"
:
true
,
"reveal"
:
"always"
,
"focus"
:
true
,
"panel"
:
"shared"
,
"showReuseMessage"
:
true
}
},
]
}
\ No newline at end of file
bsp/maxim/MAX32660_EVSYS/README.md
浏览文件 @
bc133b83
...
...
@@ -92,11 +92,39 @@ MAX32660-EVSYS开发板常用 **板载资源** 如下:
2.
输入
`menuconfig`
命令配置工程,配置好之后保存退出。
4.
输入
`scons --target=mdk
4/mdk5/iar`
命令重新生成工程。
4.
输入
`scons --target=mdk
5/vsc
命令重新生成工程。
## 注意事项
目前仅支持keil5环境
目前支持keil和GCC环境
## FAQ
### GCC环境如何调试使用
第一步,需要配置arm-none-eabi-gcc路径到系統环境变量中去或者在rtconfig.py中EXEC_PATH 修改路径
第二步,添加openocd的路径,如果你安装了eclipse,添加以下路径到系统环境变量中
`
C:
\M
axim
\T
oolchain
\b
in
`
完成这两部就可以用vscode打开bsp目录了。
快捷键ctrl+shift+b可以执行scons编译命令
快捷键F5可以进入调试命令
如果需要调试之前执行build命令,在luanch.json里面打开注释
```
//"preLaunchTask": "build"
``
`
## 联系人信息
...
...
bsp/maxim/MAX32660_EVSYS/board/board.c
浏览文件 @
bc133b83
...
...
@@ -40,7 +40,7 @@ void rt_hw_systick_init(void)
if
(
error
!=
E_NO_ERROR
)
{
printf
(
"ERROR: Ticks is not valid"
);
rt_k
printf
(
"ERROR: Ticks is not valid"
);
}
}
...
...
bsp/maxim/MAX32660_EVSYS/board/linker_scripts/link.lds
浏览文件 @
bc133b83
...
...
@@ -19,6 +19,33 @@ SECTIONS {
/* C++ Exception handling */
KEEP(*(.eh_frame*))
/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
KEEP(*(FSymTab))
__fsymtab_end = .;
. = ALIGN(4);
__vsymtab_start = .;
KEEP(*(VSymTab))
__vsymtab_end = .;
/* section information for initial. */
. = ALIGN(4);
__rt_init_start = .;
KEEP(*(SORT(.rti_fn*)))
__rt_init_end = .;
. = ALIGN(4);
PROVIDE(__ctors_start__ = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array))
PROVIDE(__ctors_end__ = .);
. = ALIGN(4);
_etext = .;
} > FLASH
...
...
bsp/maxim/MAX32660_EVSYS/max32660.svd
0 → 100644
浏览文件 @
bc133b83
此差异已折叠。
点击以展开。
bsp/maxim/MAX32660_EVSYS/rtconfig.py
浏览文件 @
bc133b83
...
...
@@ -13,7 +13,7 @@ if os.getenv('RTT_CC'):
if
CROSS_TOOL
==
'gcc'
:
PLATFORM
=
'gcc'
EXEC_PATH
=
r
'
C:\Users\XXYYZZ
'
EXEC_PATH
=
r
'
.
'
elif
CROSS_TOOL
==
'keil'
:
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil_v5'
...
...
@@ -34,13 +34,14 @@ if PLATFORM == 'gcc':
CC
=
PREFIX
+
'gcc'
AS
=
PREFIX
+
'gcc'
AR
=
PREFIX
+
'ar'
CXX
=
PREFIX
+
'g++'
LINK
=
PREFIX
+
'gcc'
TARGET_EXT
=
'elf'
SIZE
=
PREFIX
+
'size'
OBJDUMP
=
PREFIX
+
'objdump'
OBJCPY
=
PREFIX
+
'objcopy'
DEVICE
=
' -mcpu=cortex-m4 -mthumb
-ffunction-sections -fdata-sections
'
DEVICE
=
' -mcpu=cortex-m4 -mthumb'
CFLAGS
=
DEVICE
AFLAGS
=
' -c'
+
DEVICE
+
' -x assembler-with-cpp'
LFLAGS
=
DEVICE
+
' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
...
...
bsp/maxim/libraries/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/GCC/startup_max32660.S
浏览文件 @
bc133b83
...
...
@@ -223,7 +223,7 @@ Reset_Handler:
blx
r0
/
*
Transfer
control
to
users
main
program
*/
ldr
r0
,
=
main
ldr
r0
,
=
entry
blx
r0
.
SPIN
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录