Picon

longjmp/setjmp

Hi,


I am attempting to build ficl into a working interactive interpreter.  I have hit a snag, ficl uses longjmp/setjmp and I can't find either examples of use, or code for these.  


So are they available in NuttX ?


and if so where are they hiding ?


Thanks,

Andrew



__._,_.___
Posted by: andrewtholt60-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

Dumb newby question /bin

Hi All,


I have just started investigating NuttX again, after a gap of (at least)  three years.  My target is the stm32f4-discovery board and as a starting point I am using the nsh config, my build system is Linux.


So when I do 'make menuconfig' and then navigate into file systems and select BINFS. The help text says :


"The BINFS may, for example, be mount at /bin" how do I make it so ? also the same question for procfs.


Thanks in advance,

Andrew

 



__._,_.___
Posted by: andrewtholt60-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

[PATCH] stm32: Allow CONFIG_DEV_RANDOM for selecting SW-based /dev/random [1 Attachment]

Hi Greg,


One-liner patch for building stm32_rng.c for only those STM32 variants that have TRNG.


I started toying with my own DRBG + entropy gathering design for systems without HW random number generator, so CONFIG_DEV_RANDOM alone should not pull any chip specific code.


Best Regards,

    Juha



__._,_.___

Attachment(s) from Juha Niskanen (Haltian) | View attachments on the web

1 of 1 File(s)

Posted by: "Juha Niskanen (Haltian)" <juha.niskanen-1vFRZQwJeV1BDgjK7y7TUQ@public.gmane.org>



__,_._,___
Picon

Building it for different board

Hi greg,


I have been trying to build NUTTX for a specific cortex A8 board.

So how can I add the new board configurations.


I have made a folder in configs for that particular board. Copied the src, include, nsh scriots and kconfig of a armv-7 based files to this new board. Now I am modifying the defconfig file(inside nsh) based on my requirement.


But getting some errors.


Is it correct way of doing, Do I need to modify at other places as well.


Please help


Thanx !!



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



__,_._,___
Picon

[HELP] nsh: hello: command not found

Hi,


I'm working on bringing up nuttx on the Maple Mini with ENC28J60 , .I succeded to connect it .but when I try to call a built-in application, the nsh prompt resolves the application name into "command not found" :


nsh> hello
nsh: hello: command not found
nsh> mount -t binfs /bin
nsh> cd /bin
nsh> hello
nsh: hello: command not found
nsh>
nsh> ping 8.8.8.8
PING 8.8.8.8 56 bytes of data
56 bytes from 8.8.8.8: icmp_seq=1 time=80 ms
56 bytes from 8.8.8.8: icmp_seq=2 time=70 ms
56 bytes from 8.8.8.8: icmp_seq=3 time=70 ms
56 bytes from 8.8.8.8: icmp_seq=4 time=70 ms
56 bytes from 8.8.8.8: icmp_seq=5 time=70 ms
56 bytes from 8.8.8.8: icmp_seq=6 time=80 ms
56 bytes from 8.8.8.8: icmp_seq=7 time=190 ms
56 bytes from 8.8.8.8: icmp_seq=8 time=70 ms
56 bytes from 8.8.8.8: icmp_seq=9 time=70 ms
56 bytes from 8.8.8.8: icmp_seq=10 time=270 ms
10 packets transmitted, 10 received, 0% packet loss, time 9850 ms


#Rachid




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



__,_._,___
Picon

ADC stm32f4

I'm trying to get more samples in the case of ADC, but I am not able to. You need to change something to make it work?


Best regards,


Nuno Rodrigues




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



__,_._,___
Picon

How to stop nsh?

Hi!

Is there any easy way to stop nsh? Other than typing "exit" in the 
terminal - I'm asking about something I can do in the application code.

I need to temporarily take full control of the stdin and stdout that are 
used by nsh. User of the device I'm working on may select "USB gateway" 
mode, in which everything received from USB is redirected to UART, and 
everything received from UART is redirected to USB - just like in 
USB<=>UART converters. I didn't check that yet, but I think that just 
opening /dev/console from another thread will not work, because this 
device it's opened from nsh thread too - some data would be received by 
my thread, some data by nsh thread. That's why I think closing or 
pausing nsh is the only solution in that case, but I'm open to any other 
options.

Thanks in advance for any suggestions!

Regards,
FCh

------------------------------------
Posted by: Freddie Chopin <freddie_chopin@...>
------------------------------------

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

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

More samples ADC example

Hi,

I am running the example ADC in stm32f4, but I'm a problem, that is, I'm running the example but when I try to get more samples, the code gets stuck in the read user function, I put the print on the screen the value of the variables that are parameters function before the read and have value in the first sample and the second sample, but in the second the code gets stuck in the read but not understand why ...



NuttShell (NSH)
nsh> adc -n 2
adc_main: Initializing external ADC dev ice
adc_main: g_adcstate.count: 2
adc_main: Hardware initialized. Opening the ADC device: /dev/adc0
readsize:20
sample:268444108
fd:3
Sample: 1 size 5
1: channel: 2 value: 0
readsize:20
sample:268444108
fd:3


Does anyone have any idea what could be?




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



__,_._,___
Picon

Kenel Thread

Hi Greg,

Do kernel thread exist in NUTTX ?

If yes , do they have any say in FLAT BUILD ?


Please guide me through the knowhow of kernel threads if any


Thanx



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



__,_._,___
Picon

Integrate active libraries/programs with Nuttx

Greg,
I have a few programs and libraries that I have integrated with Nuttx, but they are all active projects that normally build for Linux.  I have noticed that some third party code has been checked in as an effective dead fork, while other (like micropython) downloads itself.  Other libraries like mqtt you just have patches stashed.

It would be great if we could have a structured way of handling this.  I know if the past I have advocated for git submodules or subtrees to help with this, but I am open to what ever makes sense and is easiest to maintain.

--Brennan


__._,_.___
Posted by: Brennan Ashton <bashton-0oLt8/ynpYLymLLLnPiPsAC/G2K4zDHf@public.gmane.org>



__,_._,___
Picon

Missing semicolon in lm3s ethernet driver


Just found this:

diff --git a/nuttx/arch/arm/src/tiva/lm3s_ethernet.c b/nuttx/arch/arm/src/tiva/lm3s_ethernet.c
index 87334ab..b355cb4 100644
--- a/nuttx/arch/arm/src/tiva/lm3s_ethernet.c
+++ b/nuttx/arch/arm/src/tiva/lm3s_ethernet.c
<at> <at> -620,7 +620,7 <at> <at> static int tiva_txpoll(struct net_driver_s *dev)
   nllvdbg("Poll result: d_len=%d\n", priv->ld_dev.d_len);
   if (priv->ld_dev.d_len > 0)
     {
-      DEBUGASSERT((tiva_ethin(priv, TIVA_MAC_TR_OFFSET) & MAC_TR_NEWTX) == 0)
+      DEBUGASSERT((tiva_ethin(priv, TIVA_MAC_TR_OFFSET) & MAC_TR_NEWTX) == 0);
 
       /* Look up the destination MAC address and add it to the Ethernet
        * header.
<at> <at> -936,7 +936,7 <at> <at> static void tiva_txdone(struct tiva_driver_s *priv)
    * at this point.
    */
 
-  DEBUGASSERT((tiva_ethin(priv, TIVA_MAC_TR_OFFSET) & MAC_TR_NEWTX) == 0)
+  DEBUGASSERT((tiva_ethin(priv, TIVA_MAC_TR_OFFSET) & MAC_TR_NEWTX) == 0);
 
   /* Then poll uIP for new XMIT data */
 

--Brennan


__._,_.___
Posted by: Brennan Ashton <bashton-0oLt8/ynpYLymLLLnPiPsAC/G2K4zDHf@public.gmane.org>



__,_._,___

Gmane