Error while integrating the peripheral_uart and fat_fs example for nRF5340 DK

Hi,

I am trying to integrate the fat_fs and peripheral_uart example, but unable to do so because of the SD card initialization error. Both examples are working fine separately but the SD card initialization is an issue after integration. I am attching the code example. Please let me know the issue in the code / configuration.

Thanks.

ble_uart_fat_fs.zip

Top Replies

Parents
  • Hi,

    This solution is for NCS v2.0.0 or newer, if you are using an older version I would recommend upgrading to at least 2.0.0 if that is at all possible. If it is not, let me know.

    P0.10 and P0.11 are used for logging on the network core. I assume that the fat_fs sample doesn't forward the pins to the network core, since it doesn't include a network core image.

    Add this to your overlay file for the app core:

    &gpio_fwd {
        status = "disabled";
    };

    In your "child_image" folder, add a file named "hci_rpmsg.overlay" and a file named "hci_rpmsg.conf". These files will be automatically applied to the network core child image.

    In hci_rpmsg.overlay:

    &uart0 {
        status = "disabled";
    };

    In hci_rpmsg.conf:

    CONFIG_SERIAL=n
    CONFIG_UART_CONSOLE=n

    This will disable the uart0 on the network core, and stop the app core from forwarding the pins.

    Uart logging from the network core will be disabled.

Reply
  • Hi,

    This solution is for NCS v2.0.0 or newer, if you are using an older version I would recommend upgrading to at least 2.0.0 if that is at all possible. If it is not, let me know.

    P0.10 and P0.11 are used for logging on the network core. I assume that the fat_fs sample doesn't forward the pins to the network core, since it doesn't include a network core image.

    Add this to your overlay file for the app core:

    &gpio_fwd {
        status = "disabled";
    };

    In your "child_image" folder, add a file named "hci_rpmsg.overlay" and a file named "hci_rpmsg.conf". These files will be automatically applied to the network core child image.

    In hci_rpmsg.overlay:

    &uart0 {
        status = "disabled";
    };

    In hci_rpmsg.conf:

    CONFIG_SERIAL=n
    CONFIG_UART_CONSOLE=n

    This will disable the uart0 on the network core, and stop the app core from forwarding the pins.

    Uart logging from the network core will be disabled.

Children
Related