Hi Pete, I think your problem may be to have a big variable, in the compiler model you can't have variables that use more than 256 bytes and this counts for arrays, for example you can't have:
float array[65]; just because the whole array uses more than 256 bytes (a block) and I guess it can't be adressed internally with a 8 bits pointer. About the pic18F family, they have a max of 128kB of program memory (pic 18F8722) so I guess will have no problem to find a suitable one. Regards, Olgierd El sáb, 21-10-2006 a las 19:25 +0100, Peter Chant escribió: > Hi chaps, > > I'm getting the following from sdcc when trying to compile some code, I > assume this is a message passed from gplink to sdcc: > > error: no target memory available for section "code_autothermal" > > I'm currently using a 16f877. > > Anything I can do about this, apart from maybe going to a PIC with more > memory? sdcc reports that --model-medium is not supported for pic14, > which I suppose is logical as it has no external memory. Moving to pic18 > would not be painful though I am not sure that they have more memory, > either program or data (at least not the ones I have here, it seems > smaller). > > It does not seem to be program memory as my PIC programmer software shows > that I have used less than 50% memory. Not sure that I have too many > variables. > > I can trim a few bits, but I feel I am sailing very close to the wind on > the memory unless there is something I have missed. > > Pete > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user