Re: Including Lua scripts on filesystem

2023-01-28 Thread Xiang Xiao
You can use the real file system on the device, there are many choices: romfs, littlefs, fatfs, starmtfs and spiffs. On Sun, Jan 29, 2023 at 12:59 PM Russell Haley wrote: > On Sat, Jan 28, 2023 at 7:35 PM Xiang Xiao > wrote: > > > You can enable CONFIG_FS_HOSTFS/CONFIG_SIM_HOSTFS, put your

Re: Including Lua scripts on filesystem

2023-01-28 Thread Russell Haley
On Sat, Jan 28, 2023 at 7:35 PM Xiang Xiao wrote: > You can enable CONFIG_FS_HOSTFS/CONFIG_SIM_HOSTFS, put your scripts into > some PC folder and run mount this folder from nsh: > mount -t hostfs -o fs=/path/to/your/pc/folder. /data > > While I appreciate the answer, I am using the sim as a

Re: Including Lua scripts on filesystem

2023-01-28 Thread Xiang Xiao
You can enable CONFIG_FS_HOSTFS/CONFIG_SIM_HOSTFS, put your scripts into some PC folder and run mount this folder from nsh: mount -t hostfs -o fs=/path/to/your/pc/folder. /data On Sun, Jan 29, 2023 at 2:24 AM Russell Haley wrote: > Hi, > > Big thanks to Xiang Xiao for pointing me to the

Re: Short delay

2023-01-28 Thread Nathan Hartman
On Sat, Jan 28, 2023 at 9:04 AM Gregory Nutt wrote: > On 1/28/2023 7:15 AM, Max Kriegleder wrote: > > I am using the tickless OS setting with 1 USEC_PER_TICK and ultimately > > I want to control a stepper motor where I need to delay toggling of > > pins for very short and accurate amounts of

Article: NuttX trips ChatGPT

2023-01-28 Thread Lee, Lup Yuen
ChatGPT (the AI chatbot) will gladly answer questions about NuttX! But the answers aren't always correct. Let's turn this into a learning opportunity, and understand why ChatGPT's answers are incorrect... https://lupyuen.github.io/articles/chatgpt Lup

Re: Simulator, NOR flash file system, MTD

2023-01-28 Thread Alan C. Assis
Thank you very much Ken! Alexander, if you got it working and want to help others, please write a guide/tutorial to be included on our Documentation/ It will help others! BR, Alan On 1/28/23, Ken Pettit wrote: > Hi Alexander, > > Great! I hope it works for you. > > It has been many years

Including Lua scripts on filesystem

2023-01-28 Thread Russell Haley
Hi, Big thanks to Xiang Xiao for pointing me to the sim:lua configuration. I was unable to simply include the defconfig file that you linked to, but I was able to reconfigure for the sim:lua configuration. I've now got an app in the examples folder that includes the Lua interpreter. Is there a

Re: Lua fails to build

2023-01-28 Thread Tim Hardisty
I can't fully explain it...I think DKIM might be a clue. I am coming to the conclusion that email is a broken communication medium these days! On 28/01/2023, 18:14, "Russell Haley" mailto:russ.ha...@gmail.com>> wrote: On Sat, Jan 28, 2023 at 3:18 AM Tim Hardisty mailto:t...@hardisty.co.uk>>

Re: Simulator, NOR flash file system, MTD

2023-01-28 Thread Ken Pettit
Hi Alexander, Great! I hope it works for you. It has been many years since I wrote the Linux FUSE filesystem for SmartFS, but I believe HostFS + file_there + filemtd + SmartFS is exactly how I tested it. Use that setup to create the host file, then use that file to test the Linux FUSE

Re: Lua fails to build

2023-01-28 Thread Russell Haley
On Sat, Jan 28, 2023 at 3:18 AM Tim Hardisty wrote: > > On 28/01/2023, 08:51, "Russell Haley" wrote: > > > I am not receiving emails on this email account. > > I believe that the apache mail reflector is the root cause of this, if > emails are sent with a DKIM signature. The reflector adds new

Re: RNDIS

2023-01-28 Thread Alan C. Assis
Other alternative that people can explore in this mean time: Reverse tethering: https://github.com/Genymobile/gnirehtet Since NuttX has support to USB ADB, eventually it could work (I'm not 100% sure it will work) More info: https://www.youtube.com/watch?v=96J-pHZ1kR0 BR, Alan On 1/28/23,

Re: RNDIS

2023-01-28 Thread Tim Hardisty
If someone has the time and skills to do a CDC-NCM driver I will test it straightaway! As I commented on GitHub - thanks for reopening and, hopefully, I'll find what the issue is stopping it working for me and others may find that useful: Microsoft have not said they will deprecate it as yet,

Re: RNDIS

2023-01-28 Thread Alan C. Assis
Ok, I re-opened it. If there are inconsistencies they are not specify of RNDIS driver by itself, but could be in the USB implementation of other architectures. BTW, since RNDIS is deprecated it doesn't make sense to invest more time on it. Like Michael said, it is time to look for a better

Re: Short delay

2023-01-28 Thread Gregory Nutt
On 1/28/2023 7:15 AM, Max Kriegleder wrote: I am using the tickless OS setting with 1 USEC_PER_TICK and ultimately I want to control a stepper motor where I need to delay toggling of pins for very short and accurate amounts of time to achieve a certain movement profile of the motor - just for

Re: RNDIS

2023-01-28 Thread Tim Hardisty
Please don't close my issue. There are too many inconsistencies here to be sure it is closed: Processor - I am not using stm32 OS - Windows/Linux/Ubuntu version maybe RNDIS is likely to be deprecated If I can get RNDIS working for me, that is the time to close it. On 28/01/2023, 13:45, "Alan

Re: RNDIS

2023-01-28 Thread Alan C. Assis
Hi Tim, I just confirmed that it still working fine and I'll close your issue. This is a step-by-step process that everyone can follow to get it working: Configure your board: = $ ./tools/configure.sh stm32f4discovery:rndis Compile NuttX to your board:

Short delay

2023-01-28 Thread Max Kriegleder
Hi All, For a specific use case I need to delay execution on the the order of 100 - 1 us. The obvious choice would be usleep however I noticed that depending on the platform I get something like 124-140 us instead of 100 us delay. I have created an issue on github for this

Re: Lua fails to build

2023-01-28 Thread Tim Hardisty
> On 28/01/2023, 08:51, "Russell Haley" wrote: > I am not receiving emails on this email account. I believe that the apache mail reflector is the root cause of this, if emails are sent with a DKIM signature. The reflector adds new headers which cause the DKIM signature to fail. Any email

Re: RNDIS

2023-01-28 Thread Tim Hardisty
> On 28/01/2023, 00:09, "Masayuki Ishikawa"wrote: > Shall we move the discussions to the github issues? https://github.com/apache/nuttx/issues/8325 :)

Re: Simulator, NOR flash file system, MTD

2023-01-28 Thread Alexander Oryshchenko
Hi Xiang Xiao, Thank you! I've missed 1, didn't notice that we have simulators for a few NOR FLASHs. It is RAM based, but it may be a good point for me to start. -Alexander On Fri, Jan 27, 2023 at 9:47 PM Xiang Xiao wrote: > You can try the follow config directly: > 1.spi flash simulator +

Re: Simulator, NOR flash file system, MTD

2023-01-28 Thread Alexander Oryshchenko
Hi Alan, Ken! Thanks! Looks that HostFS + file_there + filemtd + ... may do what I need. In general I need to have file on the host which is organized like NOR FLASH (256b write pages, 4k erase). -Alexander On Fri, Jan 27, 2023 at 9:58 PM Ken Pettit wrote: > Hey Guys, > > Yes, I had SmartFS

RE: Lua fails to build

2023-01-28 Thread Russell Haley
Hi, I am not receiving emails on this email account. I see on the archive that Xiang Xiao has replied. I have checked my spam folder but it is empty. I had previously subscribed and un-subscribed to this list from this email address and I think maybe the mailing list is not sending the emails