Re: [Sdcc-user] getting started with C8051
> > On 2016-08-29 22:30, Philipp Klaus Krause wrote: >> On 29.08.2016 00:20, Benjamin Larsson wrote: >>> On 08/28/2016 11:30 PM, Philipp Klaus Krause wrote: On 28.08.2016 23:13, Benjamin Larsson wrote: > On 08/28/2016 11:03 PM, Philipp Klaus Krause wrote: >> Dear Benjamin, >> >> what tool are you using to write your program onto the board? >> >> Philipp > > Under windows I use simplicity studio with a UC6 device. Under linux > I > use ec2-new from https://github.com/paragonRobotics/ec2-new with the > same device. My own arduino programmer did not work with the F330. > > MvH > Benjamin Larsson I so far only used ec2-new. Did you try to write the program compiled with SDCC using simplicity studio? That would help rule out an ec2-new bug. Philipp >>> >>> I did lots of tinkering trying to get this to work, I am pretty sure I >>> did the reverse. Keil compiled hex flashed with ec2-new. But I can't >>> really trust my memory on that. I am pretty sure I dumped the flash and >>> compared the output. But I can redo it if you want. >>> >>> >>> MvH >>> Benjamin Larsson >> Please do. At the moment the only thing we really know is that SDCC + >> ec2-new does not work for the C8051F330. and we don't know why. If we >> can rule out ec2-new at least we know it is something in the .ihx >> generated by SDCC. >> Please check if writing the .ihx generated by SDCC using a tool other >> than ec2-new works. >> >> Philipp >> >> >> -- >> ___ >> Sdcc-user mailing list >> Sdcc-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/sdcc-user >> > > Hi! > Maybe my comments here are not entirely in tune with the subjectbut > I am just trying to help. > > Have not used the F330 myself, but I frequently use the F930 together > with SDCC. > My development is done in Silicon Labs IDE. The adapter is an old Serial > Adapter EC2 (Cygnal). > > I was surprised to see an .ihx file mentioned. > When I download my software to the boards, I always download the > .omf file. > If you get an ".omf" file from your build, you might want to try that > file for download. > > BR > Joakim Good point. When only linking in another module (use of generic pointers: gptrget/gptrput) gives different results, the location of code may have something to do with it. And since our .ihx file is fragmented and unordered, this may be a problem for ec2-new because it must erase the flash in pages. Please try again after post-processing the .ihx file with packihx. Maarten -- ___ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user
[Sdcc-user] Compiling SDCC from source on Mac OS ... instructions anyone?
Hi, I tried to compile gutils 1.5.0 and sdcc 3.6.0 from source. Downloaded them and compiled/installed gputils like this: cd ~/gputils ./configure make make install No errors reported and looks like everything is ok. Then installed boost from homebrew with: brew install boost and compiled sdcc like this: cd ~/sdcc ./configure CPPFLAGS=-I/usr/local/include/ LDFLAGS=-L/usr/local/lib make make install No error messages and everything looks ok. I then updated my projects Makefile to use sdcc from '/usr/local/bin'. Compilation seems to go fine but linking step fails like this: sdcc --no-crt --ivt-loc=0x800 -V -Wa,-S,0 -Wl,-m,-s18f45k50.lkr -mpic16 -p18f45k50 --disable-warning 85 --std-sdcc99 --obanksel=3 --use-non-free -o ../obj/toad4.hex ../obj/stepper.o ../obj/main.o ../obj/toad4.o ../obj/usb_hid.o ../obj/usb_core.o ../obj/usb_pic_defs.o ../obj/usb_user_config.o ../obj/printft.o ../obj/state_machine.o ../obj/command_queue.o ../obj/crt0iz_toad4.o libc18f.lib libio18f45k50.lib libm18f.lib libsdcc.lib ../obj/hi_speed_irq.o main.c:697 setting interrupt vector addresses 0x800 + /usr/local/bin/gplink -I/usr/local/bin/../share/sdcc/lib/pic16 -I/usr/local/share/sdcc/lib/pic16 -I/usr/local/bin/../share/sdcc/non-free/lib/pic16 -I/usr/local/share/sdcc/non-free/lib/pic16 -m -s18f45k50.lkr -w -r -o ../obj/toad4.hex ../obj/stepper.o ../obj/main.o ../obj/toad4.o ../obj/usb_hid.o ../obj/usb_core.o ../obj/usb_pic_defs.o ../obj/usb_user_config.o ../obj/printft.o ../obj/state_machine.o ../obj/command_queue.o ../obj/crt0iz_toad4.o ../obj/hi_speed_irq.o libc18f.lib libio18f45k50.lib libm18f.lib libsdcc.lib libdev18f45k50.lib libsdcc.lib warning: "/usr/local/bin/../share/sdcc/lib/pic16/libio18f45k50.lib" is missing symbol index. Assertion failed: (gp_archive_have_index(Archive)), function gp_archive_read_index, file gparchive.c, line 598. + /usr/local/bin/gplink -I/usr/local/bin/../share/sdcc/lib/pic16 -I/usr/local/share/sdcc/lib/pic16 -I/usr/local/bin/../share/sdcc/non-free/lib/pic16 -I/usr/local/share/sdcc/non-free/lib/pic16 -m -s18f45k50.lkr -w -r -o ../obj/toad4.hex ../obj/stepper.o ../obj/main.o ../obj/toad4.o ../obj/usb_hid.o ../obj/usb_core.o ../obj/usb_pic_defs.o ../obj/usb_user_config.o ../obj/printft.o ../obj/state_machine.o ../obj/command_queue.o ../obj/crt0iz_toad4.o ../obj/hi_speed_irq.o libc18f.lib libio18f45k50.lib libm18f.lib libsdcc.lib libdev18f45k50.lib libsdcc.lib returned errorcode 6 make: *** [../obj/toad4.hex] Error 1 nyholkus-MacBook-Pro-5:src nyholku$ But if I use the 3.6.0 binary builds from sourceforge for then my project builds cleanly. So I'm missing something, but what? I'm trying to build from source to include the patch from Raphael that should fix the "removed redundant BANKSEL problem", but this test was with clean source (no patch applied) from source forge. I'm on Mac OS X 10.10.5 (Yosemite) if it makes a difference. br Kusti -- ___ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user
Re: [Sdcc-user] Bug in 'removed redundant BANKSEL' ?
>I believe I have a fix for all issues you reported: I can report that I'm now able to build from source and test this and initial impression is that this fixes the issue, still need to put back my original and see that it works alright in this situation and that I don't see regression anywhere else. Thank you very much for working on this. wbr Kusti This e-mail may contain confidential or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We will not be liable for direct, indirect, special or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on or as of transmission of this e-mail in general. -- ___ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user
Re: [Sdcc-user] Compiling SDCC from source on Mac OS ... instructions anyone?
> On 30 Aug 2016, at 18:11, Kustaa Nyholm > wrote: > > Hi, > > I tried to compile gutils 1.5.0 and sdcc 3.6.0 from source. > > Assertion failed: (gp_archive_have_index(Archive)), function > gp_archive_read_index, file gparchive.c, line 598. > But if I use the 3.6.0 binary builds from sourceforge for then my > project builds cleanly. > > So I'm missing something, but what? Turned out that the issue is related gputils 1.5.0, with 1.4.0 from homebrew sdcc 3.6.0 build from source works. br Kusti -- ___ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user