Arduino IDE将FreeRTOS用于STM32

介绍

适用于STM32F103C8的FreeRTOS

STM32F103C是一种能够使用FreeRTOS的ARM Cortex M3处理器。 我们直接在Arduino IDE中开始使用STM32F103C8的FreeRTOS。 我们也可以使用Keil,但是在这种情况下,我们需要下载文件并将其粘贴到Keil路径中,与Arduino IDE相比这是一个漫长的过程。 要了解FreeRTOS文档和方法定义,可以查看FreeRTOS STM32F103C8。

FreeRTOS

FreeRTOS可能是一个免费的开源实时操作系统(RTOS),可在许多流行的微控制器(包括STM32)上运行。

操作系统可以是在计算系统期间管理其他软件和硬件资源的软件。通常在设计通用操作系统时要注意用户体验。

例如,假设我们正在手机操作系统上开发应用程序。 用户可能想流式传输电影,因此我们可以将流式传输体验分为两个任务:以作业1的形式从网络上下载视频块,并以任务2的形式向用户显示每个块。这些任务可能是等效程序的一部分。在这种情况下,它们可以实现为并发运行的线程。

如果我们的处理器只有1个可用的内核,则我们的流式应用程序可能会迅速在作业1和作业2之间跳转,以向用户提供下载和查看在相同时间进行的印象。

重要的是要知道Arduino IDE中的STM32F103C8是如何捆绑FreeRTOS的。 尽管FreeRTOS是底层的软件框架,可用于切换任务,安排日程等,但我们不会直接调用FreeRTOS。 ARM创建了CMSIS-RTOS库,该库使我们能够形成对底层RTOS的调用,从而提高了代码在各种ARM处理器之间的可移植性。

配置

详情参阅 - 亚图跨际

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Using FreeRTOS and libopencm3 instead of the Arduino software environment, this book will help you develop multi-tasking applications that go beyond Arduino norms. In addition to the usual peripherals found in the typical Arduino device, the STM32 device includes a USB controller, RTC (Real Time Clock), DMA (Direct Memory Access controller), CAN bus and more. Each chapter contains clear explanations of the STM32 hardware capabilities to help get you started with the device, including GPIO and several other ST Microelectronics peripherals like USB and CAN bus controller. You’ll learn how to download and set up the libopencm3 + FreeRTOS development environment, using GCC. With everything set up, you’ll leverage FreeRTOS to create tasks, queues, and mutexes. You’ll also learn to work with the I2C bus to add GPIO using the PCF8574 chip. And how to create PWM output for RC control using hardware timers. You'll be introduced to new concepts that are necessary to master the STM32, such as how to extend code with GCC overlays using an external Winbond ?W25Q32 flash chip. Your knowledge is tested at the end of each chapter with exercises. Upon completing this book, you’ll be ready to work with any of the devices in the STM32 family. Beginning STM32 provides the professional, student, or hobbyist a way to learn about ARM without costing an arm! What You'll Learn Initialize and use the libopencm3 drivers and handle interrupts Use DMA to drive a SPI based OLED displaying an analog meter Read PWM from an RC control using hardware timers Who This Book Is For Experienced embedded engineers, students, hobbyists and makers wishing to explore the ARM architecture, going beyond Arduino limits.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值