Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mspgcc is obsclete #26

Closed
docprofsky opened this issue May 3, 2016 · 6 comments
Closed

mspgcc is obsclete #26

docprofsky opened this issue May 3, 2016 · 6 comments

Comments

@docprofsky
Copy link

The mspgcc project is no longer developed and has been superseded by MSP430-GCC, which is maintained by TI. We should consider moving to that compiler.

@travisgoodspeed
Copy link
Owner

Howdy Schuyler,

Could you send me a pull request to update the documentation for the more modern compiler?

Cheers from Pizza Rat City,
-Travis

@docprofsky
Copy link
Author

It is a bit more involved than just updating the documentation. There are some changes in the new compiler that require changes to the code and makefile.
You can see the changes I have made so far at docprofsky/goodfet:new-compiler-support

I am getting this error about a missing header, which I think may be from TI changing the headers.
lib/msp430f2618.c:5:23: fatal error: sys/crtld.h: No such file or directory

I used these environment variables to point TI GCC at the include directory. In this case ~/opt/ti/gcc is what I set the install directory to.
CFLAGS='-I ~/opt/ti/gcc/include/ -L ~/opt/ti/gcc/include/'

I used this document as a starting point for getting the compiler working.
http://www.ti.com/lit/ug/slau646a/slau646a.pdf

@finderman2
Copy link

Just wanted to bump this thread to see if any progress has been made. I recently assembled my own goodfet42 from parts, so I need to flash it from a clean source, I installed the TI compiler but can't seem to get the goodfet software to use it

@travisgoodspeed
Copy link
Owner

On Debian/Stretch, the code builds properly with the following packages. The error concerning sys/crtld.h is caused because msp430-libc is missing; perhaps it isn't included with TI's toolchain?

binutils-msp430 - Binary utilities supporting TI's MSP430 targets
gcc-msp430 - GNU C compiler (cross compiler for MSP430)
gdb-msp430 - The GNU debugger for MSP430
msp430-libc - Standard C library for TI MSP430 development
msp430mcu - Spec files, headers and linker scripts for TI's MSP430 targets
mspdebug - debugging tool for MSP430 microcontrollers

@finderman2
Copy link

I should have mentioned that I was trying this on a mac, I then tried it on an Ubuntu 16 machine (real not VM) and got a different error. It's seems like the goodfet program is timing out trying to send the password, is there anything on the hardware I should check? the TX/RX lights do work and blink, though the RX light doesn’t seem to do anything when the program is sending the password (only TX)

@docprofsky
Copy link
Author

The issue of programming is probably related to the resetting of the MSP430. I had this issue on MacOS 10.10, thought it probably applies to most versions; I fixed it by installing the FTDI driver.

To build the firmware, I use these packages from MacPorts.

msp430-binutils
msp430-gcc
msp430-libc
msp430mcu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants