n/mcu
Registrieren Anmelden

n/mcu

11 Mitglieder · 0 Online

Austausch über eingebettete Entwicklung mit Mikrocontrollern und Elektronikdesign

Angepinnt u/binarydev
Welcome to 单片机

Welcome to our community! This is a space for discussions about 单片机. Feel free to introduce yourself and start conversations.

0 Upvotes3 Kommentare
1 / 2
u/binarydev vor 4 Mon.
MSPM0G3507知识库

【ima知识库】MSPM0G3507(地猛星)开发 https://ima.qq.com/wiki/?shareId=45157ce5c8ba7419e5b9a335ca8c60dc9a38f62da03779cdcb64fdee24a80101 把g3507包括引脚分布、原理图、api、数据手册在内的各种资料都收进去了 打电赛的应该会用上🧐

2 Antworten156 Aufrufeu/BearPaw hat vor 4 Mon. geantwortet
2
2 Kommentare
2 156
vor 4 Mon.u/BearPaw
u/binarydev vor 6 Mon.
中断回调用HAL_Delay延迟卡死原因

写按键驱动的时候封装了一层函数,接收按键枚举和监听事件函数指针,传递给外部中断回调统一处理,习惯性地在监听函数写了HAL_Delay(200),然后就坏菜了 编译下载,按下Confirm,程序卡死 重新回顾了一下NVIC与HAL_Delay的机制,才注意到 HAL_Delay依赖HAL_GetTick获取SysTick计数值来实现延时的时间判断,而HAL_GetTick的值又需要SysTick中断来更新。在优先级更高的中断的回调中调用H…

2 Antworten141 Aufrufeu/Arvin_Leung hat vor 6 Mon. geantwortet
1 / 2
中断回调用HAL_Delay延迟卡死原因, Bild 1 von 2
1 / 2
0
2 Kommentare
2 141
vor 6 Mon.u/Arvin_Leung