This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Serialization: How to control GPIO connectivity chip

I am developing an application on a STM32 CPU that uses a 51822 through BLE serialization for BLE connectivity.

I have connected some LEDs at the pins of the 51822 to indicate the state of the application in my main CPU.

How can I send commands from my application to the BLE connectivity chip to control the GPIOs with the LEDs on the connectivity chip?

Are there already some commands in the serialization protocol for this purpose?

Parents
  • To access the local resources on the connectivity chip, I have added to additional commands to the protocol: uint32_t sd_ble_conn_chip_reg_set( ble_conn_chip_reg_set_t reg_set ); uint32_t sd_ble_conn_chip_reg_get( ble_conn_chip_reg_get_t reg_get );

    With the new commands, I can set any register to configure the peripherals and write output values, and I can get values from any register to read results.

    Configuration of GPIOs as outputs and writing values is now possible, also I can setup the ADC and read back measured values.

    May be this is a interesting extension for the serialization module. If someone is interested, I can deliver a example implementation based on SDK 11 and Softdevice S130.

    nrf_soc_reg.h

Reply
  • To access the local resources on the connectivity chip, I have added to additional commands to the protocol: uint32_t sd_ble_conn_chip_reg_set( ble_conn_chip_reg_set_t reg_set ); uint32_t sd_ble_conn_chip_reg_get( ble_conn_chip_reg_get_t reg_get );

    With the new commands, I can set any register to configure the peripherals and write output values, and I can get values from any register to read results.

    Configuration of GPIOs as outputs and writing values is now possible, also I can setup the ADC and read back measured values.

    May be this is a interesting extension for the serialization module. If someone is interested, I can deliver a example implementation based on SDK 11 and Softdevice S130.

    nrf_soc_reg.h

Children
No Data
Related