# Embedded development on Linux Mint

#### StrongPenguin

Joined Jun 9, 2018
287
I took the plunge and swtiched to Linux, cold turkey. I kinda like it, It's stable and you get a sense of control, which I haven't felt with Windows since XP. And it doesn't constantly ask for a bloody who-gives-a-crap update. It's a lot more of a hassle to work with than Windows, though. I had to ask google how to delete a folder today I'm getting off topic here from the get go...

I really liked Code Composer Studio. It had it's flaws and stuff, but I really like the everything being in one place type of deal. Really convenient.

And after installing CCS, I found out that my MSP430G2553 launchpad is not supported And If I look up an article for this issue, it's like 10 pages long and involves jumping through a lot of hoops. Which I have in no way interest in. I find it difficult enough to code the MCU alone.

So, what do Linux users do, who play with MCU?

Bear in mind, I am not above buying a new type, or different brand of MCU, as long as I get good (amateur level) software to follow it.

#### be80be

Joined Jul 5, 2008
2,051
I use pic and avr and a arduino like ide for
The chip you posted

#### StrongPenguin

Joined Jun 9, 2018
287
Could you please elaborate your post? You use AVR and PIC for a TI controller? PIC, what's it called?

#### be80be

Joined Jul 5, 2008
2,051
The pic microchip Mplab x works great with linux
And can be used with avr chips too.
The msp does take a bit to setup on linux
I use this for it
http://www.ti.com/tool/ENERGIA

#### StrongPenguin

Joined Jun 9, 2018
287
Ok, very cool. I thought about Energia after posting this, but as far as I know, It does not come with a debugger. Is there any solution for this?

#### be80be

Joined Jul 5, 2008
2,051
I can't say I never really needed debugging I build it and if problem I use serial it see for problems

#### StrongPenguin

Joined Jun 9, 2018
287
Ok, that sounds like a viable option for me. But by using serial for looking for problems/bugs, what do you mean? Serial analyser?

#### ananya gupta 1

Joined Oct 15, 2019
1
The main advantages of embedded Linux over proprietary embedded operating systems include multiple suppliers for software, development and support and no royalties or licensing fees and has a stable kernel with the ability to read, modify and redistribute the source code. If you want to learn the Embedded system then ok to join best training institute.

#### rsjsouza

Joined Apr 21, 2014
291
And after installing CCS, I found out that my MSP430G2553 launchpad is not supported
You should play the lottery; This is pretty much the only launchpad still active that is not supported in Linux - all their other MCU launchpads work in this OS.

I never understood why Energia works with this launchpad in Linux but not CCS, Uniflash, etc. Perhaps it is because it uses only the serial port and not a debugger.

#### dl324

Joined Mar 30, 2015
12,677
Ok, that sounds like a viable option for me. But by using serial for looking for problems/bugs, what do you mean? Serial analyser?
If you use Arduino boards, digital I/O's D0 and D1 are dedicated to serial I/O. That's a pain in the a** if if you need/want a PORT with 8 bits. There's a software serial option that I hear is terrible.

#### dl324

Joined Mar 30, 2015
12,677
It's the same command in a Windows command window: rmdir.
Code:
For more information on a specific command, type HELP command-name
ASSOC    Displays or modifies file extension associations.
AT       Schedules commands and programs to run on a computer.
ATTRIB   Displays or changes file attributes.
BREAK    Sets or clears extended CTRL+C checking.
CACLS    Displays or modifies access control lists (ACLs) of files.
CALL     Calls one batch program from another.
CD       Displays the name of or changes the current directory.
CHCP     Displays or sets the active code page number.
CHDIR    Displays the name of or changes the current directory.
CHKDSK   Checks a disk and displays a status report.
CHKNTFS  Displays or modifies the checking of disk at boot time.
CLS      Clears the screen.
CMD      Starts a new instance of the Windows command interpreter.
COLOR    Sets the default console foreground and background colors.
COMP     Compares the contents of two files or sets of files.
COMPACT  Displays or alters the compression of files on NTFS partitions.
CONVERT  Converts FAT volumes to NTFS.  You cannot convert the
current drive.
COPY     Copies one or more files to another location.
DATE     Displays or sets the date.
DEL      Deletes one or more files.
DIR      Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY   Edits command lines, recalls Windows commands, and creates macros.
ECHO     Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE    Deletes one or more files.
EXIT     Quits the CMD.EXE program (command interpreter).
FC       Compares two files or sets of files, and displays the differences
between them.
FIND     Searches for a text string in a file or files.
FINDSTR  Searches for strings in files.
FOR      Runs a specified command for each file in a set of files.
FORMAT   Formats a disk for use with Windows.
FTYPE    Displays or modifies file types used in file extension associations.
GOTO     Directs the Windows command interpreter to a labeled line in a
batch program.
GRAFTABL Enables Windows to display an extended character set in graphics
mode.
HELP     Provides Help information for Windows commands.
IF       Performs conditional processing in batch programs.
LABEL    Creates, changes, or deletes the volume label of a disk.
MD       Creates a directory.
MKDIR    Creates a directory.
MODE     Configures a system device.
MORE     Displays output one screen at a time.
MOVE     Moves one or more files from one directory to another directory.
PATH     Displays or sets a search path for executable files.
PAUSE    Suspends processing of a batch file and displays a message.
POPD     Restores the previous value of the current directory saved by PUSHD.
PRINT    Prints a text file.
PROMPT   Changes the Windows command prompt.
PUSHD    Saves the current directory then changes it.
RD       Removes a directory.
REM      Records comments (remarks) in batch files or CONFIG.SYS.
REN      Renames a file or files.
RENAME   Renames a file or files.
REPLACE  Replaces files.
RMDIR    Removes a directory.
SET      Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT    Shifts the position of replaceable parameters in batch files.
SORT     Sorts input.
START    Starts a separate window to run a specified program or command.
SUBST    Associates a path with a drive letter.
TIME     Displays or sets the system time.
TITLE    Sets the window title for a CMD.EXE session.
TREE     Graphically displays the directory structure of a drive or path.
TYPE     Displays the contents of a text file.
VER      Displays the Windows version.
VERIFY   Tells Windows whether to verify that your files are written
correctly to a disk.
VOL      Displays a disk volume label and serial number.
XCOPY    Copies files and directory trees.
If you're using a desktop, you just drag it to the trash can.

#### StrongPenguin

Joined Jun 9, 2018
287
@ananya gupta 1 Probably a bit above my payroll, but sounds lovely

@rsjsouza I (metaphorically) scrapped the MSP430 and bought a PIC Curiosity Board. Just to try something else. I'm also thinking about getting a newer TI dev board, which is supported by Linux, I just don't know which one, yet.

@dl324 I'm not using Arduino, because I am interested in under the hood workings of a MCU, not so much the shiny results. Though some results from time to time would be nice

#### be80be

Joined Jul 5, 2008
2,051
You can code under the hood as you say even with the arduino it's called without the cores
This a sample
Code:
/* Arduino Uno Blink sketch for use with the empty core */

#include <avr/io.h>
#include <stdint.h>

int led = 5; // In port B

void setup() {
DDRB = DDRB | 1<<led;         // Define PB5 as an output
}

volatile long Counter;

void delay (long n) {          // Delay by n milliseconds
Counter = 469 * n;
do Counter--; while (Counter != 0);
}

// The loop routine runs over and over again forever:
void loop() {
PORTB = PORTB | 1<<led;      // Take PB5 high
delay(1000);                 // Wait for a second
PORTB = PORTB & ~(1<<led);   // Take PB5 low
delay(1000);                 // Wait for a second
}

// We need main()
int main() {
setup();
for(;;) loop();
}

#### joeyd999

Joined Jun 6, 2011
4,477
It's the same command in a Windows command window: rmdir.
Code:
For more information on a specific command, type HELP command-name
ASSOC    Displays or modifies file extension associations.
AT       Schedules commands and programs to run on a computer.
ATTRIB   Displays or changes file attributes.
BREAK    Sets or clears extended CTRL+C checking.
CACLS    Displays or modifies access control lists (ACLs) of files.
CALL     Calls one batch program from another.
CD       Displays the name of or changes the current directory.
CHCP     Displays or sets the active code page number.
CHDIR    Displays the name of or changes the current directory.
CHKDSK   Checks a disk and displays a status report.
CHKNTFS  Displays or modifies the checking of disk at boot time.
CLS      Clears the screen.
CMD      Starts a new instance of the Windows command interpreter.
COLOR    Sets the default console foreground and background colors.
COMP     Compares the contents of two files or sets of files.
COMPACT  Displays or alters the compression of files on NTFS partitions.
CONVERT  Converts FAT volumes to NTFS.  You cannot convert the
current drive.
COPY     Copies one or more files to another location.
DATE     Displays or sets the date.
DEL      Deletes one or more files.
DIR      Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY   Edits command lines, recalls Windows commands, and creates macros.
ECHO     Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE    Deletes one or more files.
EXIT     Quits the CMD.EXE program (command interpreter).
FC       Compares two files or sets of files, and displays the differences
between them.
FIND     Searches for a text string in a file or files.
FINDSTR  Searches for strings in files.
FOR      Runs a specified command for each file in a set of files.
FORMAT   Formats a disk for use with Windows.
FTYPE    Displays or modifies file types used in file extension associations.
GOTO     Directs the Windows command interpreter to a labeled line in a
batch program.
GRAFTABL Enables Windows to display an extended character set in graphics
mode.
HELP     Provides Help information for Windows commands.
IF       Performs conditional processing in batch programs.
LABEL    Creates, changes, or deletes the volume label of a disk.
MD       Creates a directory.
MKDIR    Creates a directory.
MODE     Configures a system device.
MORE     Displays output one screen at a time.
MOVE     Moves one or more files from one directory to another directory.
PATH     Displays or sets a search path for executable files.
PAUSE    Suspends processing of a batch file and displays a message.
POPD     Restores the previous value of the current directory saved by PUSHD.
PRINT    Prints a text file.
PROMPT   Changes the Windows command prompt.
PUSHD    Saves the current directory then changes it.
RD       Removes a directory.
REM      Records comments (remarks) in batch files or CONFIG.SYS.
REN      Renames a file or files.
RENAME   Renames a file or files.
REPLACE  Replaces files.
RMDIR    Removes a directory.
SET      Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT    Shifts the position of replaceable parameters in batch files.
SORT     Sorts input.
START    Starts a separate window to run a specified program or command.
SUBST    Associates a path with a drive letter.
TIME     Displays or sets the system time.
TITLE    Sets the window title for a CMD.EXE session.
TREE     Graphically displays the directory structure of a drive or path.
TYPE     Displays the contents of a text file.
VER      Displays the Windows version.
VERIFY   Tells Windows whether to verify that your files are written
correctly to a disk.
VOL      Displays a disk volume label and serial number.
XCOPY    Copies files and directory trees.
If you're using a desktop, you just drag it to the trash can.
Not a single one of those commands will work in Linux.

#### djsfantasi

Joined Apr 11, 2010
7,551

#### nsaspook

Joined Aug 27, 2009
8,158