Re: [Mspgcc-users] Mspgcc-users Digest, Vol 122, Issue 1
I would say start the debug session and have it run until you need to investigate things. You could even use 'mspdebug' for that. On Sat, Mar 17, 2018 at 1:11 PM,wrote: > Send Mspgcc-users mailing list submissions to > mspgcc-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > or, via email, send a message with subject or body 'help' to > mspgcc-users-requ...@lists.sourceforge.net > > You can reach the person managing the list at > mspgcc-users-ow...@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Mspgcc-users digest..." > > > Today's Topics: > >1. How to connect to a running target using MSPDebug (archie) > > > -- > > Message: 1 > Date: Fri, 16 Mar 2018 08:30:19 -0700 (MST) > From: archie > To: mspgcc-users@lists.sourceforge.net > Subject: [Mspgcc-users] How to connect to a running target using > MSPDebug > Message-ID: <1521214219922-0.p...@n5.nabble.com> > Content-Type: text/plain; charset=us-ascii > > Hello, > > I am currently using MSP430FR5994. I program and debug it using MSP430.dll > v3.3.1.4. I am unable to connect a running device to mspdebug without > causing a reset to the program. > > I want to connect a running target to mspdebug without stopping it or > resetting the device. Currently. I connect to my device using 'tilib' > driver. I get the following status after which the device is reset: > Using new (SLAC460L+) API > MSP430_Initialize: /dev/ttyACM0 > Firmware version is 31001600 > MSP430_VCC: 3000 mV > MSP430_OpenDevice > MSP430_GetFoundDevice > Device: MSP430FR5994 (id = 0x01e9) > 3 breakpoints available > MSP430_EEM_Init > Chip ID data: > ver_id: 82a1 > ver_sub_id: > revision: 10 > fab:55 > self: > config: 10 > fuses: 55 > warning: unknown chip > > Thank you. > > > > > > -- > Sent from: http://msp430-gcc-users.1086195.n5.nabble.com/ > > > > -- > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > -- > > Subject: Digest Footer > > ___ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > -- > > End of Mspgcc-users Digest, Vol 122, Issue 1 > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Re: [Mspgcc-users] Mspgcc-users Digest, Vol 120, Issue 3
Hi, I don't have the latest MSP FET model (black) but the older grey version MSP-FET430UIF. I learned the hard way that it may pay-off to save the i2c eeprom contents upfront too. I used Ponyprog2000 with a simple LPT port adapter to access the I2C bus to the eeprom. Furthermore use mspdebug -bsl to save the current contents of the FET firmware for later use. Verify that you got all, don't forget the info memory. Now I have 2 versions around, one with the V2 version and one with V3 that understands tilib. best regards, Kees best rega On 11/29/17, mspgcc-users-requ...@lists.sourceforge.netwrote: > Send Mspgcc-users mailing list submissions to > mspgcc-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > or, via email, send a message with subject or body 'help' to > mspgcc-users-requ...@lists.sourceforge.net > > You can reach the person managing the list at > mspgcc-users-ow...@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Mspgcc-users digest..." > > > Today's Topics: > >1. Re: Problem with new MSP-FET (Rich Osman) > > > -- > > Message: 1 > Date: Tue, 28 Nov 2017 14:03:04 -0600 > From: Rich Osman > To: mspgcc-users@lists.sourceforge.net > Subject: Re: [Mspgcc-users] Problem with new MSP-FET > Message-ID: <1abe8ff0-a840-f57b-3ec8-952c4ee6c...@richosman.com> > Content-Type: text/plain; charset=utf-8 > > On 11/27/2017 11:41 AM, Daniel Beer wrote: >> On Mon, Nov 27, 2017 at 09:57:54AM +0100, Marko Cebokli wrote: >>> FET firmware update is required. >>> Starting firmware update (this may take some time)... >>> Initializing bootloader... >>> Initializing bootloader... >>> Initializing bootloader... >>> tilib: MSP430_FET_FwUpdate: MSP-FET430UIF Firmware erased - Bootloader >>> active (error = 56) >>> tilib: device initialization failed >> Hi Marko, >> >> What happens if you try with -d /dev/ttyACM0 instead? >> >> Cheers, >> Daniel >> > I don't remember the details, but there are several versions of the FET > firmware for these depending on the client software (not just OS, but > GUI/CLI.) They are largely mutually exclusive.? I saw similar error > messages last year and had to solve it with a reflash of a different > tool version.? Worth a search. > > -- > mailto:li...@richosman.com http://www.richosman.com > Rich Osman; POB 93167; Southlake, TX 76092 (Near DFW Airport) ARS: N1OZ > > > > > > > -- > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > -- > > Subject: Digest Footer > > ___ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > -- > > End of Mspgcc-users Digest, Vol 120, Issue 3 > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] buildscript
Ok guys, For who is interested I have two options: 1) put the script _inline_ to the mailing list (171 lines). I am not sure if it will be appreceated. 2) drop me a mail at mailrequ...@cschoen.nl 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
[Mspgcc-users] buildscript for mspgcc-4.7.0
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
Re: [Mspgcc-users] Mspgcc-users Digest, Vol 102, Issue 3
Hello Friends, I have a shellscript from the past that I used to build my mspgcc tools. I am testing it now if it still works. It builds mspgcc 4.7.0, msp binutils, mspgdb and the libraries. I will post it if the results are good. I'am running Ubuntu 14.04 LTS for some time. Kees On 12/8/14, mspgcc-users-requ...@lists.sourceforge.net mspgcc-users-requ...@lists.sourceforge.net wrote: Send Mspgcc-users mailing list submissions to mspgcc-users@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/mspgcc-users or, via email, send a message with subject or body 'help' to mspgcc-users-requ...@lists.sourceforge.net You can reach the person managing the list at mspgcc-users-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than Re: Contents of Mspgcc-users digest... Today's Topics: 1. Re: .data initialization not working (Nicholas Clifton) 2. Re: .data initialization not working (Peter Bigot) 3. Re: .data initialization not working (Paul Sokolovsky) 4. Re: .data initialization not working (Peter Bigot) 5. Re: .data initialization not working (Eric Price) 6. Re: .data initialization not working (Grant Edwards) 7. Re: .data initialization not working (Grant Edwards) -- Message: 1 Date: Mon, 08 Dec 2014 14:36:15 + From: Nicholas Clifton ni...@redhat.com Subject: Re: [Mspgcc-users] .data initialization not working To: Eric Price pr...@smartmote.de, mspgcc-users@lists.sourceforge.net Message-ID: 5485b75f.5020...@redhat.com Content-Type: text/plain; charset=windows-1252 Hi Guys, I have attached a patch which will restore the old movedata functionality to the toolchain. Strange - the attachment disappeared. Here it is again. Cheers Nick -- Message: 2 Date: Mon, 8 Dec 2014 08:42:28 -0600 From: Peter Bigot big...@acm.org Subject: Re: [Mspgcc-users] .data initialization not working To: Nicholas Clifton ni...@redhat.com Cc: mspgcc-users@lists.sourceforge.net Message-ID: capoj94pczx89ztldvqsjntkj_dqye7crlmxxd8wdi_mlidu...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Unfortunately this list doesn't support attachments. Perhaps somebody could put it on E2E and add a pointer. Interesting that TI proposed a solution that doesn't work for ROM resident applications, which are all but the most infinitesimal subset of the applications that use an MSP430. (It's so implausible I'm half convinced I don't understand exactly what's happened here.) Peter On Mon, Dec 8, 2014 at 8:36 AM, Nicholas Clifton ni...@redhat.com wrote: Hi Guys, I have attached a patch which will restore the old movedata functionality to the toolchain. Strange - the attachment disappeared. Here it is again. Cheers Nick -- 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 -- Message: 3 Date: Mon, 8 Dec 2014 17:01:08 +0200 From: Paul Sokolovsky pmis...@gmail.com Subject: Re: [Mspgcc-users] .data initialization not working To: Peter Bigot big...@acm.org Cc: mspgcc-users@lists.sourceforge.net Message-ID: 20141208170108.4b4a00de@x230 Content-Type: text/plain; charset=US-ASCII Hello, On Mon, 8 Dec 2014 08:42:28 -0600 Peter Bigot big...@acm.org wrote: Unfortunately this list doesn't support attachments. Perhaps somebody could put it on E2E and add a pointer. Or maybe RedHat even has version control system, maybe even with web interface? Interesting that TI proposed a solution that doesn't work for ROM resident applications, which are all but the most infinitesimal subset of the applications that use an MSP430. (It's so implausible I'm half convinced I don't understand exactly what's happened here.) Peter, can you please consider maintaining mspgcc for couple years more, while dear esteemed vendors sort out issue how to teleport application code out of thin air into RAM? Peter On Mon, Dec 8, 2014 at 8:36 AM, Nicholas Clifton ni...@redhat.com wrote: Hi Guys, I have attached a patch which will restore the old movedata functionality to the toolchain. Strange - the attachment disappeared. Here it is again. Cheers Nick
[Mspgcc-users] code size
I tried the newer msp-GCC (TI/RedHat) distribution on my project(s). It still builds with _far_ more code then my present msp430-gcc (4.7.0). This compiler has also some minor habits but produces compact code. So for the moment I will not switch to the newer version, my project would not fit in the flash. 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
[Mspgcc-users] no .infomem for msp430f449 ???
Hello all, Our project makes extensive use of infomem and even more 'infomem' pages taken from the code space. The first botch is that the linker script does not specify .infomem at all kees@SEPC002:~/projekten/Collector/clucitf/Hart$ make /opt/ti/gcc/bin/msp430-elf-gcc -o mymy.elf -g -I /opt/ti/gcc/include -std=gnu99 -mmcu=msp430f449 -fms-extensions Dataalloc.o Main.o Timers.o Subroutines.o Eerom.o Modbusmaster.o Hartserial.o Hartprocess.o Display.o Displayapp.o Hartunivers.o Hartcompractice.o Harttransmitspec.o Hartmain.o Harttimers.o Sensors.o Modbusserial.o Hartconversion.o Hartplatformdep.o -L/opt/ti/gcc/include -Wl,--cref /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: mymy.elf section `.text' will not fit in region `ROM' /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: error: no memory region specified for loadable section `.infomem' collect2: error: ld returned 1 exit status My question is: is it possible to use a 'local' copy of the link script, modify it and reference it in the Makefile? And how should this local copy be referenced correctly to override the system default? best regrads Kees -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] default interrupt vectors
Hi All, I liked the way (old) mspgcc did preload all interrupt vectors with UNEXPECTED(). That way it was easy to catch wrong interrupt operations/assignments during debugging and also during normal operation. However this is not supported any more with the new toolkit. Kees -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] code size
Hello All, I have a project that build fine with the 'old' mspgcc (4.7.0). I managed to get it build and linked with the new toolkit. At first the code did not fit, where it did before. I disabled some features in the source tree and now I can build with both GCC versions (4.7.0 vs 4.9.1). However the difference in code size is significant, se the following comparison: mspgcc 4.7.0 .text sizes Main.o 0x184 Timers.o 0x226 Subroutine.o 0x21e Eerom.o0x51c Modbusmaster.o 0x1fa Hartserial.o 0x422 Hartprocess.o 0x8ae Hartunivers.o 0xa60 Hartcompractice.o 0x1a52 Hartransmspec.o 0xbfe Hartmain.o 0x81a Harttimers.o 0xb4 Sensors.o 0x2ee Modbuserial.o 0x11e Hartconversion.o 0x348 Hartplatformdep.o 0x2d0 libs 0xe4c etext=0x9664 mspgcc 4.9.1 .text sizes Main.o 0x1f4 Timers.o 0x27e Subroutine.o 0x30a Eerom.o0x68a Modbusmaster.o 0x22a Hartserial.o 0x436 Hartprocess.o 0xc5c Hartunivers.o 0xb30 Hartcompractice.o 0x1c98 Hartransmspec.o 0xdda Hartmain.o 0xa24 Harttimers.o 0xc0 Sensors.o 0x452 Modbuserial.o 0x142 Hartconversion.o 0x3dc Hartplatformdep.o 0x32c libs 0x306c etext= 0xc906 I hope someone can use these numbers. I compiled with the same CCFLAGS, optimizing etc. best regards Kees -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] msp430-gcc-full-linux-installer-2.1.1.0.run
Hello All, I downloaded and installed this toolkit. After that I tried to build my project with it. It fails with the following errors: [snip] /opt/ti/gcc/bin/msp430-elf-gcc -c Modbusserial.c -g -I /opt/ti/gcc/include -std=gnu99 -mmcu=msp430f449 -fms-extensions /opt/ti/gcc/bin/msp430-elf-gcc -c Hartconversion.c -g -I /opt/ti/gcc/include -std=gnu99 -mmcu=msp430f449 -fms-extensions /opt/ti/gcc/bin/msp430-elf-gcc -c Hartplatformdep.c -g -I /opt/ti/gcc/include -std=gnu99 -mmcu=msp430f449 -fms-extensions /opt/ti/gcc/bin/msp430-elf-gcc -o mymy.elf Dataalloc.o Main.o Timers.o Subroutines.o Eerom.o Modbusmaster.o Hartserial.o Hartprocess.o Display.o Displayapp.o Hartunivers.o Hartcompractice.o Harttransmitspec.o Hartmain.o Harttimers.o Sensors.o Modbusserial.o Hartconversion.o Hartplatformdep.o -L/opt/ti/gcc/include /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: error: Dataalloc.o uses MSP430 instructions but /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o uses MSP430X /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: failed to merge target specific data of file Dataalloc.o /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: error: Main.o uses MSP430 instructions but /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o uses MSP430X /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: failed to merge target specific data of file Main.o /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: error: Timers.o uses MSP430 instructions but /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o uses MSP430X /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: failed to merge target specific data of file Timers.o /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: error: Subroutines.o uses MSP430 instructions but /opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o uses MSP430X [snip] Is there an option that I missed to force it to build for the non MSP430X memory-model? best regards Kees -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] strange assembly instruction
Hello All, Compiling a C module ends with this error: kees@SEPC002:~/nonbackup/projekten/1b0301xx-E110p/Common/Menu$ msp430-elf-gcc -I../Io -I../Misc -I../Inc -I /opt/ti/gcc/include -I /usr/local/msp430/msp430/include -DSETPLATFORMF1 -c bargraph.c /tmp/ccuORGPs.s: Assembler messages: /tmp/ccuORGPs.s:78: Error: instruction bis.a does not exist I attached the .s file MOVAlcd+24, R14 MOV.W 4(R1), R12 MOV.W 6(R1), R13 PUSH.W R13 { PUSH.WR12 { POPM.A#1, R12 BIS.A R14, R12 MOV.W R12, lcd+24 Note the MOVA and the BIS.A instructions Kees -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] No clue for thsi....
Hi All, I have a software project that builds fine met mspgcc (4.7.0) I installed the toolkit via the T.I. site, modified the Makefile to reflect this compiler and support files, Trying to build gives a long list of messages, Here I snipped from the top. = /opt/ti/gcc/bin/msp430-elf-gcc -c Harttimers.c -g -I/opt/ti/support/include -Wstrict-prototypes -Wunused -fno-inline -fno-builtin-memset -fno-builtin-memcpy -Wextra -fms-extensions -mmcu=msp430f449 -O2 -Wall -Wno-old-style-declaration -std=c99 In file included from /opt/ti/support/include/msp430f449.h:70:0, from /opt/ti/support/include/msp430.h:367, from Mainapp.h:23, from Harttimers.c:17: /opt/ti/support/include/iomacros.h:49:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'asm' #define sfrb_(x,x_) extern volatile unsigned char x asm(#x_) ^ /opt/ti/support/include/iomacros.h:57:20: note: in expansion of macro 'sfrb_' #define sfrb(x,x_) sfrb_(x,x_) ^ /opt/ti/support/include/msp430f449.h:147:1: note: in expansion of macro 'sfrb' sfrb(IE1, IE1_); ^ /opt/ti/support/include/iomacros.h:49:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'asm' #define sfrb_(x,x_) extern volatile unsigned char x asm(#x_) ^ /opt/ti/support/include/iomacros.h:57:20: note: in expansion of macro 'sfrb_' #define sfrb(x,x_) sfrb_(x,x_) ^ /opt/ti/support/include/msp430f449.h:157:1: note: in expansion of macro 'sfrb' sfrb(IFG1, IFG1_); ^ /opt/ti/support/include/iomacros.h:49:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'asm' #define sfrb_(x,x_) extern volatile unsigned char x asm(#x_) ^ /opt/ti/support/include/iomacros.h:57:20: note: in expansion of macro 'sfrb_' #define sfrb(x,x_) sfrb_(x,x_) ^ /opt/ti/support/include/msp430f449.h:166:1: note: in expansion of macro 'sfrb' sfrb(ME1, ME1_); ^ == Which wise soul can enlighten me here. Kees -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Re: [Mspgcc-users] No clue for thsi....
On 9/15/14, DJ Delorie d...@redhat.com wrote: -mmcu=msp430f449 -O2 -Wall -Wno-old-style-declaration -std=c99 By specifying -std=c99 you have disabled all the GNU extensions, including asm. Try --std=gnuc99 instead, or replace asm with __asm__ in those headers. Thank you, I'll try. Kees -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] msp430-elf-gcc (GCC) 4.9.1 20140707 (prerelease (msp430-14r1-10)) (GNUPro 14r1) (Based on: GCC 4.8 GDB 7.7 Binutils 2.24 Newlib 2.1)
Hello All, I found the archives for the newest msp430-gcc on the TI site via . http://www.ti.com/tool/MSP430-3P-GCC-MSPGCC-TPDE I found that it installs by default in /opt/ti/gcc which does not interfere with my existing msp430-gcc toolchain. I also installed the support files in /opt/ti/support I modified my Makefile to refer to the new toolchain, includes and libs. When doing a make I get a complaint about an Interrupt routine entry: In file included from /opt/ti/support/include/msp430.h:367:0, from Mainapp.h:22, from Main.c:15: Main.c: At top level: /opt/ti/support/include/msp430f449.h:1417:33: error: expected declaration specifiers or '...' before '(' token #define PORT1_VECTOR( 5) /* 0xFFE8 Port 1 */ ^ Main.c:205:12: note: in expansion of macro 'PORT1_VECTOR' interrupt (PORT1_VECTOR) TimerP1INTS (void) ^ make: *** [Main.o] Error 1 I tried various changes but no result. How to satisfy this error complaint? best regards, Kees -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Re: [Mspgcc-users] msp430-elf-gcc (GCC) 4.9.1 20140707 (prerelease (msp430-14r1-10)) (GNUPro 14r1) (Based on: GCC 4.8 GDB 7.7 Binutils 2.24 Newlib 2.1)
Hello Ben, Yes I downloaded them from http://www.ti.com/tool/msp430-gcc-opensource so they are the production version. Thank you any way, Kees On 9/10/14, Ben Ransford b...@ransford.org wrote: On Sep 10, 2014, at 7:19 AM, Kees Schoenmakers ksli...@gmail.com wrote: I found the archives for the newest msp430-gcc on the TI site via . http://www.ti.com/tool/MSP430-3P-GCC-MSPGCC-TPDE The production version of GCC for MSP430, which TI announced* on August 18, lives here: http://www.ti.com/tool/msp430-gcc-opensource ... whereas the URL you mentioned seems to refer to a beta release. I don't know whether the production version fixes the syntax error you saw, but perhaps it's worth a try. -ben * I haven't seen this link publicized widely, for whatever reason. -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Re: [Mspgcc-users] Mspgcc-users Digest, Vol 98, Issue 4
do: //-- // // Table to handle Timer A TIAV vectoring // static void (*const TAIVTable[]) (void) = { InterruptDummy, // no interrupt TimerA1INT, // period interval 10 mS TimerA2INT, // period interval 1mS InterruptDummy, // TimerA3 InterruptDummy, // TimerA4 TimerAOverFlow, // overflow handling InterruptDummy, // impossible InterruptDummy // impossible }; //-- // // Timer A jump to corresponding function // reading TxIV provides vector and // clears the (highest) pending interrupt // #ifdef __GNUC__ interrupt (TIMERA1_VECTOR) TimerAINTS (void) #else #endif { TAIVTable[TAIV 1] (); } Is straightforward. regards Kees On 7/10/14, mspgcc-users-requ...@lists.sourceforge.net mspgcc-users-requ...@lists.sourceforge.net wrote: Send Mspgcc-users mailing list submissions to mspgcc-users@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/mspgcc-users or, via email, send a message with subject or body 'help' to mspgcc-users-requ...@lists.sourceforge.net You can reach the person managing the list at mspgcc-users-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than Re: Contents of Mspgcc-users digest... Today's Topics: 1. __delay_cycles() is not working with timerA interrupts (Kirill Popov) 2. Re: __delay_cycles() is not working with timerA interrupts (Wayne Uroda) 3. Re: __delay_cycles() is not working with timerA interrupts (Kirill Popov) 4. Re: __delay_cycles() is not working with timerA interrupts (Kirill Popov) -- Message: 1 Date: Fri, 4 Jul 2014 10:22:09 +0400 From: Kirill Popov kirill.s.po...@gmail.com Subject: [Mspgcc-users] __delay_cycles() is not working with timerA interrupts To: mspgcc-users@lists.sourceforge.net Message-ID: cafeoejo2t3ivnu6_abu80p6yw1tfk6d46q_cn455cu72wqu...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 Hello! I've got an issue with using __delay_cycles() while also utilizing TimerA interrupts. It seems that __delay_cycles(); is not working if TimerA interrupts are enabled. Even if nothing is done in interrupt routine. Here is a sample code: == main.c #include msp430g2553.h // Timer A0 interrupt service routine (at top value) #pragma vector=TIMER0_A0_VECTOR __interrupt void Timer_A0 (void) { TACCTL0 = ~(TAIFG); // clear interrupt flag } // Timer A1 interrupt service routine (in the middle) #pragma vector=TIMER0_A1_VECTOR __interrupt void Timer_A1 (void) { if (TACCTL1 TAIFG) { TACCTL1 = ~(TAIFG); // clear interrupt flag } } int main(void) { WDTCTL = WDTHOLD | WDTPW; //halt watchdog P1REN = ~(BIT6); // pull-ups are disabled on pins 0 and 6 P1DIR |= BIT6; // pins 0 and 6 are outputs P1OUT = ~(BIT6); // pin 6 and pin 0 are LOW TACCR0 = 0x0fff; // set top value for timerA TACCR1 = 0x00ff; //set LED glow power TACCTL0 = (CCIE); // enable compare interrupt for TACCR0 TACCTL1 = (CCIE); // enable compare interrupt for TACCR1 TACTL = (TASSEL1 | MC0 | TACLR | TAIE); // SMCLK, cnt UP, clear, interrupt _BIS_SR(GIE); // enable blobal interrupts for (;;) { P1OUT ^= BIT6; __delay_cycles(100); } return 0; } end of main.c = I expect this code to blink with a LED on P1.6 with approximately 1 second interval (no precise timing required). But all I see is the LED just lit all the time. If I comment out the line with _BIS_SR(GIE); the LED is blinking as expected. What could be the reason? My guess is interrupt routine is somehow spoiling registers used by __delay_cycles(). Is that true? Would be thankful for a workaround if there is such. I'm using msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched) from Debian repository to build code for TI Launchpad MSP-EXP430G2 (M430G2553 chip). Thank you! -- Best regards, Kirill Popov. Other ways to contact me: Gtalk: kirill.s.po...@gmail.com Cell phone: +79052062619 LinkedIn: http://ru.linkedin.com/in/kspopov -- Message: 2 Date: Fri, 4 Jul 2014 16:57:50 +1000 From: Wayne Uroda w.ur...@gmail.com Subject: Re: [Mspgcc-users] __delay_cycles() is not working with timerA interrupts To: kirill.s.po...@gmail.com Cc: mspgcc-users@lists.sourceforge.net mspgcc-users@lists.sourceforge.net Message-ID:
[Mspgcc-users] weird code with MSPGCC
Hello, I experienced some odd effect when msp430-gcc tries to inline memcpy and/or memset. the code #include stdint.h void test_memcpy(void) { uint8_t mybuffer[10]; memset((uint8_t*)mybuffer, 0, 10); } when compiled with msp430-gcc -c -O2 -mmcu=msp430f449 mspgcc_memcpy.c results in Disassembly of section .text: test_memcpy: 0: 31 50 f6 ff add #-10, r1 ;#0xfff6 4: 81 43 06 00 mov #0, 6(r1) ;r3 As==00, 0x0006(r1) 8: 81 43 08 00 mov #0, 8(r1) ;r3 As==00, 0x0008(r1) c: 31 50 0a 00 add #10,r1 ;#0x000a 10: 30 41 ret In my opion thats not clearing 10 bytes Without optimation the code appears sound. msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120911) Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Same size problem I noticed with memcpy if inlined best regards Kees -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] why mspgcc does ICE
Hello, The following piece of code cause an ICE to happen. typedef struct { unsigned long maskbits:20; char extra; } MYSTRUCT; MYSTRUCT mys = {0}; void test_ice(void) { unisgned long lvar = 0x0f; mys.maskbits = lvar; // == ICE here } kees:$ msp430-gcc -mmcu=msp430f449 -c mspgcc_ice.c mspgcc_ice.c: In function 'test_ice': mspgcc_ice.c:13:15: internal compiler error: in convert_move, at expr.c:437 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120911) Copyright (C) 2012 Free Software Foundation, Inc. smaller bitfields work well. I don't know if later mspgcc versions does ICE here too. Kees -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users
[Mspgcc-users] msp430-elf-as
Hi All, I noticed that _after linking_ the jump offsets are correctly calculated and placed... I have build binutils, gcc and newlib successfuly, I last problem remains while building gdb config.status: executing depfiles commands config.status: executing default commands checking whether NLS is requested... yes checking for catalogs to be installed... checking whether makeinfo --split-size=500 supports @click... yes checking for default auto-load directory... $debugdir:$datadir/auto-load checking for default auto-load safe-path... $debugdir:$datadir/auto-load configure: error: configuration msp430-unknown-elf is unsupported. make[1]: *** [configure-gdb] Error 1 make[1]: Leaving directory `/home/kees/embedded/msp430/buildgcc4_9/builddir/msp430-gdb' make: *** [all] Error 2 Any clue? Thanks all, Kees -- 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] Bug in MSP430-AS
Hello All, I have a project which is build with IAR in the past and contains a couple of assembly sources. When building it with the lastest binutils(msp430-as) I am struck with a bug in calculation of offsets. ALL versions of msp430-as, the latest included, generate faulty code here. I simplified one code sample to intern1:mov #1,r15 dec r14 jz lab1 nop jmp lab2 intern2:dec r15 jnz intern2 ret lab1: mov #2,r14 callintern1 callintern2 ret lab2: mov #3,r13 ret .end When I assemble it with msp430-as -c bug430as.S the resulting code shows weird offsets for the 'jumps' (jmp, jz jnz), even the calls... What is happening here? In the final linked binary with a lot of .c and .S files the offsets are also wrong in the same way. Another project, solely of .c files runs well Kees -- 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] (no subject)
Hi All, The test from my previous post file _has_ .global statements .global lab1, lab2 intern1:mov #1,r15 dec r14 jz lab1 nop jmp lab2 intern2:dec r15 jnz intern2 ret lab1: mov #2,r14 callintern1 callintern2 ret lab2: mov #3,r13 ret .end sorry, Kees -- 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