How to Use I2C Devices in Apache NuttX: Scanning for Devices

(EmbeddedRelated.com)

50 points | by lupyuen 12 days ago

4 comments

  • rzr 11 days ago
    NuttX worth considering if you're coming from Linux background, I liked it and related community, BTW they have a workshop later this year.

    Back to the subject implementing drivers can be a good warmup exercise, you can get inspiration from hints I have shared:

    https://rzr.github.io/rzr-presentations/docs/nuttx/

    • fellerts 11 days ago
      How does it compare to e.g. Zephyr or other RTOSes?
      • acassis 11 days ago
        I think the best way to compare is trying NuttX and others RTOSes on some supported board (raspberry pi pico, esp32-devkit, stm32f4discovery etc). As rzr said NuttX is easier for people with Linux background, because it is Linux-like. So the way you mount a MMC/SDCard is the same, the way you search for devices using i2ctool is the same, etc.
        • yau8edq12i 11 days ago
          I'm not sure I follow. Why would I want to "use" an mcu board the same way I use my linux desktop? It's not like I'm going to dynamically mount an SD card from a CLI for such an embedded device. Or that I would want to have a CLI at all. It is designed for early prototyping?
          • acassis 11 days ago
            You don't have to mount it dynamically if you don't want. You can use it in a very static way, like your baremetal way to do things. But you can also have option to do it dynamically, case you have different SDCards with different binaries to load (yes, NuttX support dynamic ELF loading as well).
          • sitzkrieg 11 days ago
            Exactly. You can prototype heavily and make sure peripherals, firmware programming, etc is working/to your advantage before doing any pcb work

            That said bigger mcu,mpu +fpga type devboards will still absolutely price out hobbyists

        • pjmlp 10 days ago
          The best description is UNIX like, because NuttX is POSIX based, while many RTOS aren't.
  • snvzz 11 days ago
    • detourdog 11 days ago
      This is what I'm focusing on. I would say nuttX looks great if one is coming from the BSDs. I really want a development platform that is this documented.
      • acassis 11 days ago
        Yes! People coming from Unix and Linux feel at home on NuttX! ;-)
  • the__alchemist 11 days ago
    This is what the ubiquitous (for commercial uses) PX4 flight control firmware uses.
  • BSDobelix 11 days ago
    I would really like to have RTEMS on a RPI, however it's most focused board's are "space stuff" like LEON Spark's