Main Site Documentation

How to Access Registers Using RLP


#1

Guys,
I’m using the STM32F405 on the Bee board and I’d like to use RLP and EM blocks for register access. Can you please give me thoughts on what the c++ code would look like to do this?
Thanks


#2

Something like this:


*address=value;


#3

If you just want to read/write a few registers, then you don’t need RLP. GHI provides GHI.Processor.Register class for that.


#4

Yes, I’ve used GHI.Processor.Register class
but I’m trying to speed my main app up by adding chunks of it to RLP. I’ve decided to try something simpler first like switching one of the digital outputs using RLP. I’ll come back to this one afterwards.
Thanks


#5

Personally I set up the port in managed code and write to the port register from RLP, but you can do the entire thing in RLP if you want.

First thing you need to do is get a copy of the user anual for the mcu you are using And dig into the GPIO section.


#6

Hi Hagster,
Can you please give me a code example of how to set up the port in managed code and write to the port register from RLP?
Thanks