assignment of member 'port' in read-only object

Dear, I defined Port1 pins as in attached overlay file. The binding of pins is done as in lcd.h attached file. When, build is started, the error written in title is displayed and build failed. Please guide, how to fix this issue.

Gulzar Singh

    

Parents Reply
  • Hi Gulzar,

    As you can observe on line 263, 264 and 265 in main.c, you have added the statements to include the .c files. Since the lcd, delay and msg are custom files that you create for your project, the Icd.h, delay.h and msg.h should be included inside the .c versions of these files.

    Also, lcd.c , delay.c and msg.c should be called inside CMakeLists.txt inside your project folder.

    A detailed way of creating a custom application is mentioned in the GitHub page of one of my colleagues.. Kindly take a look.

    Regards,

    Priyanka

Children
Related