Re: [Mspgcc-users] buildscript for mspgcc-4.7.0
Here's an adapted build script for Ubuntu 14.04: https://github.com/jlhonora/mspgcc-install Builds gdb too. It doesn't need texinfo 4 and uses the vanilla gcc installed with Ubuntu 14. The corresponding patches are applied for it to build successfully. Please file an issue in the repo if any problem arises. Kind regards, Jose On Thu, Dec 18, 2014 at 9:40 AM, Gunnar Henne g.he...@combio.de wrote: Hi Kees, your attached script was stripped off. I think attachements are not allowed in this list. Kind regards, Gunnar Am 17.12.2014 um 09:28 schrieb Kees Schoenmakers: Hi Friends, Here my script. I had to workaround for some problems, most notably for makeinfo. When trying to build mspgcc with the host 4.8.2 compiler I ran into an ICE too. But as I have some older versions around I tried one and that let it build successfully. I hope it is useful for somebody. best regards Kees -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] MSP430 instruction pipeline
Hi, An e-mail from Peter a few days ago hinted the existence of an instruction pipeline in msp430. It is barely mentioned in the docs and Google results only seem to mention the lack of information about it. I'd like to read more, does anyone know where to look? Thanks in advance, Jose -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] Trouble building Newlib
Hi, I'm trying to build the RedHat version of GCC for msp430 under Ubuntu 13.04, with no luck so far. I'm stuck with building newlib, it throws the following error: make[8]: Entering directory `/home/arqui/mspgcc-install2/msp430-newlib/msp430-elf/430/newlib/libc/argz' msp430-elf-gcc -B/home/arqui/mspgcc-install2/msp430-newlib/msp430-elf/430/newlib/ -isystem /home/arqui/mspgcc-install2/msp430-newlib/msp430-elf/430/newlib/targ-include -isystem /home/arqui/mspgcc-install2/newlib/src/newlib/libc/include -B/home/arqui/mspgcc-install2/msp430-newlib/msp430-elf/430/libgloss/msp430 -L/home/arqui/mspgcc-install2/msp430-newlib/msp430-elf/430/libgloss/libnosys -L/home/arqui/mspgcc-install2/newlib/src/libgloss/msp430 -mcpu=msp430 -DPACKAGE_NAME=\newlib\ -DPACKAGE_TARNAME=\newlib\ -DPACKAGE_VERSION=\2.1.0\ -DPACKAGE_STRING=\newlib\ 2.1.0\ -DPACKAGE_BUGREPORT=\\ -DPACKAGE_URL=\\ -I. -I../../../../../../newlib/src/newlib/libc/argz -Os -DPREFER_SIZE_OVER_SPEED -DSMALL_MEMORY -ffunction-sections -fdata-sections -mOs -DMISSING_SYSCALL_NAMES -fno-builtin -g -O2 -mcpu=msp430 -c -o lib_a-dummy.o `test -f 'dummy.c' || echo '../../../../../../newlib/src/newlib/libc/argz/'`dummy.c Assembler messages: Fatal error: unrecognised argument to -mcpu option 'msp430' I'm building it based on these instructions: http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Install:redhat . Both binutils and gcc were built with no errors. The commands I ran up to that point are the following: ### binutils ### BINUTILS_PREFIX='binutils-2.24' wget http://ftp.gnu.org/gnu/binutils/$BINUTILS_PREFIX.tar.gz tar xvf $BINUTILS_PREFIX.tar.gz mkdir -p msp430-binutils # Configure Binutils cd msp430-binutils # We need to build binutils for the msp430 ../$BINUTILS_PREFIX/configure --target=msp430-elf # build binutils make # Do the install as root (e.g., sudo) sudo make install cd .. ### GCC ### ### mkdir -p gcc-trunk cd gcc-trunk # Check out GCC from SVN svn checkout svn://gcc.gnu.org/svn/gcc/trunk . # Get GCC prerequisites ./contrib/download_prerequisites cd .. mkdir -p msp430-gcc cd msp430-gcc # The exact path here might be different ../gcc-trunk/configure --target=msp430-elf --enable-languages=c,c++ --with-newlib=yes # Note, you must make all-gcc and install-gcc anything else seems to break. make all-gcc # Do the install as root (e.g., sudo) sudo make install-gcc cd .. mkdir -p newlib cd newlib cvs -z 9 -d :pserver:anon...@sourceware.org:/cvs/src login cvs -z 9 -d :pserver:anon...@sourceware.org:/cvs/src co newlib cd .. mkdir -p msp430-newlib # Now Build Newlib for MSP430 (Since this isn't going to run linux or similar OS, we don't need syscalls) cd msp430-newlib ../newlib/src/configure --target=msp430-elf make sudo make install cd .. Am I missing something? I saw that binutils had some changes regarding the mcpu option detection (link: https://www.sourceware.org/ml/binutils/2014-01/msg00295.html). Should I specify '430' as the mcpu option? Thanks in advance for your help. Kind regards, Jose -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Re: [Mspgcc-users] Trouble building Newlib
Hi Nick, Try using the current mainline binutils development sources rather than the 2.24 branch. As in: wget ftp://sourceware.org/pub/binutils/snapshots/binutils.tar.bz2 I had tried that before, but it fails with this error (same with CVS checkout): gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.24.51/binutils -I. -I../../binutils-2.24.51/binutils -I../bfd -I../../binutils-2.24.51/binutils/../bfd -I../../binutils-2.24.51/binutils/../include -DLOCALEDIR=\/usr/local/share/locale\ -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bucomm.o -MD -MP -MF .deps/bucomm.Tpo -c -o bucomm.o ../../binutils-2.24.51/binutils/bucomm.c ../../binutils-2.24.51/binutils/bucomm.c:130:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘VPARAMS’ ../../binutils-2.24.51/binutils/bucomm.c:141:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘VPARAMS’ make[4]: *** [bucomm.o] Error 1 make[4]: Leaving directory `/home/arqui/mspgcc-install2/msp430-binutils/binutils' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/arqui/mspgcc-install2/msp430-binutils/binutils' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/arqui/mspgcc-install2/msp430-binutils/binutils' make[1]: *** [all-binutils] Error 2 make[1]: Leaving directory `/home/arqui/mspgcc-install2/msp430-binutils' make: *** [all] Error 2 Any clues? Jose On Mon, Mar 17, 2014 at 1:40 PM, Nicholas Clifton ni...@redhat.com wrote: Hi Jose, Assembler messages: Fatal error: unrecognised argument to -mcpu option 'msp430' BINUTILS_PREFIX='binutils-2.24' wget http://ftp.gnu.org/gnu/binutils/$BINUTILS_PREFIX.tar.gz Try using the current mainline binutils development sources rather than the 2.24 branch. As in: wget ftp://sourceware.org/pub/binutils/snapshots/binutils.tar.bz2 Cheers Nick -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] mspdebug: enable_bsl_access
Hi, I'm having trouble setting the enable_bsl_access option in mspgcc. I'm using the rf2500 interface as the debugger for an msp430f5528 uC. I've tried the following: - Adding enable_bsl_access True to ~/.mspdebug - Adding enable_bsl_access true to ~/.mspdebug - Adding enable_bsl_access 1 to ~/.mspdebug - Executing the all previous options directly on mspdebug's console. Every time I get something containing unknown command: enable_bsl_access . How should I do it? Maybe I just can't enable it given the setup I'm using. Kind regards, Jose -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Re: [Mspgcc-users] using in-board ez430 FET emulator
Hi Ravim, I can't see the output messages you intended to include, but here's a short how-to. I just hope you don't have a specific problem with your setup. You can use the ez430-FET emulator to program the msp-exp430f5529 without any external hardware. Just plug your mini USB cable to the lower left USB connector (the one in the ez430-FET emulator) and run: sudo mspdebug rf2500 prog bin.elf That should program the device after a few console messages. You can use mspdebug with gdb too, for that you should: 1. Run mspdebug (sudo mspdebug rf2500) 2. In mspdebug, type gdb 3. In another window, run msp430-gdb 4. In gdb, type target remote localhost:2000 5. Done This is assuming you have all these tools installed, if not there are plenty of guides out there on how to install them. Kind regards, Jose On Thu, Jun 20, 2013 at 12:28 PM, ravim ravi.mandl...@gmail.com wrote: Hello every one, I have a MSP-EXP430F5529 board, which has an in-board ez430-FET emulator board. I have been using MSP-FET430UIF to program it. I want to know if we can use this in-board emulator to program this device. This is what datasheet says about ez430-FET board : According to Datasheet: when I tried this, on Ubuntu and on Mac both, this connection is recognized as ez430-rf2500, the mspdebug --usb-list command gives: so when I tried to install the code (which is working successfully with MSP-FET430UIF) using this connection (tried both tty and raw usb access) I get: and the code does not install, which is obvious since the chip on it is msp430f5529 which is not recognized by ez430-rf2500 emulator. I wanted to know if it is possible to use this on board emulator with mspdebug instead of buying a new external MSP-FET430UIF? If it is how to access it. I would really appreciate any response. Let me know if I am making wrong assumptions or doing it totally wrong? Thanks and regards, Ravi -- View this message in context: http://msp430-gcc-users.1086195.n5.nabble.com/using-in-board-ez430-FET-emulator-tp6740.html Sent from the MSP430 gcc - Users mailing list archive at Nabble.com. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Re: [Mspgcc-users] mspdebug working with .ihex files but not .elf
Hi Daniel, The output when programming the ihex binary is the following: $ sudo mspdebug rf2500 prog bin.ihex MSPDebug version 0.20 - debugging tool for MSP430 MCUs Copyright (C) 2009-2012 Daniel Beer dlb...@gmail.com Trying to open interface 1 on 035 rf2500: warning: can't detach kernel driver: No data available Initializing FET... FET protocol version is 30066536 Configured for Spy-Bi-Wire Set Vcc: 3000 mV Device ID: 0x5529 Code start address: 0x4400 Code size : 131072 byte = 128 kb RAM start address: 0x1c00 RAM end address: 0x43ff RAM size : 10240 byte = 10 kb Device: MSP430F5529 Code memory starts at 0x4400 Number of breakpoints: 8 Chip ID data: 55 29 14 Erasing... Programming... Writing 24 bytes at 1800... Writing 4096 bytes at 4400... Writing 4096 bytes at 5400... Writing 4096 bytes at 6400... Writing 4096 bytes at 7400... Writing 4096 bytes at 8400... Writing 4096 bytes at 9400... Writing 4096 bytes at a400... Writing 4096 bytes at b400... Writing 4096 bytes at c400... Writing 1716 bytes at d400... Writing 128 bytes at ff80... Done, 38732 bytes total The issue does disappear when removing the .infomem section $ sudo mspdebug rf2500 prog bin.elf MSPDebug version 0.20 - debugging tool for MSP430 MCUs Copyright (C) 2009-2012 Daniel Beer dlb...@gmail.com Trying to open interface 1 on 035 rf2500: warning: can't detach kernel driver: No data available Initializing FET... FET protocol version is 30066536 Configured for Spy-Bi-Wire Set Vcc: 3000 mV Device ID: 0x5529 Code start address: 0x4400 Code size : 131072 byte = 128 kb RAM start address: 0x1c00 RAM end address: 0x43ff RAM size : 10240 byte = 10 kb Device: MSP430F5529 Code memory starts at 0x4400 Number of breakpoints: 8 Chip ID data: 55 29 14 Erasing... Programming... Writing 4096 bytes at 4400 [section: .text]... Writing 4096 bytes at 5400 [section: .text]... Writing 4096 bytes at 6400 [section: .text]... Writing 4096 bytes at 7400 [section: .text]... Writing 4096 bytes at 8400 [section: .text]... Writing 4096 bytes at 9400 [section: .text]... Writing 4096 bytes at a400 [section: .text]... Writing 4096 bytes at b400 [section: .text]... Writing 3310 bytes at c400 [section: .text]... Writing 18 bytes at d0ee [section: .data]... Writing 128 bytes at ff80 [section: .vectors]... Done, 36224 bytes total Kind regards, Jose Honorato On Mon, Sep 24, 2012 at 4:53 PM, Daniel Beer dlb...@gmail.com wrote: On Mon, Sep 24, 2012 at 01:30:25PM -0300, Jose Luis Honorato L. wrote: I'm writing a basic UART data logger for the msp-exp430f5529 board, and for some reason I'm not able to install the generated binary in .elf format using mspdebug under Ubuntu 12.04.1 LTS. Anyhow, when generating a copy in ihex format using msp430-objcopy the binary is installed correctly. This does not happen to every compiled program, just for some. The log when I try to load the .elf file is the following: Hi Jose, Would you be able to show the output (as below) when you're programming the HEX file? Programming... Writing 4096 bytes at 4400 [section: .text]... Writing 4096 bytes at 5400 [section: .text]... Writing 4096 bytes at 6400 [section: .text]... Writing 4096 bytes at 7400 [section: .text]... Writing 4096 bytes at 8400 [section: .text]... Writing 4096 bytes at 9400 [section: .text]... Writing 4096 bytes at a400 [section: .text]... Writing 4096 bytes at b400 [section: .text]... Writing 4096 bytes at c400 [section: .text]... Writing 1700 bytes at d400 [section: .text]... Writing 16 bytes at daa4 [section: .data]... Writing 24 bytes at 1800 [section: .infomem]... Writing 128 bytes at ff80 [section: .vectors]... Done, 38732 bytes total fet: reply type mismatch fet: reset failed warning: prog: failed to reset after programming fet: reply type mismatch fet: final reset failed fet: reply type mismatch fet: close command failed Does anything change if you omit the .infomem section from your binary? - Daniel -- Daniel Beer dlb...@gmail.comwww.dlbeer.co.nz IRC: inittab (Freenode)PGP key: 2048D/160A553B -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users