What does the error “Could not find space xbytes for auto/param block” mean?
The auto/param block (APB) referred to in the error message, contains all the autos, parameters and temporary storage used by the program. This block is limited in size to no more than one bank and may not even cross bank boundaries. In order to reduce the size you’ll need to: 1) Reduce the size or number of function parameters, for instance rather than passing a structure by value pass a pointer to the same instead 2) Change the storage class of some of your local variables to static or make them global 3) Where possible reuse local variables and parameters 4) Use types which are no bigger than what they need to be, for instance the counter variable in for loop over 100 objects need only be as large as a char 5) Reduce the size/ number of secondary data types (arrays etc) in your code. Having too many of these secondary data types would lead to these errors There are a few instances where the PRO compiler will use more temporary storage than the standard. Some of these instances are a