当前位置: 首页> 娱乐> 明星 > 广州市地图最新版 高清晰_广告设计用什么软件做_西安网站快速排名提升_湖南省人民政府

广州市地图最新版 高清晰_广告设计用什么软件做_西安网站快速排名提升_湖南省人民政府

时间:2025/7/9 12:06:24来源:https://blog.csdn.net/absurd/article/details/144626776 浏览次数:0次
广州市地图最新版 高清晰_广告设计用什么软件做_西安网站快速排名提升_湖南省人民政府

本文档只在 MacOS 上验证过,Ubuntu 请根据情况自行调整。

在这里插入图片描述

0. 安装环境

  • cmake
brew install cmake
  • openocd
brew install openocd
  • arm-none-eabi-gcc

用 brew 安装的版本会出现如下错误:

arm-none-eabi-gcc: fatal error: cannot read spec file 'nosys.specs': No such file or directory

用 arm 官方的版本没有问题。

cd ~/Downloads
wget https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi.tar.xzcd /opt
sudo tar xf ~/Downloads/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi.tar.xz
  • arm-none-eabi-gdb
brew install arm-none-eabi-gdb
  • minicom
brew install minicom

1. 下载源码

  • 下载 awtk-pico
https://github.com/zlgopen/awtk-pico.git
  • 进入 awtk-pico 目录
cd awtk-pico
  • 下载 pico-sdk
git clone https://github.com/raspberrypi/pico-sdk.git 3rd/pico-sdk
  • 下载 awtk
git clone https://github.com/zlgopen/awtk.git src/awtk

2. 编译

  • 编译 awtk
cd src/awtk
scons
cd -
  • 生成 demo 资源
cd src/demos/hello
python scripts/update_res.py all
cd -
  • 编译 pico 固件

请编辑 build_rp2040.sh,修改 PICO_TOOLCHAIN_PATH 为实际路径。

./build_rp2040.sh

3. 烧录

  • 方法 1

    按住按钮,插上电源。 会加载一个磁盘分区,把固件拷贝到该磁盘分区。完成后,会自动重启。

  • 方法 2

使用 openocd 烧录。

./upload.sh ./build_rp2040/src/demos/app.elf

4. 调试

请确认连接了 pico debug probe。

  • 启动 openocd
./start_debug.sh 
  • 启动 gdb
./debug.sh 

5. 硬件说明

测试所用显示屏的尺寸为 3.5 寸,分辨率为 480x320,微雪 出品,如果使用其它硬件, 代码需要做相应调整。

注意事项

  • 为了将字体和图片等资源数据编译到代码中,需要修改示例项目的 project.json 文件:
 "const": "all_data",

参考:src/demos/hello/project.json

7. 参考资源

  • https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html
  • https://blog.csdn.net/absurd/article/details/144340608
  • https://www.waveshare.net/wiki/Pico-ResTouch-LCD-3.5
关键字:广州市地图最新版 高清晰_广告设计用什么软件做_西安网站快速排名提升_湖南省人民政府

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: