Skip to main content
Vlaty.1
Associate III
Jan 17, 2022 07:45 UTC
Question

How to include the library in the project correctly?

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.

13 replies

Javier1
Principal
Jan 17, 2022 07:47 UTC

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
Jan 17, 2022 07:51 UTC

Sorry. I uploaded the wrong picture.

mƎALLEm
ST Technical Moderator
Jan 17, 2022 12:04 UTC
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Vlaty.1
Vlaty.1Author
Associate III
Jan 18, 2022 06:59 UTC

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

mƎALLEm
ST Technical Moderator
Jan 19, 2022 16:01 UTC

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 "Best answer" on the reply which solved your issue or answered your question.
Vlaty.1
Vlaty.1Author
Associate III
Jan 26, 2022 06:44 UTC

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
ST Technical Moderator
Jan 26, 2022 08:26 UTC

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 "Best answer" on the reply which solved your issue or answered your question.
Vlaty.1
Vlaty.1Author
Associate III
Jan 26, 2022 09:19 UTC

Unclear. What to do about it?

Vlaty.1
Vlaty.1Author
Associate III
Feb 9, 2022 09:39 UTC

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
ST Technical Moderator
Feb 9, 2022 10:08 UTC

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 "Best answer" on the reply which solved your issue or answered your question.
Vlaty.1
Vlaty.1Author
Associate III
Feb 9, 2022 10:32 UTC

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
ST Technical Moderator
Feb 9, 2022 10:44 UTC

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 "Best answer" on the reply which solved your issue or answered your question.
Vlaty.1
Vlaty.1Author
Associate III
Feb 9, 2022 10:49 UTC

OK