Re: IPMC graduation vote started
On Fri, Nov 4, 2022 at 5:12 PM Nathan Hartman wrote: > Dear NuttX community, > The IPMC [VOTE] thread to graduate NuttX to TLP has started at: > https://lists.apache.org/thread/y4fkgpc05nhb1v8hp0rbpmjq06vz629b Hey there Nathan! Sorry for the delay I am moving locations with all my lab stuff o_O How can I reply +1 to that list that I am not subscribed to? I can either subscribe to the list but then I need to have at least one message I can reply to. Or I can login to the web interface and reply over the www.. but I need some soft of ASF OAuth ID how can I get one? Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
SPI usage questions
While looking into the mcp2515 driver I noticed something unexpected. In mcp2515_instantiate() it does the follofing: SPI_SETFREQUENCY(config->spi, CONFIG_MCP2515_SPI_SCK_FREQUENCY); SPI_SETMODE(config->spi, MCP2515_SPI_MODE); SPI_SETBITS(config->spi, 8); SPI_HWFEATURES(config->spi, 0); In mcp2515_read_2regs() and all the other transfer functions it does the following: SPI_LOCK(priv->config->spi, true); SPI_SELECT(priv->config->spi, SPIDEV_CANBUS(0), true); SPI_EXCHANGE(priv->config->spi, priv->spi_txbuf, priv->spi_rxbuf, 4); SPI_SELECT(priv->config->spi, SPIDEV_CANBUS(0), false); SPI_LOCK(priv->config->spi, false); What puzzles me is that all he mode settings are done without locking the SPI and only once during the init phase. I would have expected it to be done in each and every transfer within the LOCK region. When I look into the e.g. RP2040 code then the config->spi doesn't look to be unique for the single mcp2515 instance. -- B.Walter https://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Re: IPMC graduation vote started
On Sun, Nov 6, 2022 at 4:57 AM Tomek CEDRO wrote: > On Fri, Nov 4, 2022 at 5:12 PM Nathan Hartman wrote: > > Dear NuttX community, > > The IPMC [VOTE] thread to graduate NuttX to TLP has started at: > > https://lists.apache.org/thread/y4fkgpc05nhb1v8hp0rbpmjq06vz629b > > Hey there Nathan! > > Sorry for the delay I am moving locations with all my lab stuff o_O > > How can I reply +1 to that list that I am not subscribed to? > > I can either subscribe to the list but then I need to have at least > one message I can reply to. > > Or I can login to the web interface and reply over the www.. but I > need some soft of ASF OAuth ID how can I get one? > > Tomek > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > Hello Tomek, Yes, it is possible to reply and have it show up as a reply in the archives, properly included in the mail thread. I've gotten this question a few times before. It requires two things: (1) that you have the Message-ID of the email you want to reply to. That is part of the email headers. (2) that your email client lets you add a custom email header, in this case, In-Reply-To. You can find the Message-ID by going to lists.apache.org, finding the email in question, and clicking one of the three icons at the bottom of it that shows the raw message. Then find Message-ID and copy that value. Once you have this value, compose your reply and add the custom email header In-Reply-To with the copied Message-ID. See this StackExchange answer: https://webapps.stackexchange.com/questions/23197/reply-to-mailman-archived-message Hope that helps! Cheers, Nathan
Re: IPMC graduation vote started
On Sun, Nov 6, 2022 at 6:59 AM Nathan Hartman wrote: > On Sun, Nov 6, 2022 at 4:57 AM Tomek CEDRO wrote: > >> On Fri, Nov 4, 2022 at 5:12 PM Nathan Hartman wrote: >> > Dear NuttX community, >> > The IPMC [VOTE] thread to graduate NuttX to TLP has started at: >> > https://lists.apache.org/thread/y4fkgpc05nhb1v8hp0rbpmjq06vz629b >> >> Hey there Nathan! >> >> Sorry for the delay I am moving locations with all my lab stuff o_O >> >> How can I reply +1 to that list that I am not subscribed to? >> >> I can either subscribe to the list but then I need to have at least >> one message I can reply to. >> >> Or I can login to the web interface and reply over the www.. but I >> need some soft of ASF OAuth ID how can I get one? >> >> Tomek >> >> -- >> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info >> > > Hello Tomek, > > Yes, it is possible to reply and have it show up as a reply in the > archives, properly included in the mail thread. > > I've gotten this question a few times before. > > It requires two things: > > (1) that you have the Message-ID of the email you want to reply to. That > is part of the email headers. > > (2) that your email client lets you add a custom email header, in this > case, In-Reply-To. > I forgot to say: you don't have to be subscribed to the list! Just emailing the list, with the correct In-Reply-To, should be enough. Good luck with your move!! Cheers Nathan
Re: IPMC graduation vote started
Thanks Nathan :-) Will search for header modification with message-id in gmail options :-) For now I have just subscribed and replied +1 to Your message, I hope that counts :-) :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
Re: libpq and libscpi: how to start
> Are there provisions to use a pre-downloaded tarball for external projects? There is none at the moment. However, an option can be added to just copy from a local folder instead of downloading them. Or the makefile can start with that and fallback to downloading if the tarball is not present. Couple of things could be cumbersome here: 1. Options to choose between local and download. Plus options for local path to copy from. 2. The makefile of every external project interested in this will need to be updated. On Thu, Nov 3, 2022 at 11:55 AM Alan C. Assis wrote: > > Hi Sebastien, > > Good question, AFAIK there is not yet a command to just download the > necessary tar balls and keep them in a downloaded area to use later. > > If I remember correctly some build systems like Buildroot and Yocto > has this option. > > BR, > > Alan > > On 11/3/22, Sebastien Lorquet wrote: > > Hi, > > > > littlefs too. > > > > This raises an important question for me: how do I handle such a build > > in a self-contained, "airgapped" machine? > > > > Are there provisions to use a pre-downloaded tarball for external projects? > > > > Sebastien > > > > Le 28/10/2022 à 18:30, Alan C. Assis a écrit : > >> Hi Sebastien, > >> > >> AFAIK there is not such directive, although it is always need to add > >> support to NuttX on external projects. > >> > >> External projects needs to be integrated to be downloaded and compiled > >> dynamically, once again like LVGL. > >> > >> BR, > >> > >> Alan > >> > >> On 10/28/22, Sebastien Lorquet wrote: > >>> IIRC the idea was that we dont integrate code fom externally maintained > >>> projects? > >>> > >>> Also IIRC the acceptable method is a specific makefile that downloads > >>> code and patch/builds it. > >>> > >>> I agree that such libs go into apps. > >>> > >>> Sebastien > >>> > >>> Le 27/10/2022 à 19:28, Nathan Hartman a écrit : > On Thu, Oct 27, 2022 at 12:19 PM Alan C. Assis > wrote: > > > Hi Michael, > > > > I think someone else told some time ago that he used a similar lib for > > mysql, I think it was Ivan. > > > > Those libs inside nuttx/libs/ are libs used by the kernel and apps, > > but in this case the lib should be put inside apps/databases/postgres > > for example. It should be a lib just like apps/graphics/lvgl and many > > others. > I agree with that; nothing prevents applications from using the libs > under > apps. > > If they require kernel support then that might be another thing. > > Cheers > Nathan > > >
Re: libpq and libscpi: how to start
With https://github.com/apache/incubator-nuttx-apps/pull/1295, you can just clone(or use submodule/repo) the code to the Makefile's expected location, the build system will skip the download step. On Mon, Nov 7, 2022 at 4:23 AM Abdelatif Guettouche < abdelatif.guettou...@gmail.com> wrote: > > Are there provisions to use a pre-downloaded tarball for external > projects? > > There is none at the moment. However, an option can be added to just > copy from a local folder instead of downloading them. Or the makefile > can start with that and fallback to downloading if the tarball is not > present. Couple of things could be cumbersome here: >1. Options to choose between local and download. Plus options for > local path to copy from. >2. The makefile of every external project interested in this will > need to be updated. > > > On Thu, Nov 3, 2022 at 11:55 AM Alan C. Assis wrote: > > > > Hi Sebastien, > > > > Good question, AFAIK there is not yet a command to just download the > > necessary tar balls and keep them in a downloaded area to use later. > > > > If I remember correctly some build systems like Buildroot and Yocto > > has this option. > > > > BR, > > > > Alan > > > > On 11/3/22, Sebastien Lorquet wrote: > > > Hi, > > > > > > littlefs too. > > > > > > This raises an important question for me: how do I handle such a build > > > in a self-contained, "airgapped" machine? > > > > > > Are there provisions to use a pre-downloaded tarball for external > projects? > > > > > > Sebastien > > > > > > Le 28/10/2022 à 18:30, Alan C. Assis a écrit : > > >> Hi Sebastien, > > >> > > >> AFAIK there is not such directive, although it is always need to add > > >> support to NuttX on external projects. > > >> > > >> External projects needs to be integrated to be downloaded and compiled > > >> dynamically, once again like LVGL. > > >> > > >> BR, > > >> > > >> Alan > > >> > > >> On 10/28/22, Sebastien Lorquet wrote: > > >>> IIRC the idea was that we dont integrate code fom externally > maintained > > >>> projects? > > >>> > > >>> Also IIRC the acceptable method is a specific makefile that downloads > > >>> code and patch/builds it. > > >>> > > >>> I agree that such libs go into apps. > > >>> > > >>> Sebastien > > >>> > > >>> Le 27/10/2022 à 19:28, Nathan Hartman a écrit : > > On Thu, Oct 27, 2022 at 12:19 PM Alan C. Assis > > wrote: > > > > > Hi Michael, > > > > > > I think someone else told some time ago that he used a similar lib > for > > > mysql, I think it was Ivan. > > > > > > Those libs inside nuttx/libs/ are libs used by the kernel and apps, > > > but in this case the lib should be put inside > apps/databases/postgres > > > for example. It should be a lib just like apps/graphics/lvgl and > many > > > others. > > I agree with that; nothing prevents applications from using the libs > > under > > apps. > > > > If they require kernel support then that might be another thing. > > > > Cheers > > Nathan > > > > > >