简体   繁体   English

NanoFramework ESP32高分辨率定时器总是抛出异常

[英]NanoFramework ESP32 High Resolution Timer always throws exception

I am trying to utilize the ESP32 High resolution timer in Nanoframework, but it seems the code always throws a nullReference exception when executed.我正在尝试在 Nanoframework 中使用 ESP32 高分辨率计时器,但似乎代码在执行时总是抛出 nullReference 异常。

Here is how I initialize the timer:这是我初始化计时器的方法:

在此处输入图像描述

Following are the versions of nuget packages I am using:以下是我正在使用的 nuget 包的版本: 在此处输入图像描述

Whenever the code is run, the code throws exception when we subscribe to the TimerExpired event:每当代码运行时,当我们订阅 TimerExpired 事件时,代码就会抛出异常: 在此处输入图像描述

Any help on what could be causing this would be greatly appreciated.任何可能导致此问题的帮助将不胜感激。

I have tried this with latest nanoFramework version and can not reproduce the problem.我已经使用最新的 nanoFramework 版本进行了尝试,但无法重现该问题。 Please supply complete test program and indicate the type of ESP32 board you are running on.请提供完整的测试程序并说明您正在运行的 ESP32 板的类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM