Skip to main content
Associate II
June 11, 2024
Solved

UART NOT WORKING IN SEQUENCER UNDER LPM

I AM USING STM32 WL55JC2 CONTROLLER TO WORK AS A LORA END NODE , I AM WORKING WITH EXCISTING CODE FOR LORA END NODE AND I WANT TO CONFIGURE UART1 , THE CODE IS WORKING UNDER  SEQUENCER OS. SO I AM TRYING TO IMPLEMENT UART1 WITHIN THE SEQUENCER OS , UART1 FUNCTION IS CALLED UNDER THE SEQUENCER OS , THE FUNCTION IS CALLING BY THE SEQUENCER , BUT THE UART IS NOT WORKING , I TRIED WITH DMA AS WELL AS INTERUPT , EVEN THOUGH UART IS NOT WORKING.I NEED SUPPORT PLEASE HELP ME .

This topic has been closed for replies.
Danish1
Danish1Best answer
Lead III
June 11, 2024

I think the problem is that the LORA examples aim for extremely low power operation.

As such, they stop the processor clock when it doesn't have any more processing work to do just at this moment (with a programmed wake-up in time for the next transmission or reception).

If you need the processor clock for other things e.g. UART communication, you need to prevent this. I don't remember precisely how I did this, but it is probably along the lines of

 UTIL_LPM_SetStopMode(1 << CFG_LPM_SENS_Id, UTIL_LPM_DISABLE);

 

4 replies

Danish1
Danish1Best answer
Lead III
June 11, 2024

I think the problem is that the LORA examples aim for extremely low power operation.

As such, they stop the processor clock when it doesn't have any more processing work to do just at this moment (with a programmed wake-up in time for the next transmission or reception).

If you need the processor clock for other things e.g. UART communication, you need to prevent this. I don't remember precisely how I did this, but it is probably along the lines of

 UTIL_LPM_SetStopMode(1 << CFG_LPM_SENS_Id, UTIL_LPM_DISABLE);

 

MANOJ_RAuthor
Associate II
June 26, 2024

THIS WORKS FOR TRANSMITTING USING UART, BUT I WANT TO RECIEVE SOME DATAS WITH UART RX INTERRUPT PLEASE PROVIDE A FUNCTION TO EXECUTE UART TRANSMIT AND WAIT FOR RX INTERRUPT DATA TO GET THE DATA FROM UART INTERRUPT AFTER SENDING THIS TX DATA , IT IS A 11 BYTE MESSAGE I AM RECIEVING ...

Andrew Neil
Super User
June 26, 2024

continued here: https://community.st.com/t5/stm32cubeide-mcus/low-power-mode-and-sequencer/td-p/690145

 

@MANOJ_R  - PLEASE STOP THE ALL-CAPITALS!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.