OPP guru's

68 views
Skip to first unread message

Nona Bertschy

unread,
May 27, 2021, 5:10:10 PM5/27/21
to MPF Users
Programmed my STM32 and did hardware scan an then added some switches and tested in MPF and worked like a charm.  Moved on to testing some led's.  This is where I bogged down.  I have tried every syntax but no joy.  Can I just use the STM32 ports direct as either inputs or outputs?  Why do I have to set up wings that  need different firmware the chip.  What was the point of programming OppStm32.2.1.0.4.hex into the board if I just have to turn around and use cyflash to put different firmware on the board. I would much rather use these boards as direct 32 IO lines and electronically interface my existing pinball hardware that is European and non standard.

cobra18t

unread,
May 28, 2021, 3:11:10 AM5/28/21
to MPF Users
If you are using the STM32, you do not need to use cyflash. That is for the previous hardware platform based on the Cypress PSOC processor.

OPP firmware exists in two layers: the firmware and the configuration. The firmware is programmed with an ST-Link programmer. The configuration is loaded via USB through a python script (Gen2Test.py). The configuration persists even if you update the firmware. The default configuration is 32 inputs which is why your switch testing worked fine. If you want something other than that, you need to load a new configuration file into the board. Maybe someday this configuration can be incorporated into MPF, but that day is not today. 

OPP has 4 "wings" per board. There are different wings for different purposes. There are two options currently for neopixel wings. There is one that has a neopixel data output and 7 switch inputs (WING_NEO). Alternatively, you can also use a different wing configuration that has a neopixel output, 4 solenoid outputs, and 3 switch inputs (WING_NEO_SOL). There are example config files in the /Python/Gen2Test/ directory in the OPP repository. Here is one that I use on my project:

Here is the relevant section of the OPP Pinball Makers page for OPP configuration but it would be good to read the whole page:

Carl Bertschy

unread,
May 28, 2021, 6:39:01 AM5/28/21
to mpf-...@googlegroups.com
Brilliant reply, Thank you. Once I can get full control of the inputs and outputs of the STM32 interfacing the existing switches and lights will be easy for me.  Then it is on to programming. I am feeling less intimidated by the moment. 

--
You received this message because you are subscribed to a topic in the Google Groups "MPF Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpf-users/EbIgNlwoKEs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpf-users/e290152d-a372-4243-a8c6-f084cc507b3en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages