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.
Tool/software:
Hello, I've been developing an application for the MSPM0G3107-Q1, concretely the 20 pins version, and while debugging the code seems to be working fine but if I flash it (via Uni Flash and a XDS110 probe) the MCU does not seem to enter the application after a Power ON Reset. When I read the memory via UniFlash after programming and after I turn off and back on power it seems to read the same contents, so I guess programming has worked properly. I can also reprogram it/debug it and it works fine even when disconnecting the debugger, but if I turn off the power and turn it on again then it does not work in any way.
It seems like it does not enter the main, so I'm guessing there must be some configuration I have missed. I have not edited the NONMAIN in any way so I'm guessing there may be some parameter somewhere on the build configuration which may help set behavior but I am a bit lost as it's the first time I've had to set this up, so help will be appreciated. Probably it's something easy to fix but I am more of a HW guy so I'm a bit lost on the finer details of MCU's.
Thanks in advance!
Hi,
Have you changed the device information to MSPM0G3107 in your project?
Best regards,
Cash Hao
Hi,
Okay, then it could be something goes wrong on the clock system.
What is your clock system configuration looks like?
Best regards,
Cash Hao
Hello I am not using the clock tree for this, as I am using the default clock config on each peripheral. I have the Main Clock set to SYSOSC directly as per default. Can this be a problem when booting up? It does sound weird for this to be the case to be honest.
Hi,
Using SYSOSC for the MCLK is okay.
One more thing to check is the PA18 pin status. This pin is default BSL invoke pin. If this pin is high before MCU power on, the MCU will enter BSL mode and does not run you application.
Best regards,
Cash Hao