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.

MSPM0G3507: Mspm0g3507

Part Number: MSPM0G3507

Tool/software:

Hi support,

I am new to TI controller. I am using CCS theia. I want to add a new folder named "supporting_files"  to exiting project  to keep the data segregated.

But the files inside the folder can not read port data of the controller. for example it is giving error with following code, can not read the function given below. How ever this function in main files is working fine.

 DL_GPIO_clearPins(GPIOA_PORT, GPIOA_LCD_DB4_PIN | GPIOA_LCD_DB5_PIN | GPIOA_LCD_DB6_PIN | GPIOA_LCD_DB7_PIN ) ;
Best Regards
Tulsi Das
8010893636
  • Hi Tulsi,
    The IDE won't recognize the files you are using unless they are on the same "address" as the main file. I recommend not using a folder since it will "isolate" from the required libraries (so that the function you want to use gets in those files are recognized), as you mentioned in the thread.

    Best Regards,

    Diego Abad

  • Hi Diego,
    Good afternoon to you. Thank you for your prompt response.
    Now I am now able to add files in my project. Thank you again.
    I need one more help from you to add global variables in my project. I added a separate file named "variables" as shown in the picture below and included this file wherever I needed in other parts of projects
    .
    I declare all variables in "dis_ups1p_variables" as below
          static volatile uint8_t rxData[ = {0x00, 0x00, 0x00, 0x00} ;
          static volatile uint8_t lcd_colomb = 0x00 ;
       
    Is this the correct way to use global variables or can you tell me some nice way?
    Best Regards
    Tulsi Das
  • Hi Tulsi,
    I think you got it correct. I recommend using an extern before each variable if you plan to define its value in another file. 
    Best Regards,
    Diego Abad