MAX32630fthr not powering on properly

Hi,

I am currently working on the MAX32630fthr and it was powering on and compiling fine till I got the error ‘The interface firmware FAILED to reset/halt the target MCU’ from the DAPlink. The board does seem to power up when I plug in the USB but only the 1.8V pin outputs the correct voltage while I get no output from the 3.3V pin. Anybody having similar problems? My previously installed program does not run and it does not want to receive new programs.

Thanks,
Andre

Hi Andre,

From HW side, have you checked all the jumper and reworked part?
From FW side, please check this discussion.

Regards,
Desmond

Hi Desmond,

Yes all the pins and solder joints look fine. I have tried updating the firmware to the DAPlink but the problem is still there. I think somehow the PMIC does not initiate the 3.3V pin logic hence not even the user LED blinks. Not sure if it plays a part but before the problem happened, I left my MCU running on an idle loop for hours to go do other things. Came back, and it died on me. I have ordered a new one anyway.

Thanks for your help,
Andre

Hi Andre,

By default the MAX32630FTHR board outputs only 1.8V to all the GPIO pins (including the on board LED).
This helps to keep power consumption low, however it might lead to confusions until you are not aware with this fact and the fix for that.

Your main.cpp should begin like that to fix the issue:
#include “mbed.h”
#include “lib/max32630fthr/max32630fthr.h”
#include “lib/max32630fthr/MAX14690/MAX14690.h”
MAX32630FTHR myMax32630(MAX32630FTHR::VIO_3V3);

(if you call MAX32630FTHR myMax32630(MAX32630FTHR::VIO_3V3); from within main() function, then it needs to be the very first thing to do, otherwise it is not reliable, so best practice is to instanciate it earlier).

By the way with those includes one can also define the voltage for each pin independently so that some pins could output 3.3V while others only 1.8V and so on., however most applications do not need that…

I get: [Error] main.cpp@1,10: expected "FILENAME" or <FILENAME> [Error] main.cpp@2,10: expected "FILENAME" or <FILENAME> [Error] main.cpp@3,10: expected "FILENAME" or <FILENAME> [Error] main.cpp@4,1: unknown type name 'MAX32630FTHR' [Error] main.cpp@4,25: use of undeclared identifier 'MAX32630FTHR'

when I add that to my main.cpp.

@frankus
I think that is because MAX32630FTHR folder that contains some vendor specific code is not part of Mbed OS core.

To get a copy of that folder you can import an example program from the board’s page found here.
Using the online compiler you can just download that library, or you can use Mbed Studio’s Library tab to grab it from this URL.