RE: Sensor DS18b20

2022-08-02 Thread disruptivesolutionsnl
Ahh yes thank you! I was looking in the wrong place . it has been too long 😉 -Oorspronkelijk bericht- Van: Alan Carvalho de Assis Verzonden: dinsdag 2 augustus 2022 21:43 Aan: dev@nuttx.apache.org Onderwerp: Re: Sensor DS18b20 maybe you are not looking at the right place: https://g

RE: Sensor DS18b20

2022-08-02 Thread disruptivesolutionsnl
Its not there anymore? Or am I missing something? Ben -Oorspronkelijk bericht- Van: Alan Carvalho de Assis Verzonden: dinsdag 2 augustus 2022 21:30 Aan: dev@nuttx.apache.org Onderwerp: Re: Sensor DS18b20 Hi Ben, It is supposed to be at drivers/sensors/ds18b20.c BR, Alan On 8/2/22,

Sensor DS18b20

2022-08-02 Thread disruptivesolutionsnl
Is there a driver available for the DS18b20/DS1820? And yes where can I find dit? Thanks in advance Ben

ISR interrupt and Driver for Hall sensor Hamlin 55100 for detecting speed

2021-10-16 Thread disruptivesolutionsnl
Hello, Who could point out a way to implement a Hall sensor driver for say the Hamlin 55100? Is there an example (driver) which is already in the repository? Say an "attachInterrupt" routine like in the Arduino stack? Thanks again. Ben

STM32 DevEBox

2021-08-13 Thread disruptivesolutionsnl
Hi All, Ik had the STM32F407xE (https://github.com/mcauser/MCUDEV_DEVEBOX_F407VET6) and others on this site added in NuttX 8.2 BSD version. Is it plausible to bring these over to this NuttX version. Or is it already in place? Thanks again. Ben

1-wire STM32

2021-06-19 Thread disruptivesolutionsnl
Hello, I see some info searching Google about the 1-Wire (through USART) implementation for NuttX. It seems there is a driver for it for use through U(S)ART. Did someone already have implemented STM32 for it? src/stm32_1wire.c (or something) how I could initialize this driver? I appreci

RE: Assert and Debug issues

2021-05-13 Thread disruptivesolutionsnl
--> My reply 1) If I enable Debug Assertions the build will not run at all as it halts very very early on. Debugger suggests the system is in up_idle(). --> Mostly this is caused by a "fault" somewhere down the line. Does it "print" ABCDE? Did you enable "debug" in make menuconfig? 2) Any (valid

RE: CAN example crashes

2021-05-08 Thread disruptivesolutionsnl
Non of these. I do not need this overhead? Ben -Oorspronkelijk bericht- Van: Grr Verzonden: zaterdag 8 mei 2021 19:57 Aan: dev@nuttx.apache.org Onderwerp: Re: CAN example crashes No, I mean on top of that: CANopen, UAVCAN, other? El sáb., 8 de may. de 2021 12:44 PM, escribió: > You

RE: CAN example crashes

2021-05-08 Thread disruptivesolutionsnl
Maybe my video from some while ago CAN help ? https://www.youtube.com/watch?v=sSpNrP0DUI4 Ben -Oorspronkelijk bericht- Van: Grr Verzonden: zaterdag 8 mei 2021 19:09 Aan: dev@nuttx.apache.org Onderwerp: Re: CAN example crashes Hello. What protocol do you use on top of CAN? El sáb., 8

RE: CAN example crashes

2021-05-08 Thread disruptivesolutionsnl
You mean CAN FD or the CAN V2.0B? I use the standard with Extended ID's. (MCP2515 / SPI) for automotive interaction. https://ww1.microchip.com/downloads/en/DeviceDoc/MCP2515-Stand-Alone-CAN-Controller-with-SPI-20001801J.pdf Ben -Oorspronkelijk bericht- Van: Grr Verzonden: zaterdag 8 m

NuttX on EmbeddedWorld2021... Zephyr is..

2021-04-10 Thread disruptivesolutionsnl
Hi All, In Elektor I see that the promotion of Zephyr (also Apache2.0 licensed) is named. Is there also something about NuttX in this matter? Thanks Ben

RE: PWM advanced and normal timers (STM32)

2021-04-05 Thread disruptivesolutionsnl
Thank you. Then my observation was a good one. This is not like the datasheet was telling how the driver "should" work. I was trying to solve this, but its deep in the core system where this CONFIG_PWM_PULSECOUNT has effect. If I only had more time Ben -Oorspronkelijk bericht- Van:

TIMER thougt-problem COUNT and TIME BASED together STM32F4xxx

2021-04-04 Thread disruptivesolutionsnl
I Tried to show the difference (debug) in one image https://imgshare.io/image/image.p307iH I tried to state the differences... according the reference sheets and application notes from the STM32F4xx family this should work "together" where you use say TIM1 (or TIM8) [ADVANCED TIMERS] w

RE: PWM advanced and normal timers (STM32)

2021-04-03 Thread disruptivesolutionsnl
So /dev/pmw0 = TIM1 /dev/pmw1 = TIM4 All well.. but with CONFIG_PWM_PULSECOUNT only TIM1 is working when you give in counts but with counts=0 nothing happens TIM4 is quitting immediatly. with CONFIG_PWM_PULSECOUNT DISABLED I can use both in a generic way... I think the: #i

PWM advanced and normal timers (STM32)

2021-04-03 Thread disruptivesolutionsnl
Hi, I was implementing the following use-case: On TIM1 (advanced) timer I want to use pulse counts (By configuring and enabling: "CONFIG_PWM_PULSECOUNT") And for TIM4 I do NOT want to use this. Just normal time-based. But when I use examples/pwm_main.c this is giving me very strange responses.

RE: Quadrature Encoder SNG-QPDB-002

2021-02-20 Thread disruptivesolutionsnl
Thank you. I am not so experienced as all you are. So I am a couple of years behind... but beter late then never 😉 I recon I have to place some sort of voltage divider for the pins on the QEncoder. This because i twill blow my MCU? Right? Ben -Oorspronkelijk bericht- Van: Gregory Nut

Quadrature Encoder SNG-QPDB-002

2021-02-20 Thread disruptivesolutionsnl
Hi all, I have a Honywell Quadrature Encoder: http://www.farnell.com/datasheets/2329419.pdf The LM7366R seems tob e an option, but this chip is hard to obtain and is old (so it seems). Would it be possible to get this encoder to work with say an STM32? (32-bit timer I think)? I want to read

RE: ssd1306 oled help

2020-12-08 Thread disruptivesolutionsnl
Hello Matt, You have 2 enable i2ctool in make menuconfig (also see blog Alan): https://acassis.wordpress.com/2019/01/19/how-to-use-nuttx-i2c-scan-features/ And then on the prompt in NuttX you can do the command say: i2c dev -b 1 0x00 0x7f It will show you the used I2C addresses. Hope this will

RE: NuttX and continuous ADC conversion

2020-10-21 Thread disruptivesolutionsnl
Nice.. I just want to use the ADC as feedback sensor for a plunger... I all works fine until the FIFO is full 😉 -Oorspronkelijk bericht- Van: Daniel Pereira Carvalho Verzonden: woensdag 21 oktober 2020 21:01 Aan: dev@nuttx.apache.org Onderwerp: Re: NuttX and continuous ADC conversion M

RE: NuttX and continuous ADC conversion

2020-10-21 Thread disruptivesolutionsnl
I have implemented a daemon which uses sigaction. And indeed the ADC works with this solution until the FIFO is full... Maybe I have to add an IOCT that resets the ADC?... Or set the FIFO buffer back? Or make a ringbuffer instead of FIFO Ben -Oorspronkelijk bericht- Van: Nathan Har

RE: NuttX and continuous ADC conversion

2020-10-21 Thread disruptivesolutionsnl
Thats correct... so I have to start the conversion every time over again... and het the value after that conversion I have seen continuous conversions ADC on an STM32... I will try to find a plausible solution. Ben -Oorspronkelijk bericht- Van: Daniel Pereira Carvalho Verzonden:

NuttX and continuous ADC conversion

2020-10-21 Thread disruptivesolutionsnl
Is it possible to achieve a continuous ADC conversion, where the sample[0].am_data is written in a struct (and constantly updated) and where I can get and check the voltage from the ADC? I have it working that the value I get is true and it also seems to measure the change, but after some time

Say I do not want to use a board but a standalone MCU say the STM32F722RET6

2020-09-26 Thread disruptivesolutionsnl
NuttX speaks of "boards" and not about MCUs. Maybe a dumb question, but does NuttX run on custom made PCB's where one uses the MCU named in "boards"? Or is there something with a bootloader or something? With DFU I can push nuttx.bin right (if the mcu supports it). Is there some wish to add the

RE: Color ANSI support in nsh

2020-08-16 Thread disruptivesolutionsnl
Please do not make technology about looks in functionality it has to work and be solid and has to address its purposes. If all is finished and value is there, one could bring a nice color too it 😉 Color is throwing money where functionality died Ben -Oorspronkelijk bericht- Van

RE: NuttX Online Workshop

2020-08-15 Thread disruptivesolutionsnl
And will there be a Zoom link? Or did I miss some info? Ben -Oorspronkelijk bericht- Van: Schock, Johannes - NIVUS GmbH Verzonden: zaterdag 15 augustus 2020 10:33 Aan: 'dev@nuttx.apache.org' Onderwerp: NuttX Online Workshop Just a hint: If I'm correct, https://nuttx.events/ is broken

RE: Algorithm and Nuttx integration other platforms AI..Kalman..et....

2020-04-17 Thread disruptivesolutionsnl
@Nathan Maybe I am just a simple soul .but the root concept is (seems to be) shared memory. Memory which is some sort of "topic" where an MCU is a "subscriber" and where there is some sort of "applicational" orchestration. A kafka bus on memory 😉 I think I am getting it, but where I am str

RE: Algorithm and Nuttx integration other platforms AI..Kalman..et....

2020-04-17 Thread disruptivesolutionsnl
I added (git cloned some elementary files: libmetal and open-amp) and I have got it build and compiled in Nuttx again. Now looking at videos how I could use it. My "sensor" core (slave..?) is a STM32F4VE. Ben -Oorspronkelijk bericht- Van: Gregory Nutt Verzonden: vrijdag 17 april 2020

RE: Algorithm and Nuttx integration other platforms AI..Kalman..et....

2020-04-17 Thread disruptivesolutionsnl
Very interesting... but Openamp was removed right? Ben -Oorspronkelijk bericht- Van: Daniel Pereira Carvalho Verzonden: vrijdag 17 april 2020 14:27 Aan: dev@nuttx.apache.org Onderwerp: Re: Algorithm and Nuttx integration other platforms AI..Kalman..et Hi, Did you think about an a

Algorithm and Nuttx integration other platforms AI..Kalman..et....

2020-04-17 Thread disruptivesolutionsnl
All, I want to experiment with sensor fusion. Nuttx is the sensor "collector" and does this in a great way. I want to use python for adding algorithms and micro python is gone. With reason I think. And the embedded platform Cortex-M4's mostly are not suited for this job. To slow in general.

RE: Adding support for STM32G474RET6

2020-04-15 Thread disruptivesolutionsnl
Most of the "video's" and "learning material" for Nuttx is based on the STM32F1. So that's validation enough? And quirks? Which MCU does not have quirks? I benchmarked all kinds of MCU's and every supplier/vendor has quirks and really annoying features and/or other quirks. Documentation, support, e

RE: SDIO MMCSD card is not writing/reading files anymore it does mount CMD24 -5 error

2020-04-14 Thread disruptivesolutionsnl
Update: I think I have found it. it has to do with 1-bit and 4-bit: The SDIO Card Specification Version 2.0 is also supported with two different databus modes: 1-bit (default) and 4-bit. Nuttx has default 4-bit and that's why I was thrown of. I tried to change the SDIO Clock (DIV) and wan

RE: SDIO MMCSD card is not writing/reading files anymore it does mount CMD24 -5 error

2020-04-13 Thread disruptivesolutionsnl
Update: My purpose is to write data to a file in a thread. With append. Writing once works. int nbytesi; nbytesi = write(fd_mmcsd, g_testmsg, strlen(g_testmsg)); if (nbytesi < 0) { printf("write_test_file: ERROR failed to write to %s, errno=%d\n", "/dev/mm

SDIO MMCSD card is not writing/reading files anymore it does mount CMD24 -5 error

2020-04-13 Thread disruptivesolutionsnl
Hi All, I had the SD card written with using Nuttx, but then it stopt writing and reading to and from the SD card. I get a CMD24 error: mmcsd_eventwait: ERROR: Awakened with 14 mmcsd_writesingle: ERROR: CMD24 transfer failed: -5 It seems to think it wrote bytes, but no file there. What a

RE: File Descriptor expanding freezes MCU and SDIO -116 when I enable DEV-GPIO

2020-04-09 Thread disruptivesolutionsnl
THREAD CAN BE CLOSED -- SOLVED! SOLUTIONS: 1) File Descriptor expanding freezes MCU Like Bernd stated! 2) SDIO -116 when I enable DEV-GPIO Datasheet also comfirms: PD2 -> SDIO_CMD Changed: #define GPIO_OUT1 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_PORTD|GPIO_PIN2) To: #define GPIO_OUT1

RE: File Descriptor expanding freezes MCU and SDIO -116 when I enable DEV-GPIO

2020-04-09 Thread disruptivesolutionsnl
I always do a: sudo find ../apps/. -type f -name '*.o' -delete sudo make clean && sudo make sudo make distclean is reconfiguring kernel ... ... offcourse yes! It is not crashing anymore!!! Thanks Bernd! Now find out why my mount -t vfat /dev/mmcsd0 /sd is giving a 116 maount failed when DEV_G

File Descriptor expanding freezes MCU and SDIO -116 when I enable DEV-GPIO

2020-04-09 Thread disruptivesolutionsnl
Hi all, 2 questions: File Descriptor expanding freezes MCU 1) Maybe a too simple question.. But why is my MCU "freezing up" when I expand my File Descriptors: RTOS Features -> Files and I/O -> Maximum number of file descriptors per task .. From 8 --> 10. freeze. Back to 8. Oke. SDIO

Nuttx and SPI when using a gate 74AHC1G125

2020-01-12 Thread disruptivesolutionsnl
Why is the CS not pulled low at the end? So it can receive the last 0xFF? When I bypass the gate it is working.. Using the gate it is not? Thanks Ben

RE: stm32_extmem.c and FSMC SDRAM solution in Nuttx?

2020-01-08 Thread disruptivesolutionsnl
I just got a 23LC1024 (128kb SDRAM 1MBit) and want to "attach" this as external RAM. To scale up the free mem. I am looking at examples like stm32_extmem.c and qspi.. which one is best to use? And do I have to "make" a driver for it? And bind it to SPI? Or are my thoughts wrong? Thanks again...

stm32_extmem.c and FSMC SDRAM solution in Nuttx?

2020-01-05 Thread disruptivesolutionsnl
All, I want to set up some generic SDRAM as a component (board) to support the ILI9341 LCD screens. I tried a few boards now (L476RG, F407VE, etc.), but all seem to come short in (SD)RAM fort he framebuffer. What do you advise? And is there already a solution in Nuttx for it? In this ar

RE: NX Graphics

2020-01-05 Thread disruptivesolutionsnl
Oke I think I am getting somewhere Priv has (during lcd_framebuffer): fblen -> 153600 xres -> 320 yres -> 240 stride -> 640 display -> 0 '\0' fbmem = 0x0 *fbmem -> 72 'H' But it stil runs into this error: priv->fbmem = (FAR uint8_t *)kmm_zalloc(priv->fblen); if (priv->fbmem == NULL) {

RE: NX Graphics

2020-01-04 Thread disruptivesolutionsnl
Priv->fblen = 0 -Oorspronkelijk bericht- Van: Gregory Nutt Verzonden: zaterdag 4 januari 2020 21:02 Aan: dev@nuttx.apache.org Onderwerp: Re: NX Graphics > nsh> free > > procfs_open: Open 'meminfo' > > meminfo_open: Open 'meminfo' > > procfs_read: buffer=0x16d0 buflen=512 > > meminf

RE: NX Graphics

2020-01-04 Thread disruptivesolutionsnl
Ow and PS: With FSMC I could allocate the framebuffer tot he ILI9341??? -Oorspronkelijk bericht- Van: Gregory Nutt Verzonden: zaterdag 4 januari 2020 21:09 Aan: dev@nuttx.apache.org Onderwerp: Re: NX Graphics >> priv->fbmem = 0 > But what was priv->fblen? The size you are trying to a

RE: NX Graphics

2020-01-04 Thread disruptivesolutionsnl
Yes... but where does it get set? I tried the f429i and compared "free": (picture… hope it shows) -Oorspronkelijk bericht- Van: Gregory Nutt Verzonden: zaterdag 4 januari 2020 21:09 Aan: dev@nuttx.apache.org Onderwerp: Re: NX Graphics >> priv->fbmem = 0 > But what wa

RE: NX Graphics

2020-01-04 Thread disruptivesolutionsnl
nsh> free procfs_open: Open 'meminfo' meminfo_open: Open 'meminfo' procfs_read: buffer=0x16d0 buflen=512 meminfo_read: buffer=0x16d0 buflen=512 total used freelargest Umem: 192576 7696 184880 124848 procfs_read: buffer=0x16d0 bufle

RE: NX Graphics

2020-01-04 Thread disruptivesolutionsnl
priv->fbmem = (FAR uint8_t *)kmm_zalloc(priv->fblen); if (priv->fbmem == NULL) { lcderr("ERROR: Failed to allocate frame buffer memory\n"); I dont seem to get fbmem filled. tried all config options, but it stays empty. I do not have NX(WM) activated. The framebuffer should be

NX Graphics

2020-01-04 Thread disruptivesolutionsnl
All, I am trying to get a ILI9341 working and a tip from Dave gave me the option to implement it as a generic SPI driver. Before I have tried to do this with LTDC and FMC like on the STM32F429i. But in both cases I get in pdccurses: * Unable to create SP: in pdc_initscr.c its not rea

404 on site (Project status Nuttx)

2019-12-27 Thread disruptivesolutionsnl
http://incubator.apache.org/projects/nuttx.html Gives back 404's when clicking on links like Board Reports and Website. And Wiki is nog active yet? No dates are filled here? Is this not the right project overview site? Roadmap/status? Ben

RE: Getting Started (Was Re: [DISCUSS - NuttX Workflow])

2019-12-18 Thread disruptivesolutionsnl
My current state is that the outline is formed and that the filling per "chapter" is on its way and that the purpose of the book is set. Its public is also for people who come across Nuttx for the first time and do not have seen movies or other tutorials from Nuttx and did not have the privilege