在stm32f1 使用 tinyusb 的时候 报错 #2545
changpan1110
started this conversation in
General
Replies: 6 comments 2 replies
-
你可以先把TinyUSB替换到最新版,0.14太老了. |
Beta Was this translation helpful? Give feedback.
1 reply
-
应该是Keil不识别 |
Beta Was this translation helpful? Give feedback.
0 replies
-
搞忘了,你把这块代码改一下试试:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
把代码改成下面那样得话,感觉和
#define TU_ATTR_FALLTHROUGH do {} while (0) /* fallthrough */只留这句话效果一样呢
现在得tinyusb 最新得版本是0.14 还是0.14.1呢?
Highone
***@***.***
…------------------ 原始邮件 ------------------
发件人: "hathach/tinyusb" ***@***.***>;
发送时间: 2024年4月4日(星期四) 晚上11:23
***@***.***>;
***@***.******@***.***>;
主题: Re: [hathach/tinyusb] 在stm32f1 使用 tinyusb 的时候 报错 (Discussion #2545)
搞忘了,你把这块代码改一下试试:
https://github.com/hathach/tinyusb/blob/5738757e2ca73ab003df5bfbf5ec7b60850ef88b/src/common/tusb_compiler.h#L143C1-L151C9
#if __GNUC__ < 5 #define TU_ATTR_FALLTHROUGH do {} while (0) /* fallthrough */ #elif defined(__has_attribute) #if __has_attribute(__fallthrough__) #define TU_ATTR_FALLTHROUGH __attribute__((fallthrough)) #else #define TU_ATTR_FALLTHROUGH do {} while (0) /* fallthrough */ #endif #else #define TU_ATTR_FALLTHROUGH do {} while (0) /* fallthrough */ #endif
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
最新的只有0.14.1
然后升级到最新的后 烧录到板子上 会出来 一个为止的usb设备
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年4月25日(周四) 晚上7:53
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [hathach/tinyusb] 在stm32f1 使用 tinyusb 的时候 报错 (Discussion #2545)
@Rbb666 你们试试升级到最新的master
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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
-
packages\TinyUSB-v0.14.0\src\common/tusb_compiler.h(134): error: #59: function call is not allowed in a constant expression 提示这样
这样的话,怎么解决呢?
Beta Was this translation helpful? Give feedback.
All reactions