PINs of nrf5340 are used by BLE stack nrfconnect V2.4.2

Please let us know which PINs of nrf5340 are used by BLE stack and which pins are used by peripherals like UART0 and UART1?
We are converting our code from nrf connect V 1.9.1 to V 2.4.2 and are stuck with it.

we have see this thread https://devzone.nordicsemi.com/f/nordic-q-a/104465/migration-from-nrfconnect-1-9-1-to-2-4-2/449305 

and used the method to define the pins as well.

regards

Vivek

Parents
  • Hello Vivek, I hope you've had a good week-end.

    Please let us know which PINs of nrf5340 are used by BLE stack and which pins are used by peripherals like UART0 and UART1?
    We are converting our code from nrf connect V 1.9.1 to V 2.4.2 and are stuck with it.

    I am not sure if I understand the issue. I do not think any pins are used by the BLE stack per se. There are some that are by default used by UART0 and UART1, though they can also be moved in case you want to use these pins for something else. To see that is currently being used, you can have a look at the generated devicetree file, or have a look at it using a GUI with the device tree 'action' in VSC.

    In case the issue is that you have a difficulty setting pins in NCS 2.4.2 as compared to 1.9.1, it might be that you need to update the application to use 'pin control' in device tree, like it was mentioned in the thread you linked to. For more on pins, and how to change what they are used for, have a look at the fundementals course. It also goes over how to use pin control.

    Regards,

    Elfving

  • :"There are some that are by default used by UART0 and UART1"
    Which are these pins?

    MCU_PCB-5.pdf

    Do we need to change any of the Pins we are using here?

  • I have modified the pins as per our schematic as can be seen below.

    However, while I am now observing bus fault error as can be seen in below error log video. I never observed such issue before.

  • What is this warning here saying? I believe something should pop-up if you hover over it.

    Have you made any changes to the dts after moving to NCS V2.4.2, or is it currently the way you left it in 1.9?

    Regards,

  • What is this warning here saying? I believe something should pop-up if you hover over it.

    below are the warnings


    Have you made any changes to the dts after moving to NCS V2.4.2, or is it currently the way you left it in 1.9?

    We have made changes to overlay as 1.9.1 wasn't working. Furthermore, also installed latest 2.7.0 SDK and using it (not using 2.4.2). The errors are in 2.7.0 (i forgot to mention it in previous response).

    Attaching the the updated overlay for reference.

    6131.nrf5340dk_nrf5340_cpuapp.overlay

    Kindly let me know if you need any futher informaition.

  • I see.

    I should mention that the support for NCS 2.7.0 in VSC is experimental. If you have modified the dts files using the extension with NCS 2.7 that might be a potential issue. If you just left it the way it was in 2.4.2 I guess that should be fine. Though pinctrl and any major changes between NCS versions 1.9 and 2.4.2 can still be an issue.

    TonySingh said:
    The errors are in 2.7.0 (i forgot to mention it in previous response).

    So would it be correct to say that there was no errors in 2.4.2, but after switching to 2.7.0 you got these issues?

    Regards,

    Elfving

  • Hi,
    Okay. So we have shifted to V2.6.1 as we need NCS support. The code is getting compiled. We need to set the Pins correctly to make it work. Team is working for that. We shall come back to you in a day or two.

Reply Children
No Data
Related