News for hackers. Stuff that matters.
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by rzr on Wednesday April 24, 2024 @03:03AM (#40141491)
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/

Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by fellerts on Wednesday April 24, 2024 @03:53AM (#40141784)
How does it compare to e.g. Zephyr or other RTOSes?
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by acassis on Wednesday April 24, 2024 @10:35AM (#40144880)
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.
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by yau8edq12i on Wednesday April 24, 2024 @10:41AM (#40144960)
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?
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by sitzkrieg on Wednesday April 24, 2024 @12:45PM (#40146710)
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

Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by acassis on Wednesday April 24, 2024 @03:51PM (#40148780)
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).
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by pjmlp on Thursday April 25, 2024 @05:32AM (#40155315)
The best description is UNIX like, because NuttX is POSIX based, while many RTOS aren't.
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by snvzz on Wednesday April 24, 2024 @03:15AM (#40141566)
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by detourdog on Wednesday April 24, 2024 @07:11AM (#40142931)
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.
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by acassis on Wednesday April 24, 2024 @10:38AM (#40144914)
Yes! People coming from Unix and Linux feel at home on NuttX! ;-)
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by the__alchemist on Wednesday April 24, 2024 @07:24AM (#40143024)
This is what the ubiquitous (for commercial uses) PX4 flight control firmware uses.
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by BSDobelix on Wednesday April 24, 2024 @08:35AM (#40143613)
I would really like to have RTEMS on a RPI, however it's most focused board's are "space stuff" like LEON Spark's
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by acassis on Wednesday April 24, 2024 @10:36AM (#40144897)
True, and NuttX is replacing RTEMS for space exploration as well: https://developer.sony.com/posts/apache-nuttx-powers-worlds-...
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by BSDobelix on Wednesday April 24, 2024 @11:12AM (#40145317)
>True, and NuttX is replacing RTEMS for space exploration as well

Not really....one use-case = replacing? ;(

https://www.rtems.org/node/139

https://rtems-qual.io.esa.int/

Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by acassis on Wednesday April 24, 2024 @03:55PM (#40148818)
All replacement start with the first entity using a new technology. Soon ESA, NASA, ISRO will start using it. China already uses it, the SPARC V8 port was done by them! ;-)
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by BSDobelix on Thursday April 25, 2024 @04:14AM (#40154824)
>Soon ESA, NASA, ISRO will start using it.

I really hope your in stock trading, you must be successful like hell with your crystal-ball ;)

Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by snvzz on Wednesday April 24, 2024 @10:16AM (#40144652)
Isn't LEON Spark deprecated in favor of RISC-V based LEON-V / NOEL?
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by pantalaimon on Wednesday April 24, 2024 @12:51PM (#40146810)
Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by snvzz on Wednesday April 24, 2024 @04:35PM (#40149256)
Intel and RISC-V at odds lately.

It is also quite odd how SiFive announced a new development board using a non-Intel chip and a year later than expected, when we were previously told it'd be an Intel chip.

Re:How to Use I2C Devices in (Apache) NuttX: Scanning for De... by BSDobelix on Wednesday April 24, 2024 @10:20AM (#40144694)
Yeah your right, but i think for the next 15 years LEON 3 and 4 would still be the norm ;)

I just found the dev fpga board of Noel

https://www.gaisler.com/index.php/products/processors/noel-v...