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 20:02] – [Patch] darron | tools:mspflasher [2023/11/10 13:50] (current) – [Build] darron | ||
---|---|---|---|
Line 19: | Line 19: | ||
First install [[https:// | First install [[https:// | ||
- | ===Build=== | + | ===Extract=== |
- | Extract files and apply makefile fix. | + | Extract files. |
< | < | ||
Line 29: | Line 29: | ||
tar zxvf ~/ | tar zxvf ~/ | ||
cd Source | cd Source | ||
- | sed -i ' | ||
</ | </ | ||
===Patch=== | ===Patch=== | ||
- | This patch is required to stop the app entering an infinite loop. | + | 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; | + | |
- | { | + | |
</ | </ | ||
- | Whether this patch is actually required was not tested. | ||
- | < | + | ===Install=== |
- | diff -u StdUseCase.cpp.orig StdUseCase.cpp | + | |
- | --- StdUseCase.cpp.orig 2019-05-13 10: | + | |
- | +++ StdUseCase.cpp | + | |
- | @@ -388,6 +388,10 @@ | + | |
- | | + | |
- | } | + | |
- | + // load device database | + | Make the binary and install it. |
- | + MSP430_LoadDeviceDb(NULL); | + | |
- | + Print_N_Log(STD_MSG," | + | |
- | + | + | |
- | // set interface speed | + | |
- | | + | |
- | { | + | |
- | </ | + | |
- | + | ||
- | ===Install=== | + | |
< | < | ||
Line 85: | 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 100: | Line 54: | ||
[[https:// | [[https:// | ||
- | + | /* | |
- | [[https:// | + | [[https:// |
+ | */ |