haajoin.blogg.se

Mplab xc8 optimization
Mplab xc8 optimization







mplab xc8 optimization

I was just having a play around with this and it seems like something you should report to Microchip but I have found a workaround that might be useful in the interim. What am I doing wrong? The compiler output doesn't help much, as the error is way too generic to give any clue. Microchip MPLAB XC8 C Compiler (PRO Mode) V1.35Ĭopyright (C) 2015 Microchip Technology Inc. Main.c:10: error: (712) can't generate code for this expression Main.c:9: error: (712) can't generate code for this expression "/opt/microchip/xc8/v1.35/bin/xc8" –chip=18F8720 -G -mdist/default/production/Test01.X.production.map –double=24 –float=24 –emi=byteselect –ram=default,+20000-9FFFF –opt=default,+asm,+asmfile,-speed,+space,-debug –addrqual=require –mode=pro -P -N255 –warn=-3 –asmlist –summary=default,-psect,-class,+mem,-hex,-file –output=default,-inhx032 –runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,-plib –output=-mcof,+elf:multilocs –stack=compiled:auto:auto:auto "–errformat=%f:%l: error: (%n) %s" "–warnformat=%f:%l: warning: (%n) %s" "–msgformat=%f:%l: advisory: (%n) %s" –memorysummary dist/default/production/memoryfile.xml -odist/default/production/Test01.X.production.elf build/default/production/main.p1

mplab xc8 optimization

"/opt/microchip/xc8/v1.35/bin/xc8" –pass1 –chip=18F8720 -Q -G –double=24 –float=24 –emi=byteselect –ram=default,+20000-9FFFF –opt=default,+asm,+asmfile,-speed,+space,-debug –addrqual=require –mode=pro -P -N255 –warn=-3 –asmlist –summary=default,-psect,-class,+mem,-hex,-file –output=default,-inhx032 –runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,-plib –output=-mcof,+elf:multilocs –stack=compiled:auto:auto:auto "–errformat=%f:%l: error: (%n) %s" "–warnformat=%f:%l: warning: (%n) %s" "–msgformat=%f:%l: advisory: (%n) %s" -obuild/default/production/main.p1 main.c The compilation+linking commands are generated by MPLAB X v3.20: This error is reproducible, even in this small example program: #include This doesn't happen when reading far variables: only when writing into them. Whenever I try to write some code to modify a variable in the external memory, the linker throws an error (712): "can't generate code for this expression". I'm currently having a bad time trying to use an external RAM chip (512 kB) with a PIC18F8720 and the Microchip XC8 compiler (v1.35, PRO mode).









Mplab xc8 optimization