Skip to main content
Vlaty.1
Associate III
January 17, 2022
Question

How to include the library in the project correctly?

  • January 17, 2022
  • 9 replies
  • 5997 views

Good afternoon.I tried to create a demo project (STM32MP157C-DK2\Demonstrations\Al_Character_Recognition) for the STM32MP157D_DK1 board. When assembling, I had a problem.(Gluk_test_1) How to include the library in the project correctly? Sincerely, Alexander.

This topic has been closed for replies.

9 replies

Javier1
Principal
January 17, 2022

Is your question "how to include any library"? or "how to include a particular library you cant find"?

hit me up in https://www.linkedin.com/in/javiermuñoz/
Vlaty.1
Vlaty.1Author
Associate III
January 17, 2022

Sorry. I uploaded the wrong picture.

mƎALLEm
Technical Moderator
January 17, 2022
"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Vlaty.1
Vlaty.1Author
Associate III
January 18, 2022

Thanks for the information. This is what I need. Sincerely, Alexander.

mƎALLEm
Technical Moderator
January 19, 2022

Thank you for the feedback.

Please close this post by clicking the "Select as Best" button in the above answer. This will help other community members to find the solution more quickly.

Thank you.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Vlaty.1
Vlaty.1Author
Associate III
January 26, 2022

Good afternoon. Thanks for the help. But, unfortunately, the problems remained. I really need an example of working on STM32MP157D-DK RTC and working with a graphical application. I tried to make an example of using RTC myself. But, unfortunately, it works once. I used python 3. Where did I go wrong? Sincerely, Alexander.

mƎALLEm
Technical Moderator
January 26, 2022

Hello,

Did you succeed to link the library? you said "But, unfortunately, it works once", so I think yes.. and you have another issue ..

SofLit

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Vlaty.1
Vlaty.1Author
Associate III
January 26, 2022

Unclear. What to do about it?

Vlaty.1
Vlaty.1Author
Associate III
February 9, 2022

Good afternoon, I have written two versions of the time output test programs to the console for STM32MP157D. Both programs work no more than 2 hours, then the system restarts. What did I do wrong?

Sincerely, Alexander.

//////////////////////////////////////////////////////////////////////////////

def time_show():

  await asyncio.sleep(10)

  os.system("date > time_info.txt")

  f = open('time_info.txt','r')

  read_data = f.read()

  f.close()

  os.system("rm time_info.txt")

  print(read_data[11],read_data[12],read_data[13],read_data[14],read_data[15])

if __name__ == "__main__":

  loop = asyncio.get_event_loop()

  loop.run_until_complete(time_show())

  datsa = 10

  for i in range(data):

    time_show()

  os.system("python3 tablo")

//////////////////////////////////////////////////////////////////////////

import asyncio

import datetime

import os

import subprocess

import time

def display_date(end_time, loop)

  print(datetime.datetime.now())

  if (loop.time() + 1.0) < end_time:

    time.sleep(60)

    loop.call_later(1, display_date, end_time, loop)

  else:

    os.system("python3 time_date1")

loop = asyncio.get_event_loop()

end_time = loop.time() + 5.0

loop.call_soon(display_date, end_time, loop)

loop.run_forever()

loop.close()

mƎALLEm
Technical Moderator
February 9, 2022

Dear @Vlaty.1​ ,

I think the original question was answered (How to include the library in the project correctly?) and this is a new issue.

Could you please open a new thread for this new issue?

Thank you ..

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Vlaty.1
Vlaty.1Author
Associate III
February 9, 2022

No. I got around this problem. The problem with the unstable operation of the STM32MP157D-DK board. The operation of the time output program on the console leads to a restart of the system after an hour (Openstlinux)

mƎALLEm
Technical Moderator
February 9, 2022

For the efficiency and to have answers from the community members, It's better for you to open another thread with the right title.. Otherwise, I'm afraid, you have a risk to not get an answer ..

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Vlaty.1
Vlaty.1Author
Associate III
February 9, 2022

OK