Why might the Portenta Machine Control be limited to 8KB of code memory? Its specs indicate that it ships with 8MB of SDRAM.
Is there a way to make more available to the runtime? I'm building a framework with libraries for the platform and have barely begun to scratch the surface of code to write.
8KB is a very low limit for code.
16KB is also a low allowance for data, but I'm nowhere near reaching it due to the former.
When I go to compile I get the following error:
error A4104: Code space exhausted
When I take away some ladder block calls, I can compile and it generates these diagnostics:
I was able to modify the projectName.imgx file's description for this region of memory and adjust the code memory available to 32KB. This file is found in the same location as the projectName.plcprj file and appears to be an xml definition for a flat 32-bit memory layout that includes the embedded IEC functions' addresses, so care must be taken to avoid overlapping into another region. I am also unsure what the attribute addrArea2 means in this context.
Hi @jeremym1987. It looks like the account that created this topic was "anonymized". I believe the forum software does this automatically when you delete your arduino.cc account via this page:
Thanks pert. I had performed a delete and signed up with this account on the .cc page. I guess the forum purge and re-link took a few days, but this is my desired username. So all is well going forward.