So, the problem was, as I expected, self-induced. I had edited system_ msp432p401r .c and changed the #define __SYSTEM_CLOCK 3000000 to #define __SYSTEM_CLOCK 48000000 which, apparently I was not supposed to do. I am (finally) once again making progress. The order of the clock systems calls relative to the other peripheral setup calls (like flash wait state) in the clock example are more critical than I expected. I did expect that setting the core voltage would have to happen before the clock selection, but not setting flash timing. I need to go through system_ msp432p401r .c and suss out exactly what it's doing. The comments often just echo the code and offer little insight as to why something is being done.
↧