hello
i'am trying to scroll a message on 15x7 led matrix see below for the code and schematic
the problem is when i run the simulation a message appears "stack overflow executing call instruction " but i'am using just 2 nested loops
Nested loops doesn't have anything to do with stack overflow. It happens if there are highly nested functions. Zip and post your project files and Proteus files so that it can be tested.
I don't know whether const data type can be used inside functions. If variable is defined as const type then the data will be in ROM and not in RAM. Your const type array is created during runtime as it is in main function. But in runtime it can't create array in ROM. Maybe this is causing the problem. Remove const type or make the array a global variable.