适配hal gpio ,但pika_hal_platform_GPIO_open 似乎没有被调用 #354
Closed
pioneerAlone
started this conversation in
General
Replies: 2 comments
-
pika_hal_platform_XXXX_XXXX 这些函数都是通过 weak 机制生效的,如果用的是 gcc,需要注意链接参数,可以考虑加 whole-achieve 来支持 weak |
Beta Was this translation helpful? Give feedback.
0 replies
-
已解决 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
以下是适配代码 ,在pika_hal_platform_GPIO_open 添加了打印,能设置了#define PIKA_DEBUG_ENABLE 1

但main.py 执行如下,GPIO 代码似乎没有工作? 有什么排查方向吗?
[2025-04-28_09:53:58:735]======[pikapython packages installed]======
[2025-04-28_09:53:58:735]pikascript-core==v1.13.3 (2024/03/11 09:01:07)
[2025-04-28_09:53:58:735]PikaStdDevice===v2.4.6
[2025-04-28_09:53:58:735]PikaStdLib===v1.13.3
[2025-04-28_09:53:58:735]os===v0.1.4
[2025-04-28_09:53:58:735]time===v0.2.2
[2025-04-28_09:53:58:735]===========================================
[2025-04-28_09:53:58:735]~~~/ POWERED BY ~~~
[2025-04-28_09:53:58:735]~ pikapython.com ~
[2025-04-28_09:53:58:752]~~~~~~~~~~~~~~~~~~~~
[2025-04-28_09:53:58:752]hello pikascript
Beta Was this translation helpful? Give feedback.
All reactions