1 Star 0 Fork 1

Bluetrum / bluetrum_sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

bluetrum_sdk

注意事项

使用 master 的内核的话,BSP 要使用 1.0.9 之后的版本

中断的问题

中断需要设置到 ram 的段中,比如

RT_SECTION(".irq.example.str")
static const char example_info[] = "example 0x%x";

RT_SECTION(".irq.example")
void example_isr(void)
{
    rt_kprintf(example_info, 11);
    ...
}

不这么做的话,可能会报错,出现 overflow 的情况

打印的错误格式为 IRQ in Flash: 1 0 - %x %x,将后面的地址加上 0x10000000,也就是说,打印 IRQ in Flash: 1 0 - 1234 2345 的内核的话, 就可以去查询 0x10002345 这个地址的代码在什么函数中,然后将其放入 RAM 的段中,比如

查询在什么函数,可以查看 map 文件,也可以通过 addr2line -e rtthread.elf -f 0x10002345 完成

链接文件的问题

编译时提示某个段不够大的时候,需要自行修改段的大小

https://ab32vg1-example.readthedocs.io/zh/latest/rt-thread/link_file.html

想要更进一步了解链接文件的话可以看看下面的链接

https://home.cs.colorado.edu/~main/cs1300/doc/gnu/ld_3.html

scons 编译问题

SDK 依赖的库在软件包中,需要 pkgs --update

RTC

RTC 编译报错的话需要更新内核

串口

串口0暂时无法通过 pb2 打印

串口0默认使用的是单线串口,也就是 tx rx 一条线,单线串口在终端调试需要使用 downloader,在 downloader 里面就不会有回显

MIT License Copyright (c) 2021 BLUETRUM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
C 等 5 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/bluetrum/bluetrum_sdk.git
git@gitee.com:bluetrum/bluetrum_sdk.git
bluetrum
bluetrum_sdk
bluetrum_sdk
master

搜索帮助