You must be logged in to reply.

Page 1 of 1 out of 7 messages.

TinyCLR OS Register Access for STM32F427 (Quail)

Posted 1yr ago
by B5 Fan | Junior | 704 exp
Posted 1yr ago
by B5 Fan | Junior | 704 exp
Is there now or planned a TinyCLR OS Register Class for the STM32F427 used on the Quail board? Christophe has done an excellent job porting NETMF 4.4 over but there is no way to access the registers like with the GHI.OSHW.Hardware.LowLevel classes for NETMF 4.3 on the STM32F405.
Reply #1 — Posted 1yr ago (modified)
by John_ghielectroncs | Employee
Reply #1 — Posted 1yr ago (modified)
by John_ghielectroncs | Employee
@B5 Fan - Take a look at the Marshal class. It has functions to read and write memory.

https://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal(v=vs.110).aspx
Reply #2 — Posted 1yr ago
by Gus_ghielectroncs | Employee
Reply #2 — Posted 1yr ago
by Gus_ghielectroncs | Employee
@B5 Fan - The answer is yes it is there as John said. But I want to say that it is actually really easy to add your own methods to do whatever you want. Building TinyCLR OS is much easier than building NETMF.
Reply #3 — Posted 1yr ago
by B5 Fan | Junior | 704 exp
Reply #3 — Posted 1yr ago
by B5 Fan | Junior | 704 exp
That worked. Thanks. Will you be adding this to TinyCLR OS in the future so we don't have to do it in managed code?
Reply #4 — Posted 1yr ago
by Mr. John Smith | Legend | 42,263 exp
Reply #4 — Posted 1yr ago
by Mr. John Smith | Legend | 42,263 exp
I'm beginning to understand this. It's not about RLP, you can just compile the entire framework over and add things that you need; about as easily.
Reply #5 — Posted 1yr ago
by John_ghielectroncs | Employee
Reply #5 — Posted 1yr ago
by John_ghielectroncs | Employee
@B5 Fan - I'm not sure what you're asking. The Marshal class is a more general and complete replacement for the old Register class we had in NETMF.
Reply #6 — Posted 1yr ago
by B5 Fan | Junior | 704 exp
Reply #6 — Posted 1yr ago
by B5 Fan | Junior | 704 exp
John_ghielectroncs says:
@B5 Fan - I'm not sure what you're asking. The Marshal class is a more general and complete replacement for the old Register class we had in NETMF.

You're right. I was confused as I wrote my own Register class to match my existing code and now just need to move and replace the code with the Marshal class.

Page 1 of 1 out of 7 messages.

You must be logged in to reply.