Where is ERROR defined?

2021-07-02 Thread Oleg
Hi all, Could someone be so kind as to point me out where is ERROR (-1) defined in NuttX code? --- With regards, Oleg.

Re: Where is ERROR defined?

2021-07-03 Thread Oleg
Oh, it is enum, I was searching for define. Thanks, Alan! пт, 2 июл. 2021 г. в 22:39, Alan Carvalho de Assis : > $ cat include/sys/types.h | grep ERROR > ERROR = -1, > > > On 7/2/21, Oleg wrote: > > Hi all, > > > > Could someone be so kind as to point me out

CAN3 RX not working, STM32F7

2022-02-24 Thread Oleg
ause of my issue. Thanks in advance! --- With best regards, Oleg.

Re: CAN3 RX not working, STM32F7

2022-03-03 Thread Oleg
Hi Alan, Thanks for the participation! In the end I've dug into the driver code and found the bug with CAN3 filter configuration. Here is the fix: https://github.com/apache/incubator-nuttx/pull/5677 --- With best regards, Oleg. чт, 24 февр. 2022 г. в 23:01, Alan Carvalho de Assis : >

Re: SD FAT32: Write failed with err 28 (no space left on device)

2022-03-09 Thread Oleg
de was tested well for > store-into cache mode. Store-through was known to be working. > > -Bob > > On Fri, Sep 18, 2020, 3:11 AM Oleg Evseev wrote: > >> I've debugged this issue and found out that in such moments fs_buffer is >> not filled fully - if I read the same c

Re: Wiznet W5500 Ethernet device driver?

2022-04-29 Thread Oleg
Hi Greg, By the way, could you please kindly advise what can be used as base example for such USRSOCK driver. In my case I would like to use ESP32 network stack through AT commands. Thanks in advance! --- With best regards, Oleg. чт, 28 апр. 2022 г. в 19:53, Gregory Nutt : > Shouldn'

Potential UDP packets loss, how to debug?

2022-08-04 Thread Oleg
or maybe someone remember potentially related fixes in UDP/Ethernet in recent NuttX? Thanks in advance for help! --- With best regards, Oleg.

Question about Music Macro Language

2023-05-26 Thread Oleg
Hi all, While playing with generating audio tones (thanks for the manual <https://www.youtube.com/watch?v=3U6OZaGnYcc>, Alan!), I wonder what I need to write to /dev/tone to get constant signal, 100% PWM on the audio pin, that is beep of maximum volume? --- With best regards, Oleg.

Re: Question about Music Macro Language

2023-05-26 Thread Oleg
single constant beep with highest volume (that is the same as if just set and keep HIGH to pin of the buzzer) пт, 26 мая 2023 г. в 12:08, Tomek CEDRO : > On Fri, May 26, 2023 at 10:43 AM Oleg wrote: > > Hi all, > > While playing with generating audio tones (thanks for the ma

MTD data corruption issue when written with DMA from different threads

2023-06-22 Thread Oleg
uot;Potential UDP packets loss" that was fixed in https://github.com/apache/nuttx/pull/6831. Unfortunately I don't have enough perception of dcache, how to debug such time-related things, so I'm looking for any advice. --- With best regards, Oleg.

Re: MTD data corruption issue when written with DMA from different threads

2023-06-23 Thread Oleg
tern or specific offsets of corruption. [image: изображение.png] --- With best regards, Oleg. пт, 23 июн. 2023 г. в 00:07, Petro Karashchenko < petro.karashche...@gmail.com>: > Hi, > > Could you please add some more information about the configuration like > "CONFIG_STM32F7

stm32f7 CONFIG_RAM understanding

2020-08-04 Thread Oleg Evseev
Hi, I wonder why stm32f7 boards has such RAM parameters in defconfigs: CONFIG_RAM_SIZE=245760 CONFIG_RAM_START=0x2001 Where do these numbers come from while memory map is this? [image: изображение.png] --- With regards, Oleg

Re: stm32f7 CONFIG_RAM understanding

2020-08-04 Thread Oleg Evseev
:27, Gregory Nutt : > External SRAM? > > On 8/4/2020 1:08 PM, Oleg Evseev wrote: > > Hi, > > I wonder why stm32f7 boards has such RAM parameters in defconfigs: > CONFIG_RAM_SIZE=245760 > CONFIG_RAM_START=0x2001 > > Where do these numbers come from w

Re: stm32f7 CONFIG_RAM understanding

2020-08-04 Thread Oleg Evseev
onfig and ask this question (of course it may not be related to my issue). вт, 4 авг. 2020 г. в 22:49, David Sidrane : > Both are not used in the source. I would assume it is a legacy C&P from > the F4, that should be removed. > > > > *From:* Oleg Evseev [mailto:ev.m...@g

Re: stm32f7 CONFIG_RAM understanding

2020-08-04 Thread Oleg Evseev
Oh, ok. Thanks for clarification! ср, 5 авг. 2020 г. в 01:03, David Sidrane : > Hi Oleg, > > > > There are many up_allocateheap In the source tree…but an F7 on PX4 master > has: > > > > And it does not use CONFIG_RAM_END (CONFIG_RAM_START+CONFIG_RAM_SIZE) > >

Re: stm32f7 CONFIG_RAM understanding

2020-08-04 Thread Oleg Evseev
Hi Gustavo, You are right, this one almost surely explains the origin of these specific numbers in config! Thanks! ср, 5 авг. 2020 г. в 01:07, Gustavo Henrique Nihei : > Hi Oleg, > > STM32F746 and STM32F769, although both being from the STM32F7 family, they > provide differen

Telnet: up arrow key in putty returns ^[[A

2020-08-16 Thread Oleg Evseev
ernet - nothing helps. Windows 10, Extra putty 0.29 RC2 (I've also tried usual putty) Can it be NuttX issue? Thanks in advance for any thoughts. --- With regards, Oleg.

Re: Telnet: up arrow key in putty returns ^[[A

2020-08-16 Thread Oleg Evseev
Hi Alan, I can open an issue, but I can't check the latest NuttX master in the near future, so I would like not to additionally disturb people yet :) вс, 16 авг. 2020 г. в 17:07, Alan Carvalho de Assis : > Hi Oleg, > > Well, I don't know if there is an easy way to fix it.

Re: Telnet: up arrow key in putty returns ^[[A

2020-08-23 Thread Oleg Evseev
You are right! Great thanks! сб, 22 авг. 2020 г. в 02:59, Abdelatif Guettouche < abdelatif.guettou...@gmail.com>: > You must be missing CONFIG_TELNET_CHARACTER_MODE > > On Sun, Aug 16, 2020 at 3:32 PM Oleg Evseev wrote: > > > > Hi Alan, > > > > I can open

SD FAT32: Write failed with err 28 (no space left on device)

2020-09-07 Thread Oleg Evseev
I already have several corrupted files), breaks FAT system itself in that way it can lead to this exact error for new sessions? Thanks in advance for any help! --- With regards, Oleg.

Re: SD FAT32: Write failed with err 28 (no space left on device)

2020-09-18 Thread Oleg Evseev
dware read using dma (CONFIG_STM32F7_DMACAPABLE=y, CONFIG_STM32F7_SDMMC_DMA=y). MCU is stm32f767 It doesn't happen every time, but quite rare. Any thoughts where should I look further? пн, 7 сент. 2020 г. в 10:49, Oleg Evseev : > Hi all, > > I'm working with stm32f7 custom boa

Serial console strange behaviour

2020-11-11 Thread Oleg Evseev
s only the first output line. Other lines are shown only if I type at least one symbol. I tried with and without CONFIG_USART6_RXDMA - same result. USB CDC ACM console works OK. Any thoughts on what can cause such behavior? --- With best regards, Oleg

Re: Serial console strange behaviour

2020-11-11 Thread Oleg Evseev
any PX4IO drivers or RC input? > > -Original Message- > From: Oleg Evseev [mailto:ev.m...@gmail.com] > Sent: Wednesday, November 11, 2020 3:09 AM > To: dev@nuttx.apache.org > Subject: Serial console strange behaviour > > Hi, > > Custom board stm32f7, PX4 based

Re: Serial console strange behaviour

2020-11-12 Thread Oleg Evseev
lease (you will need this patch to not get a hadrfault https://github.com/apache/incubator-nuttx/pull/2209)? ср, 11 нояб. 2020 г. в 14:18, Oleg Evseev : > No, it is the same board and config that worked before with NuttX 8.2 > without such issues. Only several modifications same as was done

STM32F4 SPI DMA buffer size issue

2020-11-24 Thread Oleg Evseev
? Thanks in advance for help! --- With regards, Oleg.

Re: STM32F4 SPI DMA buffer size issue

2020-11-24 Thread Oleg Evseev
thout DMA) reducing SPI frequency from 24MHz to 20MHz seems to fix the problem (but maybe it depends on delays and may appear again once there will be more commands on boot for instance, I don't know). Quite a strange behaviour for now. вт, 24 нояб. 2020 г. в 17:12, David Sidrane : > Oleg, &g

Re: STM32F4 SPI DMA buffer size issue

2020-11-25 Thread Oleg Evseev
files, but it is empty. SD content also empty, ls shows only created empty log dir on boot, but can't store anything (for example on echo - "No such file or directory"). I turned off all uart DMA just in case, but it didn't help. вт, 24 нояб. 2020 г. в 21:45, David Sidrane :

Re: STM32F4 SPI DMA buffer size issue

2020-11-25 Thread Oleg Evseev
oards/omnibus/f4sd/nuttx-config/nsh/defconfig#L161 As I understand in this case NuttX SPI driver will if it is possible to do DMA from the selected addres (CONFIG_STM32_DMACAPABLE) and probably does not use DMA at all, right? ср, 25 нояб. 2020 г. в 14:03, David Sidrane : > Oleg, > > You ar

Can't make work shared file for CAN

2020-01-15 Thread Oleg Evseev
mmediately. Doing file_detach() as describe in https://www.nuttx.org/doku.php?id=wiki:nxinternal:detachedfds leads to the same result. Any thoughts? Thanks. -- With regards, Oleg Evseev

Re: Can't make work shared file for CAN

2020-01-15 Thread Oleg Evseev
_read on file pointer doesn't work in the same way as read on file descriptor, even if it is in the same thread - right after file_open! чт, 16 янв. 2020 г. в 00:11, Disruptive Solutions < disruptivesolution...@gmail.com>: > Oleg: do you use an extended ID or standard ID? And do

Re: Can't make work shared file for CAN

2020-01-16 Thread Oleg Evseev
Hi Gregory, I found the problem. Made an issue: https://github.com/apache/incubator-nuttx/issues/111 чт, 16 янв. 2020 г. в 00:31, Gregory Nutt : > > > But file_read on file pointer doesn't work in the same way as read on > file > > descriptor, even if it is in the same thread - right after file_

Usrsocktest app example fails

2020-02-20 Thread Oleg Evseev
7;m still thinking that I've set something wrong, especially due to fact that I'm playing with it through px4 project in fact (but using latest original Nuttx). Thanks for any thoughts. -- With regards, Oleg.

Re: Usrsocktest app example fails

2020-02-20 Thread Oleg Evseev
onnect. */ ret = connect(test_sd[tidx], (FAR const struct sockaddr *)&addr, sizeof(addr)); -> usrsock_connect: /* Wait for completion of request (or signal). */ ret = net_lockedwait(&state.recvsem); чт, 20 февр. 2020 г. в 13:19, Oleg Evseev : > Hi all,

Re: Usrsocktest app example fails

2020-02-21 Thread Oleg Evseev
Hi Masayuki, Thanks for the work! Looking forward to new PRs. пт, 21 февр. 2020 г. в 08:42, Ishikawa, Masayuki (SHES) < masayuki.ishik...@sony.com>: > Hi, Oleg, > > > > Though I am not an author of the code, > > I found a couple of bugs both usrsocktest and nuttx

Re: Usrsocktest app example fails

2020-02-22 Thread Oleg Evseev
. Will see after checking this PR. In any case, thanks for your time and support! сб, 22 февр. 2020 г. в 13:38, Xiang Xiao : > Oleg, try this PR: > https://github.com/apache/incubator-nuttx/pull/354 > with Masayuki and my patch, all test in usrsocktest should pass now. > Actually, all

Re: Usrsocktest app example fails

2020-02-24 Thread Oleg Evseev
ry corrruption(maybe the > stack too small) which platform you are running. > > On Sat, Feb 22, 2020 at 6:52 PM Oleg Evseev wrote: > > > > Hi Xiang, > > > > I can check it only on Monday, thanks! > > > > But, by the way, in commits you mentioned sever

[PATCH] apps, system/cu fix and additional option

2020-03-13 Thread Oleg Evseev
1) system/cu: fix wrongly swapped parity options 2) system/cu: add option -f to loop forever endless mode: pass all characters and ignore escape sequence, handy to interact with serial devices with binary protocol -- Best Regards, Oleg

Re: [PATCH] apps, system/cu fix and additional option

2020-03-13 Thread Oleg Evseev
Hi, Resend txts сб, 14 мар. 2020 г. в 00:31, Abdelatif Guettouche < abdelatif.guettou...@gmail.com>: > Hi Oleg, > > Unfortunately the patch didn't make it through. > Could you please resend it again with a .txt extension or open a PR in > https://github.com/apache/i

Re: [PATCH] apps, system/cu fix and additional option

2020-03-13 Thread Oleg Evseev
process smother. > If you can use Github, please for future contributions submit PRs at > https://github.com/apache/incubator-nuttx and > https://github.com/apache/incubator-nuttx-apps > > Thanks. > > On Fri, Mar 13, 2020 at 9:41 PM Oleg Evseev wrote: > > > > Hi, &

Get size of block character device file with stat()

2020-05-25 Thread Oleg Evseev
ze for stat(). Thanks for any thoughts! -- With regards, Oleg.

Re: Get size of block character device file with stat()

2020-05-25 Thread Oleg Evseev
25 мая 2020 г. в 15:03, Oleg Evseev : > Hi, > > I wonder how to get size of character device that referenced mtd partition > block device? As I see bchlib_setup in drivers/bch/bchlib_setup.c fills > block geometry info to bchlib_s structure (number of sectors and sector > s

Re: Get size of block character device file with stat()

2020-05-25 Thread Oleg Evseev
> The bch driver supports an IOCTL called BIOC_GEOMETRY that will return the geometry of the underlying block device. Yes, I understand. But user application handle all files the same way using path and int stat(FAR const char *path, FAR struct stat *buf) function. I've made a pull request #1118

How to debug DEBUGASSERT in shed?

2020-06-30 Thread Oleg Evseev
/* Read the RX message */ CANreceive(); } } void CANreceive(CANmodule_t *CANmodule){ struct can_msg_s msg = {}; ssize_t nbytes; nbytes = file_read(&CANmodule->file, &msg, sizeof(struct can_msg_s) ); ... } Thanks in advance for any help. -- With regards, Oleg.

Re: How to debug DEBUGASSERT in shed?

2020-06-30 Thread Oleg Evseev
Find out that this happens while in poll. вт, 30 июн. 2020 г. в 15:45, Oleg Evseev : > Hi all, > > I wonder how can I debug > DEBUGASSERT(pholder != NULL) in function nxsem_allocholder in file > semaphore/sem_holder.c that happens after some time reading a lot of > messag

CAN driver and critical section use

2020-07-01 Thread Oleg Evseev
NULL) in function nxsem_allocholder in file semaphore/sem_holder.c while in poll on can? -- With regards, Oleg.

Re: How to debug DEBUGASSERT in shed?

2020-07-03 Thread Oleg Evseev
Regarding to can driver, from some moment I started getting DEBUGASSERT(sem->semcounthttps://github.com/apache/incubator-nuttx/issues/1354 I don't know, was DEBUGASSERT(pholder != NULL) a different appearance of the same bug or it is something else. -- With regards, Oleg. вт, 30 июн

Re: How to debug DEBUGASSERT in shed?

2020-07-03 Thread Oleg Evseev
Hi, Alan. Thanks for the feedback. Found out that I'm still get DEBUGASSERT(pholder != NULL) in function nxsem_allocholder in file semaphore/sem_holder.c after DEBUGASSERT(sem->semcount: > Hi Oleg, > > I just responded your issue. > > I hope to have shed some light

Re: How to debug DEBUGASSERT in shed?

2020-07-05 Thread Oleg Evseev
made the PR 1370 <https://github.com/apache/incubator-nuttx/pull/1370>. пт, 3 июл. 2020 г. в 16:26, Oleg Evseev : > Hi, Alan. > > Thanks for the feedback. > > Found out that I'm still get DEBUGASSERT(pholder != NULL) in function > nxsem_allocholder in file semaphore/s

stm32f7 CAN driver

2020-07-21 Thread Oleg Evseev
Hi all, Did anybody use the NuttX CAN driver with stm32f7 mcu? Does it work ok? --- With regards, Oleg.

Re: stm32f7 CAN driver

2020-07-22 Thread Oleg Evseev
020 г. в 10:54, Disruptive Solutions < disruptivesolution...@gmail.com>: > Oleg do you mean the SPI version (mcp) or native with a say tja1050? The > SPI version I use on different platforms. The stm32f7 I have to try > though... > > Ben > > Op di 21 jul. 2020 23:06 sc

Re: stm32f7 CAN driver

2020-07-22 Thread Oleg Evseev
://github.com/PX4/libuavcan/blob/52e7ce09907bcec8a0b93e7a15d5fbd121c686dc/libuavcan_drivers/stm32/driver/src/uc_stm32_can.cpp#L195 ср, 22 июл. 2020 г. в 11:29, Oleg Evseev : > Hi Ben, > > Yes, I mean native internal stm32f7 CAN controller RX, TX connected to CAN > phy chip (SN65HVD230 in our case