Skip to main content
Associate
June 27, 2023
Solved

Cannot edit middleware header files

  • June 27, 2023
  • 1 reply
  • 1502 views

Hi,

I'm following the LoRaWAN with STM32 Getting Started series on youtube and stuck with Part 6 - Low power modes. I need to change the "DEFAULT_TX_POWER" to TX_POWER_11 to work with the X-NUCLEO-LPM01A Shield.

I'm unable to make any changes to the region.h files in STM32Cube-fw-wl-v1.3.0. (Or any of the header files found in Middlewares/Third_Party). Is this normal and I just have to create new head files or am I missing something?

Kind regards,

 

Oliver

    This topic has been closed for replies.
    Best answer by Florian LR

    Hi @ollyole,

    Sometimes some files are read-only to avoid modifying some libraries by mistake. To change this you can modify the properties of the file.

    If you are on windows, right click on the file (in the file explorer), then go to properties and under the general section you can uncheck read-only.

    On Linux open the console and use the command :

    chmod u+w name_of_your_file      to enable write permission.

    This should solve your file editing problem. If it persists, tell me and we'll look together where it can come from.

     

    Best Regards, 

    Florian LR

    1 reply

    Florian LR
    Florian LRBest answer
    ST Employee
    June 27, 2023

    Hi @ollyole,

    Sometimes some files are read-only to avoid modifying some libraries by mistake. To change this you can modify the properties of the file.

    If you are on windows, right click on the file (in the file explorer), then go to properties and under the general section you can uncheck read-only.

    On Linux open the console and use the command :

    chmod u+w name_of_your_file      to enable write permission.

    This should solve your file editing problem. If it persists, tell me and we'll look together where it can come from.

     

    Best Regards, 

    Florian LR

    ollyoleAuthor
    Associate
    June 27, 2023

    Thanks Florian! Now changed and able to see and change the power consumption :)