我正在构建基于 amazonlinux:2.0.20210126.0 的 docker 映像,我的软件需要编译并需要 Python.h 和其他开发资源。我在我的 docker 文件中安装 python3.8:
RUN amazon-linux-extras enable python3.8
RUN yum install -y python3.8
Run Code Online (Sandbox Code Playgroud)
但在 amazonlinux 存储库上找不到任何 python3.8 的开发包。尝试寻找 python3.8-devel 或 libpython3.8-dev 但没有成功。
有人对 amazonlinux 有过类似的经历吗?
尝试在 STM32L476 Nucleo-64 板上调试我的示例眨眼 LED 代码,但 gdb 无法连接到 OpenOCD(连接几乎立即因错误而断开)。我到处读过很多帖子,但没有一个有帮助。尝试使用 -c 添加命令到 OpenOCD,但行为没有改变。
我的代码在 Eclipse 的发布和调试配置中进行编译。我可以使用拖放功能刷新 bin 文件(虽然该板具有内置 STLink 插件),并且看起来代码在板上完美运行(LED 闪烁)。
在Centos7上使用以下版本进行交叉编译:
由于使用 eclipse 不起作用,我尝试了命令行,
(我在这个环境中不是经验丰富的开发人员,所以我找不到比 stm32l4discovery.cfg 更接近我的 stm32l476 板的配置文件,如果使用它可能出现一些问题,请告诉我)
./bin/openocd -f scripts/board/stm32l4discovery.cfg -c "init"
Run Code Online (Sandbox Code Playgroud)
开始,
GNU MCU Eclipse 64-bit Open On-Chip Debugger 0.10.0+dev-00462-gdd1d90111 (2019-01-18-11:37)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 500 kHz
adapter_nsrst_delay: 100 …
Run Code Online (Sandbox Code Playgroud)