[Discuss OpenCPI] Set Platform Properties from Application

From: Brian Padalino <bpadalino_at_gmail.com>
Date: Sat, 16 Jan 21 16:17:54 -0500

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


Received on Sat Jan 16 2021 - 21:17:54 CST

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT