Arduino Wire.h I2C custom transport on Pi Pico is causing a crash
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- arduino
- 领域
- embedded-iot
调研方向
从 PlatformIO ini 和链接的 Pastebin 代码开始,重点查看自定义传输的配置方式,以及 uxr_init_custom_transport 的使用位置。先复现串行基线,然后在 Pi Pico 上实现 I2C 传输;当自定义传输不再导致开发板崩溃,并且 micro-ROS 节点和 topic 仍然可见时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
- Hardware description: Pi Pico
- RTOS: I think arduino mbed
- Version or commit hash: humble
Steps to reproduce the issue
I'm trying to make a custom transport for I2C using arduino's Wire library. I am able to build and flash the microros_publisher example, everything works over serial and I can see the topic and node in a docker container. However, when I replace setting the serial transport with my own, I think the pico crashes since i'm getting a flashing pattern on the pico (4 long, 4 0r 5 long). I really hope I'm missing something subtle. Also I'm not sure how I am supposed to properly use uxr_init_custom_transport, or if I'm supposed to use it at all, because the default serial transport doesn't. Also if this isn't the correct place to post this issue, please point me in the right direction.
here's my ini
env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
lib_deps =
https://github.com/micro-ROS/micro_ros_platformio
upload_protocol = mbed
board_microros_distro = humble
board_microros_transport = custom
heres the code
- 主要语言
- Python
- 星标
- 334
- 派生
- 111
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
micro-ROS/micro_ros_platformio 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
micro-ROS/micro_ros_platformio#177 · 16 条评论 ·
-
难度 4/5 3-5 天 新手友好度 38/100
micro-ROS/micro_ros_platformio#167 · 6 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
micro-ROS/micro_ros_platformio#162 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
micro-ROS/micro_ros_platformio#153 · 8 条评论 ·
-
难度 4/5 3-5 天 新手友好度 30/100
micro-ROS/micro_ros_platformio#149 · 4 条评论 · 1 个 reaction ·
查看 micro-ROS/micro_ros_platformio 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100