RT-Thread / rt-thread

RT-Thread is an open source IoT real-time operating system (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.02k stars 4.9k forks source link

🔨[bsp][stm32][driver][Improve the drivers within HAL_Driver] #5968

Open supperthomas opened 2 years ago

supperthomas commented 2 years ago

you can use the STM32 board of you to finish this "good first issue" if there's no board in "bsp/stm32/", you can create the bsp with docuement How to make a STM32 BSP for RT-Thread. Or you can try to finish the module as follow .

You can follow the document device introduce

可以用手上的STM32开发板来进行PR 如果没有BSP,可以尝试提交BSP 如果有BSP,可以尝试验证一些功能,有些BSP并不完善,并且PR,比如UART, SPI, IIC等模块,验证成功,应该有需要PR和修复的地方。

根据文档: 驱动接口 STM32 BSP驱动文档 可验证模块,也可以添加utest测试项:

mysterywolf commented 2 years ago
supperthomas commented 2 years ago

document link : https://club.rt-thread.org/ask/article/677bbf280fa0718f.html

supperthomas commented 2 years ago
supperthomas commented 1 year ago

参考文档 mmexport1661132161285.jpg

supperthomas commented 1 year ago
Donocean commented 10 months ago

可以把自己画的板子提交到bsp之中吗?但是如果每个人都这么做,可预料bsp目录下将会很糟糕。

想法和建议:bsp下只提供具体芯片型号支持(如:STM32F103C8T6),而不再具体到某一公司/个人绘制的开发版

supperthomas commented 10 months ago

可以把自己画的板子提交到bsp之中吗?但是如果每个人都这么做,可预料bsp目录下将会很糟糕。

想法和建议:bsp下只提供具体芯片型号支持(如:STM32F103C8T6),而不再具体到某一公司/个人绘制的开发版

https://github.com/RT-Thread/rt-thread/tree/master/bsp/nrf5x 你觉得这个bsp是不是你希望的?

Donocean commented 10 months ago

可以把自己画的板子提交到bsp之中吗?但是如果每个人都这么做,可预料bsp目录下将会很糟糕。 想法和建议:bsp下只提供具体芯片型号支持(如:STM32F103C8T6),而不再具体到某一公司/个人绘制的开发版

https://github.com/RT-Thread/rt-thread/tree/master/bsp/nrf5x 你觉得这个bsp是不是你希望的?

是的,当我第一次看到bsp下的stm32目录,我有点无从下手,因为有太多同系列芯片,同系列下又不同厂商下的bsp,我觉得可能会有重复了 实际上当我使用bsp创建工程时,我更想要快速找到某个确切的芯片型号,然后以该型号快速开启一个rtthread工程

supperthomas commented 10 months ago

可以把自己画的板子提交到bsp之中吗?但是如果每个人都这么做,可预料bsp目录下将会很糟糕。 想法和建议:bsp下只提供具体芯片型号支持(如:STM32F103C8T6),而不再具体到某一公司/个人绘制的开发版

https://github.com/RT-Thread/rt-thread/tree/master/bsp/nrf5x 你觉得这个bsp是不是你希望的?

是的,当我第一次看到bsp下的stm32目录,我有点无从下手,因为有太多同系列芯片,同系列下又不同厂商下的bsp,我觉得可能会有重复了 实际上当我使用bsp创建工程时,我更想要快速找到某个确切的芯片型号,然后以该型号快速开启一个rtthread工程

理想情况下是这样的。但是STM32的芯片总类太多了,即使芯片一模一样,而且每家晶振使用也不一样,频率也不一样。那就需要更多社区来维护了,我们希望更多人参与来维护,想象一下你是愿意参与专用bsp还是愿意。现在的bsp,你只要找到最相近的bsp就可以了。而且studio有教程可以基于芯片创建 https://www.rt-thread.org/document/site/#/development-tools/rtthread-studio/um/studio-user-begin

Donocean commented 10 months ago

理想情况下是这样的。但是STM32的芯片总类太多了,即使芯片一模一样,而且每家晶振使用也不一样,频率也不一样。那就需要更多社区来维护了,我们希望更多人参与来维护,想象一下你是愿意参与专用bsp还是愿意。现在的bsp,你只要找到最相近的bsp就可以了。而且studio有教程可以基于芯片创建 https://www.rt-thread.org/document/site/#/development-tools/rtthread-studio/um/studio-user-begin

好的,如果我想制作自己画的板子的bsp,看了一下目前stm32里面没有当前型号的bsp,可以pr上来吗?关于bsp命名方面,由于板子是个人画的,我想直接使用芯片型号进行命名,然后在readme.md中提供pcb板载资源,这样可以吗?

supperthomas commented 10 months ago

这样

可以呀,不过一般最好大家都能买得到的板子,可以提供淘宝链接。