How to compile dts

Hi All,

I'm new for Zephyr platform. I want to use my own NRF52832 board and the bluetooth hci uart in the zephyr official examples to make a BLE controller. Because the uart pins need to be modified, and I know if I want to change the uart driver, I must use the device tree overlay file. I want to know how to add overlay files in my project and how to use them to generate the new c headers like devicetree_unfixed.h.

BTW, I'm using SES as the default IDE. And the nrf connect SDK(offline package v1.9.0 zip file) is provided by my mates due to the github is not stable in my country and nRF connect SDK cannot be installed properly by the nrf connect Toolchain manager.

Parents
  • Hi,

    To change the UART pins you should make an overlay file, as you write. You can for instance look at this post. Just remember that you use uart0 and call the overlay file the name the board you are using suffixed with .overlay. If you don't want to change the speed, simply remove that line. Or set it to what you need.

    As you are using SES you need to re-open the project after adding the over lay to reconfigure it (from File -> Open nRF Connect SDK Project...). If you had been using a command line or the VS Code plugin, simply do a pristine build.

Reply
  • Hi,

    To change the UART pins you should make an overlay file, as you write. You can for instance look at this post. Just remember that you use uart0 and call the overlay file the name the board you are using suffixed with .overlay. If you don't want to change the speed, simply remove that line. Or set it to what you need.

    As you are using SES you need to re-open the project after adding the over lay to reconfigure it (from File -> Open nRF Connect SDK Project...). If you had been using a command line or the VS Code plugin, simply do a pristine build.

Children
No Data
Related