This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compile and debug using MSPGCC, MSPDEBUG from the command line, avoiding to use an ide like CCSv5v2.1, typing mspdebug -d tilib /dev/ttyACM0.

Other Parts Discussed in Thread: MSP430F5438A, MSPDS

I' trying to compile and debug using MSPGCC, MSPDEBUG from the Linux command line, avoiding to use an ide like CCSv5v2.1, just for the fun of it and to find out if it's possible to program a MSP430F5438A on a MSP-EXP430F5438 over MSP-FET430UIF.

I have downloaded and installed the latest DLL Developers Package v3.2.4.5 to obtain MSP430.DLL (for Linux) http://processors.wiki.ti.com/index.php/MSPDS_Open_Source_Package and followed the download instructions.

As root after typing  sudo su I did make

root@bo:/home/bo/Downloads/MSP430.DLLv3_OS_Package# make

g++ -c -o DLL430_v3/src/TI/DLL430/MessageData.o DLL430_v3/src/TI/DLL430/MessageData.cpp -fPIC -m32 -Os -I./Bios/include -I./HalObjectDb/include -I./DLL430_v3/include -I./DLL430_v3/include/DLL430 -I./DLL430_v3/src -I./DLL430_v3/src/TI/DLL430 -DUNIX -DNDEBUG

DLL430_v3/src/TI/DLL430/MessageData.cpp: In member function ‘void TI::DLL430::MessageData::read(void*, size_t)’:

DLL430_v3/src/TI/DLL430/MessageData.cpp:99:38: error: ‘memcpy’ was not declared in this scope

DLL430_v3/src/TI/DLL430/MessageData.cpp: In member function ‘void TI::DLL430::MessageData::write(const void*, size_t)’:

DLL430_v3/src/TI/DLL430/MessageData.cpp:113:33: error: ‘memcpy’ was not declared

...and got this error.

Please someone, tell me what to do.

Regards Bo

  • Hey Bo,

    I've got the same problem.   I am working on the issue and will post a solution if I have any luck...but don't let that stop anyone else out there from posting one sooner.

    Regards,

    Jonathan

  • Hey again Bo,

    The fix was so easy you're gonna laugh. Here it goes...  It seems the developers left an include out of two files, duh.  You never got far enough to see the second error.  There are two method calls to header file cstring.h, which aren't scoped without the include.  The methods are memcpy() in source file MessageData.cpp, which you saw.  And the other, which you would have seen if you fixed the MessageData.cpp include, is in header file Sequencer430.h.  The call here was to memset().

    Here is the fix.  Just add #include <cstring> to these two files.

    ~/MSP430.DLLv3_OS_Package/DLL430_v3/src/TI/DLL430/MessageData.cpp

    ~/MSP430.DLLv3_OS_Package/DLL430_v3/src/TI/DLL430/EM/Sequencer/Sequencer430.h

    Cuz I am so nice, I've attached a tarball of the files already fixed for you below, plus a surprise gift inside ;)

    7633.fix.tar.gz

    Happy Coding!

    Jonathan