Picon

bug with stm32_irq.c




On a recent merge to the  bitbucket.org/nuttx/nuttx/   my stm32F4 rtc alarms interrupt stopped responding for me
Checking the updates, this update caused some changes
https://bitbucket.org/nuttx/nuttx/pull-requests/80/efm32-lcp43-stm32-stm32l4-disable/diff

It seems this change caused the rtc alarm interrupts to be disabled when set- though I haven't tracked the full path down as to why - the intent is to disable all interrupts.


I think it affect 4 files for different processors,  I've only include the one I've tested below.

---   tip\nuttx\arch\arm\src\stm32\stm32_irq.c
+++ nxoh4wk\nuttx\arch\arm\src\stm32\stm32_irq.c
<at> <at> -313,7 +313,7 <at> <at>
 
   for (i = 0; i < NR_IRQS - STM32_IRQ_FIRST; i += 32)
     {
-      putreg32(0xffffffff, NVIC_IRQ_CLEAR(i));
+      putreg32(0, NVIC_IRQ_CLEAR(i));
     }
 
   /* Colorize the interrupt stack for debug purposes */


My issue report is at

neilh20 / aNuttX / issues / #5 - modbusm stopped responding on merge. — Bitbucket




__._,_.___
Posted by: NeilH20 <at> biomonitors.com



__,_._,___
Picon

Task to read /dev/adc to get system voltage periodically

Guys,

I'm working on a motor driver project based on STM32F405VG device.
The version of Nuttx is 7.12 release.

One of the tasks for this system is to read out the system voltage and motor current.
As I created a task to do ioctl w/ ANIOC_TRIGGER and read then.
The task was working as system booting up, after that, this task would be always in WAITSEM state.
What would be suspicious to result in this issue?
If device needs a task to read ADC data periodically, what's the best solution on this?
To register timer w/ ADC and use workqueue as defer work is better?

Any input would be appreciated.

Thanks,



__._,_.___
Posted by: Hsu Matt <matthsu-B9n1sLibSko@public.gmane.org>



__,_._,___
Picon

Compiling Example uavcan

Dear NuttxCommunity

I'm trying to compile the UAVCAN example for the stm32f4 discovery board form the current Nuttx Master.
seems to work fine, however i hit an include error for <uavcan/uacvan.hpp> in apps/examples/uavcan/uavcan_main.cxx.

putting
"CXXFLAGS += -I$(APPDIR)/include/" into apps/examples/uavcan/Makefile solves the issue

is this necessary? or what else can go wrong? does compiler version play a role?

Thanks for the help!
Best

------------------------------------
Posted by: "m-zahner@..." <m-zahner@...>
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

Missing definitions in sam34

Hello all,

There are some missing definitions in arch/src/sam34, listed below. Any idea
what happened to them? Collateral or accidental deletions?

Thanks.

## TWI_MMR_DADR(n)

Used to be here:
https://bitbucket.org/nuttx/nuttx/src/2803acbe06c5/arch/arm/src/sam34/chip/sam_twi.h?diff2=2803acbe06c5&at=master&fileviewer=file-view-default#sam_twi.h-146

still referenced in:

  arch/arm/src/sam34/sam_twi.c:614:  twi_putrel(priv, SAM_TWI_MMR_OFFSET, TWI_MMR_IADRSZ_NONE |
TWI_MMR_MREAD | TWI_MMR_DADR(msg->addr));
  arch/arm/src/sam34/sam_twi.c:644:  twi_putrel(priv, SAM_TWI_MMR_OFFSET, TWI_MMR_IADRSZ_NONE | TWI_MMR_DADR(msg->addr));

## TWI_INT_ALL

used to be in: arch/arm/src/sam34/chip/sam_twi.h:191

  arch/arm/src/sam34/sam_twi.c:422:  twi_putrel(priv, SAM_TWI_IDR_OFFSET, TWI_INT_ALL);

## TWI_INT_ERRORS 

used to be in: arch/arm/src/sam34/chip/sam_twi.h:190

  arch/arm/src/sam34/sam_twi.c:458:  if ((pending & TWI_INT_ERRORS) != 0)
  arch/arm/src/sam34/sam_twi.c:622:  twi_putrel(priv, SAM_TWI_IER_OFFSET, TWI_INT_RXRDY | TWI_INT_ERRORS);
  arch/arm/src/sam34/sam_twi.c:656:  twi_putrel(priv, SAM_TWI_IER_OFFSET, TWI_INT_TXRDY | TWI_INT_ERRORS);

## SAM_TWIN_BASE(n)

  arch/arm/src/sam34/chip/sam_twi.h:74:#define SAM_TWI_CR(n)              (SAM_TWIN_BASE(n)+SAM_TWI_CR_OFFSET)
                                   ..
  arch/arm/src/sam34/chip/sam_twi.h:87:#  define SAM_TWI_WPSR(n)          (SAM_TWIN_BASE(n)+SAM_TWI_WPSR_OFFSET)

-- 
	SP

------------------------------------
Posted by: sp@...
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

OpenOCD RTOS support

Hi,

OpenOCD supports interpreting RTOS data structures [1] so that GDB can
handle threads correctly.  Has anyone looked into adding NuttX
support?  I'm new to NuttX, but was thinking of trying to tackle this.
An example of a patch adding support for a new OS [2] was submitted to
OpenOCD a few days ago.

It seems that one difficulty is that internal structures will change
depending on build config.  ChibiOS handles this by linking in a
structure that contains all of the relevant offsets [3].  That would
probably make sense for NuttX too.

Jim

[1] http://openocd.org/doc/html/GDB-and-OpenOCD.html#gdbrtossupport
[2] http://openocd.zylin.com/#/c/3556/
[3] http://chibios.sourceforge.net/html/chregistry_8c_source.html#l00063

------------------------------------
Posted by: Jim Paris <jim@...>
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

interrupt latancy

Hello, 


I loosing some bytes on USART, there a quick way to check what lock my interrupt too long time ? 


context: 

STM32F407

USART3 withtout DMA at 115200 bauds


Pierre



__._,_.___
Posted by: pn_bouteville-Qt13gs6zZMY@public.gmane.org



__,_._,___
Picon

recent builds broken because of FIFOs

Hello

I did not change my .config for a long time and the recent builds are broken:

LD: nuttx
/home/joe/mynut/nuttx/lib/libapps.a(nsh_fscmds.o): In function `cmd_mkfifo':
/home/joe/mynut/apps/nshlib/nsh_fscmds.c:1192: undefined reference to `mkfifo'
make[1]: *** [nuttx] Error 1
make[1]: Leaving directory `/home/joe/mynut/nuttx/arch/arm/src'
make: *** [pass2] Error 2
joe <at> nuc:~/mynut/nuttx$

But I did nothing for that! It worked before.

I think that some configuration has enabled the mkfifo built in even if I dont
have FIFOs enabled.

mkfifo compilation depends on CONFIG_DEV_FIFO_SIZE > 0, but

joe <at> nuc:~/mynut/nuttx$ grep FIFO .config
CONFIG_CAN_FIFOSIZE=8
# CONFIG_NSH_DISABLE_MKFIFO is not set

It builds if I enable CONFIG_PIPES but I have no reason to do so, since I am not
using pipes?

The mkfifo app seems to be built without conditions while FIFO and pipes are
optional.

Should the build of the mkfifo app not depend on CONFIG_PIPES? or check that
CONFIG_DEV_FIFO_SIZE is really defined?

Something is not coherent here, but I dont know what exactly.

I dont think that just regenerating my config is the issue, since I just dont
have pipes enabled, nothing related to pipes should be included in the build, right?

-- 
Sébastien Lorquet

------------------------------------
Posted by: Sebastien Lorquet <sebastien@...>
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

stm32f10xx RTCEN

Hi,
I use the RTC function on stm32f107v,
no operation on RCC_BDCR_RTCEN was found in the stm32_rtcounter.c file,
Is there a mistake, or the other?

In additon,
diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig
index 932e74c..3b7a1cf 100644
--- a/arch/arm/src/stm32/Kconfig
+++ b/arch/arm/src/stm32/Kconfig
<at> <at> -1206,7 +1206,6 <at> <at> config STM32_CONNECTIVITYLINE
        select STM32_HAVE_TIM5
        select STM32_HAVE_TIM6
        select STM32_HAVE_TIM7
-       select STM32_HAVE_TIM8
        select STM32_HAVE_ADC2
        select STM32_HAVE_CAN1
        select STM32_HAVE_CAN2



__._,_.___
Posted by: sagitta Li <sagitta.li-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>



__,_._,___
Picon

[PATCH] lpc43xx EMC modifications to support dynamic memory interface [1 Attachment]

Hello All,

I've done some modifications to existing Lpc43xx EMC code to support SDRAM on dynamic memory interface. Here is attached patch. It's a bit bigger patch and it would be good to review it before accepting/rejecting.

Best Regards,

Vytautas Lukenskas

__._,_.___

Attachment(s) from lukevyta-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [nuttx] | View attachments on the web

1 of 1 File(s)

Posted by: lukevyta-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

cmd_time()

Hi Greg,

I’d like to attempt a patch to cmd_time() [et al?] so that its arguments don’t need to be enveloped with
\”  
Would you accept such a change?

Best regards,
-david

------------------------------------
Posted by: David Alessio <david.alessio@...>
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

[OT] Softbank? ARM? Wow!



SoftBank to Buy Britain’s ARM for $32 Billion in Record Deal








__._,_.___
Posted by: spudarnia <at> yahoo.com



__,_._,___

Gmane