Picon

Probably a small typo in configs/Kconfig

Hello,

I stumbled across this typo while trying to understand how to add my custom board :)

diff --git a/nuttx/configs/Kconfig b/nuttx/configs/Kconfig
index dad113e..9941eaf 100755
--- a/nuttx/configs/Kconfig
+++ b/nuttx/configs/Kconfig
 <at>  <at>  -985,7 +985,7  <at>  <at>  config BOARD_CUSTOM_BUTTONS
        bool "Custom board buttons"
        default n
        select ARCH_HAVE_BUTTONS
-       select ARCH__BUTTONS
+       select ARCH_BUTTONS

 config BOARD_CUSTOM_IRQBUTTONS
        bool "Custom Board IRQ buttons"

BEFORE
user <at> host:~/nuttx/git/nuttx$ grep -r ARCH__BUTTONS * | wc -l
1
user <at> host:~/nuttx/git/nuttx$ grep -r ARCH_BUTTONS * | wc -l
297

AFTER
user <at> host:~/nuttx/git/nuttx$ grep -r ARCH__BUTTONS * | wc -l
0
user <at> host:~/nuttx/git/nuttx$ grep -r ARCH_BUTTONS * | wc -l
298

(Continue reading)

Picon

EMF32 port basically functional [was CMSIS]

Pierre,


I noticed that you have not sync'ed with the repository in few days.  I want to let you know that I have NuttX running on the EFM32 Gecko Starter Kit.  There are not many peripherals to test in that configuration, but the NuttShell (NSH) is working over LEUART0 at 2400 baud (certainly that could go up to 4800.  The documentation says that 9600 is also possible on the LEUART, but I am not sure how).


I originally planned to use UART0 at 115200 baud, but I never could get any output from the board.  I review my pin configuration and clocking carefully and the USART seems to think it is working correctly.  So I am thinking that there is some board issue that prohi bits that option (probably because UART0 is used with the board controller???).  Pins are not available for other U[S]ARTs on that board.


Greg




__._,_.___
Posted by: spudarnia-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

Strange config option I don't understand (related to CONFIG_BUILTIN)

Hello,

I checked the option "Disable binfmt support" and to my surprise, this also
removed CONFIG_BUILTIN.

Well, I was expecting this kind of option to remove support for NXFLAT and ELF,
but to keep support for builtin applications!

What did I miss here? Is removing additional applications a feature when
"Disable BINFMT support" is checked?

(for the moment, I re-enabled this option :) )

BR,
-- 
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

NSH telnetd login issue [1 Attachment]

Hi everyone!

I found an issue with the NSH telnetd login (apps/nshlib/nsh_telnetd.c:nsh_telnetlogin()).

When one tries to login with the correct credentials the login fails.

I checked using gdb and found that the username and password variables which contain the input from the user still contain an '\n' character after the visible characters.


The changes I made are more practical than elegant. So if you see a better way, feel free!


Lazlo



__._,_.___

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

1 of 1 File(s)

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



__,_._,___
Picon

Static constructor problem

Hi Greg,

I have following odd behaviour with static constructors in C++.

I have classes A,B,C.

class A{
public:
    virtual ~A() {}
    virtual void foo(void) {}   
};

class B : public A{
public:
    B() {};
    ~B() {};
    virtual void foo(void) {};
};

class C{
public:
    C() { tran(&C::b)};
    ~C() {};
    void onFoo() {m_a->foo();}
private:
    A *m_a;
    void tran(A *a){m_a = a;}

private:
    static B b;
};

B C::b;

When I execute the following code, the program crashes when calling onFoo of cla ss C.

void main()
{
   C myC;
   myC.onFoo(); // CRASH
}

When I however remove the static keyword (static B b -> B b) and remove the line B C::b, the code works as expected. Could this be a compiler bug (I am using the arm-none-* toolchain) or does this have to do with the handling of static constructors in NuttX?

I tried this with g++ on Linux and it works as expected both ways.

Thanks,
Max

  




__._,_.___
Posted by: max.kriegleder-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

BAS 2.4 for NuttX

There has recently been an effort to port the BAS 2.4 interpreter to NuttX.  Alan Carvalho de Assis is doing this work.  Alan spoke with the developer, Michael Haardt, and Michael agreed to re-release the interpreter with an MIT license so there is no obstacle to including the code in at NuttX apps/interpreters/bas.


The original BAS 2.4 code can be found here:  Bas - BASIC interpreter


I am supporting a branch on the SourceForge GIT to help support Alan's integration of BAS into NuttX.  It still does not quite compile due to some signal-related incompatibilities*, but it is close.  You can browse the branch here: https://sourceforge.net/p/nuttx/git/ci/bas24/tree/ .  I am sure that Alan would appreciate some help in the integration.


Alan's goal is t o generate an 80's like BASIC interface machine.


Greg



* The signal incompatibilities are simply that SIGINT (Ctrl-C) and SIGQUIT (Ctrl-D) do not exist in NuttX... and probably never will.  These signals would have to be generated from the TTY layer (which does not exist in NuttX).   Other technical obstacles:  The default behavior behavior of SIGINT and SIGUIT are not supportable in an RTOS with flat memory addressing.  We cannot just arbitrarily kill tasks in NuttX without introducing memory leaks or worse.  Also, there is an issue about which task would get the SIGINT or SIGKILL?   Not only is there no TTY layer to deliver the signals but also knowledge as to which task would get the signal.



__._,_.___
Posted by: spudarnia-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

AW: Nuttx and gdb

Hello,

I'm currently trying to debug a HardFault on Nuttx compiled for the PX4
(http://pixhawk.org/modules/px4fmu). The PX4 runs a STM32F4 chip with armv7-m architecture. I have an
ST-Link which lets me access the CPU after it has crashed using openocd and gdb.

After my segfault has occured, NuttX launches it's exception handler which then crashes at some point, so
on my backtrace in gdb i usually see frames like

(gdb) bt

#0 doirq [...]
...
#3 up_exception.S [...]
#4 up_assert.c [...]

Which is the backtrace of my stack in the exception handler.
However what i'm really interested in, is to know which process caused the error.

So, my question is: is there a possibility to backtrace every process running in Nuttx? Sth. in the lines
(gdb) set $sp = ($sp of process)
(gdb) backtrace from that $sp

(could not make this work though)

Does someone have any experience? Every hint is appreciated!

Best, Markus

------------------------------------
Posted by: "Zahner  Markus" <mazahner@...>
------------------------------------

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

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

Packet memory overlaps descriptor tables

On building nuttx i got following error, please some one can help me to resolve this error, i am using fedora17 with sourcelite tool chain

make[1]: Entering directory `/home/raman/nuttx/nuttx/arch/arm/src'
CC: chip/lpc17_allocateheap.c
In file included from chip/lpc17_allocateheap.c:55:0:
chip/lpc17_emacram.h:226:4: error: #error "Packet memory overlaps descriptor tables"
make[1]: *** [lpc17_allocateheap.o] Error 1
make[1]: Leaving directory `/home/raman/nuttx/nuttx/arch/arm/src'
make: *** [arch/arm/src/libarch.a] Error 2
[root <at> raman nuttx]#




__._,_.___
Posted by: ramanc51-/E1597aS9LQxFYw1CcD5bw@public.gmane.org



__,_._,___
Picon

little patch to fix some compilation warning or error for keypad test app [1 Attachment]

Hi Greg, 

you can find in attachment a little patch to fix some problem in keypadtest example application.

Pierre


__._,_.___

Attachment(s) from =?iso-8859-1?Q?Bouteville_Pierre-No=EBl?= | View attachments on the web

1 of 1 File(s)

Posted by: =?iso-8859-1?Q?Bouteville_Pierre-No=EBl?= <pn_bouteville-Qt13gs6zZMY@public.gmane.org>



__,_._,___
Picon

NuttX & external library dependency

Hi all NuttX afficonados,

I'd like to use in my application running on top of NuttX the ZeroMQ C binding .

This is one of the few dependencies of the application.What is the right way to do that ?

Should I tweak the build file or is there another way to embed that library with NuttX while compiling?

I imagine that this could be a special case of applications (like NuttSh & other sample apps)


Thanks for your help

Regards

Jerome



__._,_.___
Posted by: lispybear-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
nuttx | 23 Oct 09:40 2014
Picon

New file uploaded to nuttx


Hello,

This email message is a notification to let you know that
a file has been uploaded to the Files area of the nuttx
group.

  File        : /Patches/lpc43xx patches/0003-Fixed-some-warnings-and-added-Kconfig-options.txt
  Uploaded by : warhurst_002 <warhurst_002@...>
  Description : Additional patch that should be added to lpc43xx_&#39;tickless&#39;_operation patch.

You can access this file at the URL:
https://groups.yahoo.com/neo/groups/nuttx/files/Patches/lpc43xx%20patches/0003-Fixed-some-warnings-and-added-Kconfig-options.txt

To learn more about file sharing for your group, please visit:
https://help.yahoo.com/kb/index?page=content&y=PROD_GRPS&locale=en_US&id=SLN15398

Regards,

warhurst_002 <warhurst_002@...>

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

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

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

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/


Gmane