简体   繁体   中英

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.

Here is how I initialize the timer:

在此处输入图像描述

Following are the versions of nuget packages I am using: 在此处输入图像描述

Whenever the code is run, the code throws exception when we subscribe to the TimerExpired event: 在此处输入图像描述

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. Please supply complete test program and indicate the type of ESP32 board you are running on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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