Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:mspflasher [2023/11/09 19:47] – [Usage] darron | tools:mspflasher [2023/11/10 13:50] (current) – [Build] darron | ||
---|---|---|---|
Line 19: | Line 19: | ||
First install [[https:// | First install [[https:// | ||
- | ===Fetch=== | + | ===Extract=== |
+ | |||
+ | Extract files. | ||
< | < | ||
Line 27: | Line 29: | ||
tar zxvf ~/ | tar zxvf ~/ | ||
cd Source | cd Source | ||
- | sed -i ' | ||
</ | </ | ||
===Patch=== | ===Patch=== | ||
+ | |||
+ | Apply fixes. | ||
< | < | ||
- | | + | sed -i 's/char cOpt;/int cOpt;/' Support.cpp |
- | --- Support.cpp.orig | + | sed -i 's/-lmsp430/-lmsp430 -lpthread/' Makefile |
- | +++ Support.cpp 2023-11-09 19: | + | |
- | @@ -304,7 +304,7 @@ | + | |
- | } | + | |
- | + | ||
- | // get parameter | + | |
- | - while ((cOpt = getopt(argc, | + | |
- | + while ((cOpt = getopt(argc, | + | |
- | { | + | |
- | // choose code for determined parameter | + | |
- | switch (cOpt) | + | |
- | @@ -761,7 +761,7 @@ | + | |
- | } | + | |
- | + | ||
- | // get additional use case specific parameters | + | |
- | - while ((cOpt = getopt(argc, | + | |
- | + while ((cOpt = getopt(argc, | + | |
- | { | + | |
- | for(i = 0; i < g_lCountOpt; | + | |
- | { | + | |
</ | </ | ||
- | < | + | ===Install=== |
- | diff -u StdUseCase.cpp.orig StdUseCase.cpp | + | |
- | --- StdUseCase.cpp.orig 2019-05-13 10: | + | |
- | +++ StdUseCase.cpp | + | |
- | @@ -388,6 +388,10 @@ | + | |
- | | + | |
- | } | + | |
- | + | ||
- | + // load device database | + | |
- | + MSP430_LoadDeviceDb(NULL); | + | |
- | + Print_N_Log(STD_MSG," | + | |
- | + | + | |
- | // set interface speed | + | |
- | | + | |
- | { | + | |
- | </ | + | |
- | ===Build=== | + | Make the binary and install it. |
< | < | ||
Line 80: | Line 49: | ||
cp ../ | cp ../ | ||
</ | </ | ||
- | ===Usage=== | ||
- | |||
- | When you run this with parameters it sits in a infinite loop reading | ||
- | the arguments, hence it's useless without the fixes found | ||
- | on the TI forum. | ||
- | |||
- | Whether the target works or not in Linux is also dependant upon the | ||
- | firmware version in the target which can be downgraded using an old | ||
- | libmsp430.so and then upgraded with a newer libmsp430.so with | ||
- | mspdebug. | ||
===Resources=== | ===Resources=== | ||
Line 95: | Line 54: | ||
[[https:// | [[https:// | ||
- | + | /* | |
- | [[https:// | + | [[https:// |
+ | */ |