How to run scripts without SD card

Finally got the Matek H7 slim FC and realized it does not have a card slot… I believe it has an integrated memory for logging.

Is there a way of setting it up to run Lua scripts?

Just placed another order for the Matek with SD card… But is there workaround for the one without SD card?

In parameters I do have SCR_ENABLE

And I got another surprise. The board I have is called “H7A3-SLIM”

It connects to MP, has Plane Ardupilot on it, etc, but when try to update it either to Plane 4.5.7 or Copter 4.5.7, MP says that this board is not supported.

I looked at supported boards, and effectively, only H743-SLIM is supported.

But how there is software loaded on this, H7A3 board?

I got it, there is the 6.0 Beta release…

If you want to try out another full featured board at a good price that is supported in Beta, TBS Lucid H7. Waiting for some builders to try one. I’m not building anything right now or I would.

I do not want to experiment…

Is there a way of running LUA scripts on the board I bought?

I tried to upload something using MAVFTP of the MP, but I get this error:
“Failed to OpenFile - kCmdCreateFile kErrFailErrno ENOSPC”

I got the same error even if I try to create a new folder

But the board shows text files in the SYS folder, and I can download them

Use search here for “lua scripts no sd card”

Did that, seems that there is no easy way around, i.e. some suggest that one has to recompile ardupilot copter to run them, but I am not sure if that is related to not having the option SCR_ENABLE.

What I am not getting:
if I have SCR_ENABLE in the parameters, that means that one can run scripts.
if I have some flash memory. I assume if I can upload the LUA scripts to the correct folder, they would run
But I ran into the issue the Mission Planner does not allow for some reason to upload anything using MAVFTP.

You can’t upload to onboard flash in current firmware.

The only solution is building the firmware with the scripts embedded in ROMFS. If that is too complex a task, then you are out of luck with that board.

Thanks for explicit answer!

Just a quick question, compiling from scratch copter ardupilot using Raspberry Pi is a good or bad idea? I tried to setup the thing to run on windows with VLS, ran into issues, and I do not have a normal Linux computer, just a bunch of Pi’s

On a RPi is a bad idea. Use WSL2 on windows. Fix the issues.

You don’t want to experiment.

:+1: Got clearly the point…

4.7 will support scripts on this board

1 Like

But we have right now 4.6beta… So that maybe a year from now? Sorry I found the DEV 4.7 versions for the board…

Thanks a lot, I was able to upload files to the /scripts subdirectory via MAVFTP of Mission Planner, so I assume that once I upload the scripts, they will run now.

I have a 4.6 version that includes this support that you can use with the custom firmware builder

I have tried to upload 4.6 beta from custom firmware builder, but MP mavftp does not allow to upload any sketches, and only the 4.7 Dev has the option to opload

See my post in the 4.6 thread. You want my branch labelled small-copter-4.6-experimental

What are you referring to? Firmware upload is either USB or UART.

Just to say that the custom build tag small-copter-4.6 contains the scripting that was merged into master

I was saying that mavftp does not work for uploading scripts in 4.6 standard for H7a3 with flash memory.

I am learning Lua scripting on 4.7 dev. And I will try later the special 4.6 build with flash memory ftp from Andy