I need to generate a sinusoidal PWM signal, with variable frequency with atmega 328P/328.I generated for that, a series of arrays. The problem is that every one of the array has a different number of elements, with the bigger having 3200+ elemtents (just one) and the tiniest, just 14 elements. So, probably you can be agree with me that is a bad idea to place them in a nXm matrix, because the enormous quantity of padding.
Declaring every one of those arrays alone with its own label isn't a Good idea (at least for me), because I had to reference them explicitly, being 255 arrays. So I think about reading them as a list, but still being an array, a big array with all arrays inside in the same row, for that I included in the array the large of every one of the arrays at the start of every array data. However, I still had the following problem: Compiler says that this array is too big. Is no memory related, because I tested, compiling the first case with all arrays separated and compiler did it succesfully storing all that data in flash. Probably is sanity limit related. The resulting array has 19929 elements of unsigned 16 bits type.
I included both versions so you can check.
How I can do this? there's a workaround for array size limits? its a Good idea to link raw data into executable image?