ESP-hosted

  • Hello, your device configuration requirements are directly added in the corresponding DTS file (sdk/config/dts_config).

    Code: Select all

    &spi0 {
    	status = "okay";
    };
    
    In the corresponding rv1103-luckfox-pico-ipc.dtsi, all the relevant pins of the spi have been added to the pinctrl

    Code: Select all

    	pinctrl-0 = <&spi0m0_clk &spi0m0_miso &spi0m0_mosi &spi0m0_cs0>;
    
    If you need to add a new device to share the SPI, you can use the spi0m0_cs1 and change the PINCTRL-0 to

    Code: Select all

    	pinctrl-0 = <&spi0m0_clk &spi0m0_miso &spi0m0_mosi &spi0m0_cs0 &spi0m0_cs1>;
    
    The other pins are GPIO functions by default if not set, and do not need to be configured
  • Okay, thanks. I will try that configuration now.
  • I can now confirm that ESP-hosted has been successfully ported to Luckfox-pico. It works very well !
    Last edited by freetoair on 2024-10-01 23:43, edited 4 times in total.