How to use small I2C EEPROMs the NuttX way?

2021-04-29 Thread Frank-Christian Kruegel
Hi. I'm currently porting NuttX to some proprietary compute modules with STM32F7 and STM32H7. Each and every board has got a small AT24MAC402 256 Byte EEPROM with additional UID and MAC address accessible under a second I2C address, and many boards have an additional AT24C256 32kB EEPROM. I'

Re: How to use small I2C EEPROMs the NuttX way?

2021-04-29 Thread Frank-Christian Kruegel
Am 29.04.2021 um 15:23 schrieb Gregory Nutt: There are several Microchip/Atmel boards that come with an Atmel MAC in AT24MAC402 EEPROM.  You should be able to clone that logic (including setting the MAC address).  See: samv7/samv71-xult/src/sam_ethernet.c samv7/same70-xplained/src/sam_ethernet

Re: How to use small I2C EEPROMs the NuttX way?

2021-04-29 Thread Frank-Christian Kruegel
Am 29.04.2021 um 20:43 schrieb Gregory Nutt: ... The main reason is that the AT24XX MTD driver only can handle one type of devices on a single bus. .. The is a deficiency in the driver and should be pretty easy to fix by passing the I2C address during driver initialization.  Other drivers do

Re: How to use small I2C EEPROMs the NuttX way?

2021-04-30 Thread Frank-Christian Kruegel
Am 30.04.2021 um 15:06 schrieb Gregory Nutt: ... The main reason is that the AT24XX MTD driver only can handle one type of devices on a single bus. .. The is a deficiency in the driver and should be pretty easy to fix by passing the I2C address during driver initialization. Other drivers do

How to share code and Kconfig between different boards

2021-05-05 Thread Frank-Christian Kruegel
Hi. I've created several board support packages, each in its own out-of-tree directory. Ive configured them as custom boards with a relative path like ... +- nuttx +- apps +- company-boards | +- board1 | +- board2 | +- board3 +- company-apps | +- app1 | +- app2 ... Works fine. These bo

Has anyone written a driver for DS2482S?

2021-05-10 Thread Frank-Christian Kruegel
Hi. Has anybody written a driver for I2C(Slave) to 1Wire (Master) DS2482S-100 or -800? Best Regards Frank-Christian

Re: Dev environment

2021-05-11 Thread Frank-Christian Kruegel
Am 11.05.2021 um 18:41 schrieb Tim: Mac is the machine I know least. I have no "full" Linux machine. No experience of Cygwin and its ilk - just a minefield to me. The best way would be a virtual machine using Virtualbox (https://www.virtualbox.org) (free) or VMWare Player (https://www.vmware.c

how to handle backwards compatibility?

2021-05-17 Thread Frank-Christian Kruegel
Hi. I'm writing several drivers for my custom hardware. One is for a PCA9633 LED driver. I can use the pca9635pw driver for this and modify it so it can be used with PCA9633 (4 outputs), PCA9634 (8 outputs), and PCA9635 (16 outputs) by adding an additional parameter to the driver initalize fu

STM32H7: What happened with the CANFD driver?

2021-07-22 Thread Frank-Christian Kruegel
Hi! Some months ago a member of this mailing list submitted a CANFD driver for STM32H7. What happened with this driver? Is it stuck in the review process? Is additional work to do? Best regards Frank-Christian

STM32F7/H7: DAC driver missing?

2021-07-22 Thread Frank-Christian Kruegel
Hi. I'm wondering where the driver for the STM32F7/H7 DACOUT pins is. For STM32F7 I can select DACOUT1 and DACOUT2 in menuconfig, but I don't find any accompanying source code. For STM32H7 I find traces of DAC configuration, but work there seems to be still in progress. For STM32F4 I do find

Re: Creating our own driver in NUCLEO-H743ZI2 with Nuttx rtos

2021-08-13 Thread Frank-Christian Kruegel
Am 13.08.2021 um 10:43 schrieb rushi ghatkar: Hi, I have configured and installed Nuttx rtos on the Nucleo-H743zi2 board. Now I want to create my own driver. How to create our own driver? Has anyone created their own driver using Nuttx rtos on the STM32 board? Could anybody please tell me how

Re: Lin

2021-08-13 Thread Frank-Christian Kruegel
Am 13.08.2021 um 16:50 schrieb Simon Filgis: Dear all, has anybody implemented a LIN driver for SAME70 USART? The SAME70 USART peripheral is capable of. A SW implementation (sllin.c - Pavel Pisa) would also be interesting! Would you extend sma_lowputc.c and sam_serial.c or would you grep USARTx

Re: Alternatives to FAT for msd

2022-01-19 Thread Frank-Christian Kruegel
Am 19.01.2022 um 19:40 schrieb TimH: - an external PC (ideally Linux, Windows and MAC) needs to be able "see" the data via USB (msd) and read/write to the memory (log data, config files, audio files, etc). Hence FAT. There is MTP (https://en.wikipedia.org/wiki/Media_Transfer_Protocol), which

NuttX and Gigadevice ARM processors?

2022-10-07 Thread Frank-Christian Kruegel
Hi; there is a global shortage of STM32 processors on the market. I've seen STM32F767 selling for 480U$. Has anybody tried Gigadevice processors? They claim to be STM replacements. I've got a design ready for a 144 pin STM32 (either F767 or F427/429), and it seems that the GD32F427 are repla

Re: Sensor implementation

2023-03-12 Thread Frank-Christian Kruegel
My thoughts: simple things should be simple. Getting temperature or humidity values from a sensor only requires a few lines of code. A simple character driver fells just right for me. More code brings more potential bugs with it. The character drivers should remain as an option for simple thin

Re: Hardcoded Pin mux, pad control and Drive Strength (AKA Slew-rate and Frequency) Settings #1570

2023-04-10 Thread Frank-Christian Kruegel
all stm32 families (at least the big ones). Frank-Christian Kruegel

Re: OpenFPGALoader

2023-07-13 Thread Frank-Christian Kruegel
Am 13.07.2023 um 18:52 schrieb Simon Filgis: Indeed the ICE fpgas are loaded by SPI. Interesting. But mine is loaded by JTAG. What FPGA type do you use EXACTLY? Frank-Christian

Re: Raspberry pi 4 Support

2023-07-19 Thread Frank-Christian Kruegel
Am 19.07.2023 um 18:52 schrieb Joseph Gonzalez: Hi, I wanted to try out the NuttX RTOS, but didn't saw support for the RPi 4, is this board supported if not is there a way to add support to it? Raspberry Pi is a difficult target. It is not Open Hardware, and there is a bunch of critical close

STM32H7: Support for Multiprocessing between Cortex M7 and Cortex M4

2020-08-04 Thread Frank-Christian Kruegel
Hello World; I'm about to choose a Cortex M7 microcontroller for a new project. All major vendors (Atmel/Microchip SAME70/V71, STM32F7/H7, NXP IMXRT) seem to be supported. In the list of supportex boards I see a STM32H747i Discovery. The STM32H747 has both a Cortex M7 core and a Cortex M4 co

Bug in arch/arm/stm32h7/src/stm32_ethernet.c

2020-10-26 Thread Frank-Christian Kruegel
Hello World(); When using the CONFIG_STM32H7_PHYINIT option I get an compile error saying that ret ist undefined. Fix: --- nuttx-org/arch/arm/src/stm32h7/stm32_ethernet.c    2020-10-26 12:09:41.855853749 +0100 +++ nuttx/arch/arm/src/stm32h7/stm32_ethernet.c    2020-10-26 12:12:50.923943167

/dev/i2c* and /dev/spi* missing - why?

2020-12-11 Thread Frank-Christian Kruegel
Hi. Platform: STM32H743 Nucleo144 board. I've enabled in menuconfig: System Type:     STM32H7 Peripherial Selection: I2C1 and I2C2, SPI->SYSCFG     I2C Configuration: defaults Device Drivers:     I2C Configuration: (enabled)         Support I2C reset enabled         I2C character driver e

CANFD on ST32H7

2020-12-17 Thread Frank-Christian Kruegel
Hi, I'm currently in the process of testing all peripherials on my Nucleo STM32H743ZI board. So far, I2C, SPI, UART, and Ethernet seem to work. My next step would be CANFD, but I've noticed that there is no stm32_can.c/.h in arch/arm/src/stm32h7 as there is for stm32f7. Since the F7 doen't

Re: USB Host and Bluetooth "dongle".

2021-03-24 Thread Frank-Christian Kruegel
Am 24.03.2021 um 18:34 schrieb Tim: I can also build in Bluetooth support and the demo app, but as far as I can tell there are no actual Bluetooth host drivers in NuttX to properly support a detected Bluetooth device. My custom board actually has a SiLabs Bluetooth module on it (connected to the