Home › Forums › snickerdoodle › • Getting Started › Platform controller devices

Viewing 2 reply threads
  • Author
    Posts
    • alesuiss
      Participant
      Post count: 1

      Hello,

      I’m having trouble figuring out how to access the devices that are connected to the STM32 platform controller.

      After much search I seem to have found out how to access the I²C bus, by sending it SPI commands from the PS, so that’s cool. And I know some things can be controlled with the spi-ctrl program, but I can’t find the source or command set (it would be nice to have them available somewhere). I’m not having much luck with the rest though.

      How do I use the DAC outputs? Or Bluetooth? Where can I find this information?

      I’m trying to look at the platform controller FW (https://github.com/krtkl/snickerdoodle-STM32F078-firmware/) to figure out how it interprets commands, and I can’t make sense of it. For example, spi-ctrl can switch between the integrated antenna and SMA connector, but I can’t find the code that runs that command in the FW; the relevant “sd_wl18xx_ant_config” function seems to only ever by called in initialization. Same for other spi-ctrl commands.

      I’d be much grateful for any pointers you can give me. I love the snickerdoodle platform, but I gotta say, the documentation could be a lot better :-)

      Thanks,
      Arthur

       

       

    • odysseybsterling
      Participant
      Post count: 3

      I second this request – I have been completely unable to find anything about controlling the LEDs through Linux besides using spi-ctrl.  This would be ok, except that I cannot find the source code for this program, so I’m unable to implement any functionality.

      In my opinion, the purpose of a development board (over just building my own development board) is being able to write the code to control the available devices.  But there is not enough information available to do so.

    • jars
      Participant
      Post count: 3

      I got curious about this as well. It doesn’t seem like the source for the newer version of firmware (r2p0) for the STM32 was ever pushed to github. This may explain some of the confusion in the first post. The r1p0 version seems to only have SPI -> I2C passthrough implemented. As mentioned, the source for the spi-ctrl program is not available either. Ideally both of those would get updated on github to give people a starting point. The spi-ctrl program seemingly uses this API https://www.kernel.org/doc/html/v5.4/spi/spidev.html to send and receive SPI but that is about as far as I got.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.