Access to timers / registers inside the netduino MCU? Is there a way? Interop?
#1
Posted 12 February 2014 - 10:49 PM
#2
Posted 14 February 2014 - 09:46 PM
#3
Posted 14 February 2014 - 10:37 PM
#4
Posted 14 February 2014 - 11:30 PM
Hey Chris, Thanks for the reply. I've downloaded the netduino 2 firmware from the downloads page and have combed through the files, but not sure where to start. Which files/directories should I look at so I can see what timers are currently being used and so I can start to poke around and make changes? It would be nice if I could make a layer of abstraction to get at the available timers for my project without major modifications to the core. Maybe a new class or something. Thanks!Hi gismo,NETMF uses the timers for various features inside the runtime (PWMs, thread scheduling, etc.) If you'd like to hack deeper and use some of them for custom purposes, I'd recommend creating native code for that and compiling it into the core firmware.Arbitrarily using timers could mess with other features--but since you're delving down that deep you're already aware of that :)Chris
#5
Posted 15 February 2014 - 12:09 AM
After copying the source over the MicroFrameworkPK_v4_2 folder, do a search for the text "TIM" in .c, .cpp, and .settings files. That will give you a rundown of where each TIMER is used. The PWM timers is particular are physically tied to pins and assigned in the settings file in the SolutionsNetduino2 folder. A few timers are used to create the core clock that NETMF uses for scheduling. Those are the main ones to watch out for in the Netduino firmware. [In the firmware for AGENT and other products, we sometimes use timers for other purposes...but the current Netduino firmware generally uses them for core purposes like thread scheduling and PWMs.] ChrisThanks for the reply. I've downloaded the netduino 2 firmware from the downloads page and have combed through the files, but not sure where to start. Which files/directories should I look at so I can see what timers are currently being used and so I can start to poke around and make changes?
- gismo likes this
#6
Posted 16 February 2014 - 02:29 PM
Also tagged with one or more of these keywords: timers, registers, Interop
General →
General Discussion →
Interop To Managed CodeStarted by Hawkez, 22 Sep 2015 interop |
|
|||
Hardware →
Netduino Plus 2 (and Netduino Plus 1) →
ISR in interopStarted by jiwonoh, 18 Aug 2014 interop |
|
|||
Hardware →
Netduino Plus 2 (and Netduino Plus 1) →
Custom Firmware, DFU upload not verifying rightStarted by Frank26080115, 05 Sep 2013 firmware, interop |
|
|||
Answered
Hardware →
Netduino Plus 2 (and Netduino Plus 1) →
How to get GPIOx address from Cpu.Pin for Interop?Started by Frank26080115, 24 Aug 2013 interop, native |
|
|||
Programming Languages and Tools →
Visual Studio →
Timers not working right, more or less at the speed of lightStarted by Emilio x64, 08 Aug 2013 netmf, timers, timing |
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users