Hi All, I am using the silabs C8051F120H development board and SDCC compiler for my project. Its having 128 KB of flash which is of four banks each 32 KB. Currently the application code size is exceeding the maximum i.e 64K. I want to make use of the upper 64 KB for my application. For this I have checked the manual and enabled the banking by adding #pragma at the start of the file and also linker options as follows.
#pragma codeseg BANK1 -- added at top of the file Linker options : -Wl-bBANK1=0x18000 -Wl-r Compilation is going through fine however the hex file is not generated. Here is the error log. ============================================= + "/projects/fastpath/msaleem/work/sdcc/bin/asx8051" -plosgffc "8051/sdcc/lwip_main.asm" sdcc -mmcs51 --model-large --stack-auto --xram-loc 0x0000 --code-loc 0x0000 -L../../sdcc/share/sdcc/lib/large -V --debug -Wl-bBANK1=0x18000 -Wl-bBANK2=0x28000 -Wl-r src/api/err.rel src/core/init.rel src/core/mem.rel src/core/memp.rel src/core/netif.rel src/core/pbuf.rel src/core/stats.rel src/core/tcp.rel src/core/tcp_in.rel src/core/tcp_out.rel src/core/ipv4/icmp.rel src/core/ipv4/inet.rel src/core/ipv4/ip.rel src/core/ipv4/ip_addr.rel src/core/ipv4/ip_frag.rel src/core/ipv4/inet_chksum.rel src/netif/etharp.rel 8051/sdcc/lwip_main.rel -o lwip + "/projects/fastpath/msaleem/work/sdcc/bin/aslink" -nf "lwip.lnk" output extended linear address record 0x2 0x0 output extended linear address record 0x0 0x2 output extended linear address record 0x1 0x0 output extended linear address record 0x0 0x1 output extended linear address record 0x1 0x0 output extended linear address record 0x0 0x1 output extended linear address record 0x1 0x0 output extended linear address record 0x0 0x1 ============================================= With the above messages, the I could not find the .ihx generated. I have following files generated. -rw-rw-r-- 1 msaleem clearusers 1409173 May 10 13:33 lwip.cdb -rw-rw-r-- 1 msaleem clearusers 693 May 10 13:33 lwip.lnk -rw-rw-r-- 1 msaleem clearusers 1625694 May 10 13:33 lwip.map -rw-rw-r-- 1 msaleem clearusers 1149 May 10 13:33 lwip.mem Here is the SDCC version I am using. sdcc -v SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Mar 22 2009) (UNIX) I google it and checked the manual for fixing this error but no luck. Can you please let me know if there is fix for this. Thanks in advance, Saleem ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
