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

I2C communication with nrf5340 custom board

We are using nrf5340-dk to communicate with nrf5340 custom board and trying to search for the other sensors' addresses. There is secure mode and unsecure mode CPU. Which mode to try on? We could not detect the sensors I2C addresses.

Parents
  • Hello Vivek,

    shivkant sharma said:
    > Which samples (nrf / zephyr) i have to run to check functionality of our custom board?

    That depends a little on your use case. The nRF samples are tailored towards our hardware and API, but we are still using Zephyr and its interfaces as RTOS. The Zephyr samples are generic samples, based on the Zephyr API. The nRF samples will as well demonstrate the usage of our own library and driver implementations.

    For getting started with I2C, I recommend use Zephyrs API though.

    shivkant sharma said:
    > As we connected my board using nrf5340 PDK board for programming but not able to see printk log on segger IDE debug console? how can i see log using PDK board.
    I also tried hello_world samples code from zephyr. There is no printk log on console.

    That is probably due to that the SEGGER debug console is not enabled by default. You wanna make sure enabling CONFIG_USE_SEGGER_RTT and CONFIG_RTT_CONSOLE in prj.conf of your application.

    When doing so, I can recommend to disable CONFIG_UART_CONSOLE to avoid high bus loads.

    I hope this answers your questions!

    Regards,

    Markus

Reply
  • Hello Vivek,

    shivkant sharma said:
    > Which samples (nrf / zephyr) i have to run to check functionality of our custom board?

    That depends a little on your use case. The nRF samples are tailored towards our hardware and API, but we are still using Zephyr and its interfaces as RTOS. The Zephyr samples are generic samples, based on the Zephyr API. The nRF samples will as well demonstrate the usage of our own library and driver implementations.

    For getting started with I2C, I recommend use Zephyrs API though.

    shivkant sharma said:
    > As we connected my board using nrf5340 PDK board for programming but not able to see printk log on segger IDE debug console? how can i see log using PDK board.
    I also tried hello_world samples code from zephyr. There is no printk log on console.

    That is probably due to that the SEGGER debug console is not enabled by default. You wanna make sure enabling CONFIG_USE_SEGGER_RTT and CONFIG_RTT_CONSOLE in prj.conf of your application.

    When doing so, I can recommend to disable CONFIG_UART_CONSOLE to avoid high bus loads.

    I hope this answers your questions!

    Regards,

    Markus

Children
No Data
Related