gpt4 book ai didi

How to code pthread/thread library function in AURIX TC275 in AURIX Development Studio?(如何在AURIX Development Studio中编写AURIX TC275中的p线程/线程库函数?)

转载 作者:bug小助手 更新时间:2023-10-24 17:00:15 42 4
gpt4 key购买 nike



I am new to coding Tricore and AURIX Development Studion. I am trying to create a thread to execute a separate function but i am not able to link the thread function.

我对TriCore和AURIX开发工作室的编码是新手。我正在尝试创建一个线程来执行单独的函数,但我无法链接该线程函数。


I tried to link the thread available in include.cxx folder but i am getting the error.

我试图链接包含.cxx文件夹中的可用线程,但收到错误消息。


cctc E205: don't know what to do with ..\AURIX-Studio-1.7.2\plugins\com.infineon.aurix.tools_1.7.2\build_system\tools\Compilers\Tasking_1.1r8\ctc\include.cxx\pthread

CCTCE205:不知道如何处理..\AURIX-Studio-1.7.2\plugins\com.infineon.aurix.tools_1.7.2\build_system\tools\Compilers\Tasking_1.1r8\ctc\include.cxx\pthread


How to link the pthread library and to create threads.

如何链接p线程库和创建线程。


更多回答

"cctc E205" Is that literally the only info you've got? And why would you use pthreads in this kind of application anyway? They are unacceptable/unsuitable for the typical kind of applications where AURIX is used (industrial/automotive).

“CCTC E205”是你唯一的信息吗?而且,您为什么要在这种应用程序中使用p线程呢?对于使用AURIX的典型应用(工业/汽车),它们是不可接受的/不适合的。

@Lundin, I am trying to get some data from a function present in cpu0_main for system level tests. where I need to flash the program and run the application. what happens is all the core threads access the same function and thus leading to a trap or data corruption.

@Lundin, I am trying to get some data from a function present in cpu0_main for system level tests. where I need to flash the program and run the application. what happens is all the core threads access the same function and thus leading to a trap or data corruption.

优秀答案推荐
更多回答

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com