Part Number:SENSOR-CONTROLLER-STUDIO
I'm building a SCS project to talk to a couple of i2c devices and am running up against a RAM overflow issue. Basically my code is too big and was wondering if there are any tricks or workarounds. I can probably trim the code and data to fit, but 1024 words seems pretty small. Is there any way to increase the space available or compiler option to optimize for size? The spec says its 2KB, so assuming 2 byte words, it looks like this is a hard limit.
The bulk of my code is in the initialization and configuration of the i2c devices. I'm thinking of doing 2 separate projects where I initialize the devices in one, then unload that project and swap in the running/data gathering project. Since the individual task in SCS is already split into this "general" model, it seems that there would already be a way to do this (i.e. only load the initialization, execution, or termination sections when needed, to save on RAM). Any thoughts?