Hy guys,
i want to use the different low power modes for my msp432 datalogger but I don't know how I could configure them in the CCS.
I want to use the LPMxx which deals with a power consumption in µA when the controller sleeps.
Greetings,
Chris
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.
Hy guys,
i want to use the different low power modes for my msp432 datalogger but I don't know how I could configure them in the CCS.
I want to use the LPMxx which deals with a power consumption in µA when the controller sleeps.
Greetings,
Chris
Hi Christoph!
Download the code examples and look at the following two programs:
But note that the code examples are not CMSIS compliant yet (at least I think so). But they show the basic principle.
Dennis
Hi Christoph!
Christoph Marko said:I couldn't find the system.c
Is it asked for?
Christoph Marko said:several error messages because of the PCM and the WDT in the compile process
Dennis Eichmann said:But note that the code examples are not CMSIS compliant yet
See:
Dennis
Christoph Marko said:So to solve the problem with the unknown expressions the CCS has to be updated?
No, it is the other way - the updated CCS will not allow the older example programs. If you read the CMSIS info page you will see that the differences are not that big. It is mostly other names for the definitions and some other ways of working with the registers of the MSP. But there is also a conversion tool available. This might not change everything perfectly, but you can give it a try. Also have a look in the CMSIS compliant header files for the MSP432 - there you will see the "new" type of register names which often are the old ones with some extra text. For register accessing, the previously linked in page shows how to do it now.
Christoph Marko said:Is for the old version a project available to use the different low power modes?
The code examples are the older version.
Dennis
/* Enable all SRAM bank retentions prior to going to LPM3 (Deep-sleep) */ SYSCTL->SRAM_BANKRET |= SYSCTL_SRAM_BANKRET_BNK7_RET; __enable_interrupt(); NVIC->ISER[1] = 1 << ((PORT6_IRQn) & 31); /* Setting the sleep deep bit */ SCB->SCR |= (SCB_SCR_SLEEPDEEP_Msk); PCM->CTL0 = PCM_CTL0_KEY_VAL | PCM_CTL0_LPMR__LPM35;
When I use this in my code I got these errors:
Hi Dennis,
I tried this yesterday with the power mode 0, but I couldn't see a difference to the normal mode.
My msp432 was supplied by a solar cell and I measured the current between the solar cell and the micro controller.
When the programm goes to the sleep mode the current was as high as in the working mode.
Did I meausure wrong or have I problem with the program?
Christoph Marko said:Did I meausure wrong or have I problem with the program?
Hard so say without knowing your hardware and your code. You should add some more information. Is it a custom board or are you working with the LaunchPad? What is your setup?
Dennis
hi dennis,
thats really strange. I tried to connect only my launchpad to the full loaded supercap (1F/5.5V) and the voltage decreased rapidly.
Could this depend on the power save mode ?
Hello Dennis,
I connected the anode of the supercap with the 5V input and the kathode of the supercap with GND. The jumpers (3.3V, 5V,RTS,CTS,RXD and TXD) between the XDS110-ET and the MSP432P401R board are set. Could it be that the XDS needed the high amount of the current??
**Attention** This is a public forum