Set Platform Properties from Application

BP
Brian Padalino
Sat, Jan 16, 2021 9:17 PM

The FSK application I am running has to set some platform properties to
work correctly.  These properties, essentially, are hooked up to different
RF switches in the FPGA logic.  It was easy to expose them as properties.

With OpenCPI v2.0.1, I am getting an exception stating that there is an
unknown application property.  Note that these are platform properties, so
maybe I am doing something wrong.  In my application, I have:

OA::Application app(xml_name.c_str(), NULL) ;
app.initialize() ;
app.setProperty( "platform_name", "platform_property", "value" ) ;

I am able to use ocpihdl to query the platform property as expected:

ocpihdl get platform_name platform_property

28        platform_property: 0

I can set and get it as well, and it works just fine.  Did the syntax
change?  Do I need to change how I call this?

Thanks,
Brian

The FSK application I am running has to set some platform properties to work correctly. These properties, essentially, are hooked up to different RF switches in the FPGA logic. It was easy to expose them as properties. With OpenCPI v2.0.1, I am getting an exception stating that there is an unknown application property. Note that these are platform properties, so maybe I am doing something wrong. In my application, I have: OA::Application app(xml_name.c_str(), NULL) ; app.initialize() ; app.setProperty( "platform_name", "platform_property", "value" ) ; I am able to use ocpihdl to query the platform property as expected: # ocpihdl get platform_name platform_property 28 platform_property: 0 I can set and get it as well, and it works just fine. Did the syntax change? Do I need to change how I call this? Thanks, Brian