perfect, with your directions I got an apparently functioning 8-channel version. To limit the use of RAM I deleted the debug and relspy file (with relative .h) using 0x18a4 bytes of RAM and 37540 bytes of Flash. I would like to further lighten the program by eliminating the routines of energy measurement management, in consideration of the fact that it does not feed the relays from the bus but externally, but I'm afraid of deleting parts of the necessary firmware and therefore making the system unstable, even if not I get errors during compilation.
However, I must point out that it is not possible to completely delete devices via ETS, there are problems with deleting the physical address.
Thanks again for the availability