Re: Including Lua scripts on filesystem

2023-02-02 Thread Russell Haley
I've put my source code here in case anyone wants to try it: https://github.com/RussellHaley/nuttx-russ-app-1 Thanks for the help everyone! Russ On Fri, Feb 3, 2023 at 2:31 AM Russell Haley wrote: > Hmmm... So far I've tried the romfs example, adding the mkrd command as >

Re: Including Lua scripts on filesystem

2023-02-02 Thread Russell Haley
local colors = cj.decode(json) for i,v in pairs(colors) do for k,d in pairs(v) do print(k,d) end end Failed to create a romdisk. Error Number is 0 ERROR: Failed to create RAM disk: Unknown error On Thu, Feb 2, 2023 at 3:05 AM Xiang Xiao wrote: > You need to prepare /dev/ram1 with the mkrd com

Re: Including Lua scripts on filesystem

2023-02-02 Thread Russell Haley
t; #include > > > > and then in stm32_bringup(void): > > > > ret = romdisk_register(0, // /dev/ram0 > > myromfs, //var in the xxd header > > NSECTORS(myromfs_len), > > SECTORS

Re: Including Lua scripts on filesystem

2023-02-01 Thread Russell Haley
et $49 = 0 (gdb) n 202 ret = -EEXIST; (gdb) Not sure what to do from here? Any feedback would be great? Thanks, Russ > > On Thu, Feb 2, 2023 at 1:00 PM Russell Haley wrote: > > > I am mistaken. I understood that the rom image was part of the > application > > on

Re: Including Lua scripts on filesystem

2023-02-01 Thread Russell Haley
mfs is part of your image as the const string. There is no difference > from the below manual step. > > On Thu, Feb 2, 2023 at 10:00 AM Russell Haley > wrote: > > > On Tue, Jan 31, 2023 at 6:16 AM Fotis Panagiotopoulos < > f.j.pa...@gmail.com > > > > > wrote

Re: Including Lua scripts on filesystem

2023-02-01 Thread Russell Haley
tip. The romfs example actually uses xxd as well to convert the filesystem into hex code that is also stored in a header file. If I am reading the code correctly, the example app loads the entire filesystem into memory, which isn't very efficient and not at all what I wanted. Can someone tell

Re: Including Lua scripts on filesystem

2023-01-28 Thread Russell Haley
n 29, 2023 at 2:24 AM Russell Haley > wrote: > > > 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

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

RE: Lua fails to build

2023-01-28 Thread Russell Haley
due to that previous cancelation? I have now subscribed from my gmail account and hope to have better luck. Regards, Russell Sent from Mail for Windows From: Russell Haley Sent: Thursday, January 26, 2023 9:37 PM To: dev@nuttx.apache.org Subject: Lua fails to build Hi, I am trying to build

Lua fails to build

2023-01-27 Thread Russell Haley
Hi, I am trying to build the Lua interpreter into the sim:nsh sample code using the menuconfig (Applications->Interpreters->Lua). The Lua interpreter seems to be missing libmath. I tried adding `CFLAGS += -lm` but it didn’t seem to help. Can anyone tell me how to add the Lua interpreter

St-Link Issue

2023-01-26 Thread Russell Haley
it. If anyone has suggestions please let me know. Thanks in advance, Russell Haley Sent from Mail for Windows

RE: NuttX Monthly Meetup

2021-09-26 Thread Russell Haley
Sorry for the top posts, I’ll move to a new email client soon. I know nothing of the inclusivity rules, but Brave has just introduced an in browser video conference system that does not require a login. https://reclaimthenet.org/brave-introduces-brave-talk/ Might that help? Russell Sent from

RE: Poll: Which OS are you using to compile NuttX?

2021-09-24 Thread Russell Haley
? Hi Russell, I think I know why it is happening: you are not in the NuttX Group in LinkedIn, are you? Let move it to other place... BR, Alan On 9/24/21, Russell Haley wrote: > Hi, > > That’s my point: the mothership is not giving me access through your link, > even though I a

RE: Poll: Which OS are you using to compile NuttX?

2021-09-24 Thread Russell Haley
4) Windows Native Thank you for the understanding. BR, Alan On 9/24/21, Russell Haley wrote: > The link gives me “This post cannot be displayed”. I am logged into the > Microsoft data collection site known as LinkedIn. > > Sent from Mail for Windows > > From: Tim Hardisty > S

RE: Poll: Which OS are you using to compile NuttX?

2021-09-24 Thread Russell Haley
The link gives me “This post cannot be displayed”. I am logged into the Microsoft data collection site known as LinkedIn. Sent from Mail for Windows From: Tim Hardisty Sent: Friday, September 24, 2021 12:54 PM To: dev@nuttx.apache.org Subject: Re: Poll: Which OS are you using to compile NuttX?