Configuration too big to persist. Dual Pico

The macros all display exactly as they should on the web config .

Trying to save config to device I get that message.

I’m using my own build which allows (until now) 110 Macros.

It was all good up to about 40 or so macros. It was rather tedious setting them up so I ended up editing a config file directly.

The 80 macros each resemble this snippet:

[
            [
                "0x000700e0",
                "0x00070014"
            ],
            [
                "0x000700e0",
                "0x00070027"
            ],
            [],
            [
                "0x000700e0",
                "0x00070025"
            ],
            [],
            [   "0x000700e0",
                "0x00070027"
            ]
        ]

Is there a limit somewhere in the source code that I can alter, or is it a hardware limitation of the PICO?

The persisted configuration size is limited to 4096 bytes. You can try changing PERSISTED_CONFIG_SIZE in CMakeLists.txt, but I haven’t tried it. Probably needs to be a multiple of 4096.

@jfedor Thanks, see below, I’ll try your suggestion if I hit the same problem again as I add functionality to my project.

I have got it working (without rebuilding) as follows:

I’ve shrunk the output of my macros, there were a lot of unnecessary keys. In the snippet I’ve shown, there’s a ‘nothing’ ([]) entry between two disimilar outputs - not necessary. There were 71 of those.

I also realised that 4 keys were not needed, only three. that alone is 160 less commands, so with the above I’ve removed 231 commands.

Thanks

Phil