New unused variables warning in nx_start()

2020-05-06 Thread Nathan Hartman
In function nx_start() (sched/init/nx_start.c), if none of MM_KERNEL_USRHEAP_INIT, CONFIG_MM_KERNEL_HEAP, or CONFIG_MM_PGALLOC are defined, the compiler warns about unused variables heap_start and heap_size: init/nx_start.c: In function 'nx_start': init/nx_start.c:552:14: warning: unused variable

RE: New unused variables warning in nx_start()

2020-05-06 Thread Xiang Xiao
Should you at least use one method to give OS the basic heap? Can you boot nuttx into nsh with the current configuration? -Original Message- From: Nathan Hartman Sent: Wednesday, May 6, 2020 11:18 PM To: dev@nuttx.apache.org Subject: New unused variables warning in nx_start() In functi

Re: New unused variables warning in nx_start()

2020-05-06 Thread Nathan Hartman
On Wed, May 6, 2020 at 12:25 PM Xiang Xiao wrote: > Should you at least use one method to give OS the basic heap? Can you boot > nuttx into nsh with the current configuration? I don't know yet, because I cannot load and run it right now. I have a feeling that something has changed in the implem

Re: Adding support for STM32G474RET6

2020-05-06 Thread Nathan Hartman
In arch/arm/src/stm32/hardware/stm32_dma_v1.h, I have to add DMA channel mappings of the form: # define DMACHAN_ADC1STM32_DMA1_CHAN1 for the (new) case of CONFIG_STM32_STM32G47XX. How / where can I find the names and values that should be defined? Thanks, Nathan

Re: Adding support for STM32G474RET6

2020-05-06 Thread Gregory Nutt
In arch/arm/src/stm32/hardware/stm32_dma_v1.h, I have to add DMA channel mappings of the form: # define DMACHAN_ADC1STM32_DMA1_CHAN1 for the (new) case of CONFIG_STM32_STM32G47XX. How / where can I find the names and values that should be defined? Probably in the data sheet rat

Re: Adding support for STM32G474RET6

2020-05-06 Thread Nathan Hartman
On Wed, May 6, 2020 at 4:56 PM Gregory Nutt wrote: > > In arch/arm/src/stm32/hardware/stm32_dma_v1.h, I have to add DMA > > channel mappings of the form: > > > > # define DMACHAN_ADC1STM32_DMA1_CHAN1 > > > > for the (new) case of CONFIG_STM32_STM32G47XX. > > > > How / where can I find

Re: Adding support for STM32G474RET6

2020-05-06 Thread Nathan Hartman
On Wed, May 6, 2020 at 6:10 PM Nathan Hartman wrote: > On Wed, May 6, 2020 at 4:56 PM Gregory Nutt wrote: > > > In arch/arm/src/stm32/hardware/stm32_dma_v1.h, I have to add DMA > > > channel mappings of the form: > > > > > > # define DMACHAN_ADC1STM32_DMA1_CHAN1 > > > > > > for the (

Build failed in Jenkins: NuttX-Nightly-Build #118

2020-05-06 Thread Apache Jenkins Server
See Changes: -- Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on H27 (ubuntu) in workspace

Re: New unused variables warning in nx_start()

2020-05-06 Thread Abdelatif Guettouche
Removing this [1] ifdefs introduced the warning in a flat build. 1. https://github.com/apache/incubator-nuttx/commit/eca70597858bc619d3114901d16e4a30f1ebffbe#diff-e36621b38d26a5eeb9f0c9c779931e7bL548 On Wed, May 6, 2020 at 7:11 PM Nathan Hartman wrote: > > On Wed, May 6, 2020 at 12:25 PM Xiang

Re: Adding support for STM32G474RET6

2020-05-06 Thread raiden00pl .
You can look how DMAMUX is implemented for stm32h7. It's more complicated than in G4 and H7 is based on DMA IPv2 but the concept should be the same. I got my NUCLEO-G431RB so I can help. czw., 7 maj 2020 o 00:15 Nathan Hartman napisaƂ(a): > On Wed, May 6, 2020 at 6:10 PM Nathan Hartman > wrote:

RE: New unused variables warning in nx_start()

2020-05-06 Thread Xiang Xiao
Yes, I remove #if/#endif intentionally because it doesn't make sense that user disable all three method which provide the critical memory info to OS. -Original Message- From: Abdelatif Guettouche Sent: Thursday, May 7, 2020 1:18 PM To: dev@nuttx.apache.org Subject: Re: New unused variab