Giter Club home page Giter Club logo

as's Introduction

This repo is no longer active supported, a new project is started and source code opened at

as

automotive software and its tool-chain

Build Status

why this repository

Because I am not powerful so I decided to develop tiny but smart part of automotive software based on open source, and create a general AUTOSAR & Automotive Software study environment.

As below picture shows, it was an virtual cluster based on AUTOSAR and can be simulated on Windows and Linux.

ascore posix vic on AUTOSAR

Key Point

1. BSW

1.1 Integrated ArcCore AUTOSAR 3.1 BSW

  • Communication: Can(CanFD) CanIf PduR Com SoAd J1939Tp
  • Diagnostic: CanTp Dcm DoIP Dem
  • System: EcuM SchM
  • Memory: Fls Fee Eep Ea NvM MemIf

1.2 AS Mini BSW

Mainly for the purpose to create a small footprint bootloader with all of the code implemented by me.

This RTOS ASKAR is designed according to OSEK/VDX OS223 by taking a reference of a lot of other open source RTOS, generally, the bwlow is the list:

For the purpose that to be able to run most of the common applications which are based on posix, a series of posix APIs have been implemented based on the ASKAR OSEK tiny core.

  • posix threads
  • posix semaphore
  • posix mutex and condition
  • posix message queue
  • posix signals

General supported CPU architecture list:

  • arm32: cortex-m3 arm926
  • arm64: cortex-a57 (multicore is supported)
  • ppc: mpc5634
  • intel: i386
  • s12cpuv2: mc9s12xep100

3. BSW configuration tool

This GUI tool is the one from OpenSAR which is also developed by me, the GUI can be automatically created from xml.

as configure tool

4. AUTOSAR & LINUX communication

5. Lua & Python Integrated

  • support CAN device by lascanlib or pyas: CANcaseXL, PeakCAN, SocketCAN, ZLG USBCAN
  • support miscellaneous device by lasdevlib with the smae API interface "open/read/write/ioctl/close": rs232
  • a powerful python as.one.py tool: Dcm Xcp Bootloader and others.
  • a powerful third party RTE tool integrated: cogu/autosar

as.one.py bootloader

6. Other 3rd part package

7. Setup Environment and Run

Check the page as-study-platform for how to setup the environment from zero by yourself.

8. AS USB2CAN device

stm32f107vc USB2CAN

stm32

as's People

Contributors

parai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

as's Issues

how to use the plugin in OpenSAR Studio

Hi:
I found there is a plugin label in the OpenSAR Studio. And it can import dbc signals. What i can use it to do. And can you teach how to use this plugin. thanks.

Maybe A Compile Error In Linux Ubuntu: Wrong $ASROOT/SConscript ?

Hello, I really appreciate for your work of this AutoSar study platform.
However, when I want to use Ubuntu 16.04 as the host OS for this project, some errors occurred.
One of them is as following:

scons: warning: Ignoring missing SConscript 'build/posix/posix/ascore/release/SConscript'
File "/root/as-master/SConscript", line 5, in <module>
TypeError: 'NoneType' object is not iterable:
  File "/root/as-master/SConstruct", line 12:
    objs = SConscript('SConscript',variant_dir=BDIR, duplicate=0)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 614:
    return method(*args, **kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/root/as-master/SConscript", line 5:
    objs += SConscript('release/SConscript')

I guess that is caused by the file Conscript in $ASROOT:

5    objs += SConscript('release/SConscript')

Scons wants to read the file SConscript in 'release/SConscript', but indeed no such file is available in the dir.

At the beginning, I thought some code in as would modify or create such a file, however I did not find such code.

So I modified this line to:

5    objs += SConscript('release/ascore/SConscript')

This works if I want to build the ascore RELEASE.

So my question is: Is that an error? If not, how should I prepare the env to avoid it?

link error with _sbrk, _read etc..

compile with _sbrk, _read undefined error.
i add compile option with "--specs=nosys.specs'" in building.py but still got the same error.

i think link the libnosys.a with fix the problem . but i don't know how to do.

kconfig-mconf.exe excutes failed

I got this:
source "$ASROOT/com/as.infrastructure/system/kernel/rtthread/rt-thread/Kconfig"
failed, there is no ”rt-thread/Kconfig“ in directory of "as/com/as.infrastructure/system/kernel/rtthread"

help~

---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

when I run ./run.sh in aslinux/build, I find this problem, could you help me? thank you

This application failed to start because it could not find or load the Qt platform plugin "windows" in "".

This application failed to start because it could not find or load the Qt platform plugin "windows"
in "".

Reinstalling the application may fix this problem.
Exception: FAIL of RunCommand "cd E:\DOIP\asenv\as\com\as.tool\config.infrastructure.system\ & python studio.py E:\DOIP\asenv\as\build\nt\stm32f107vc\ascore\config" = -1073740791:
File "E:\DOIP\asenv\as\SConstruct", line 14:
Building(target,objs)
File "E:\DOIP\asenv\as\com\as.tool\config.infrastructure.system\building.py", line 1334:
RunCommand('cd %s && %s studio.py %s'%(studio,env['python3'],pd))
File "E:\DOIP\asenv\as\com\as.tool\config.infrastructure.system\building.py", line 652:
raise Exception('FAIL of RunCommand "%s" = %s'%(cmd, ret))

QEMU window says "Booting" and no action henceforth

Hello all,

Somehow i managed to compile and generate a bootable image for X86 platform. But when the executable is started, the QEMU window reads " Booting" and there is no action after that. Please help me get this resolved. Is there a way to debug this? I tried starting on (gdb) but cant figure out much. I have attached an image of the issue.

QEMU_Booting

scons command fail -- code warrior compiler

D:\Devel\as>scons
scons: Reading SConscript files ...
==> Please set environment CWCC_PATH
set CWCC_PATH=/path/to/codewarrior_compiler

Why is not the path properly set by the installer? Where is the compiler supposed to be located?

scons problem

when i do follow :
set BOARD=stm32f107vc
set RELEASE=ascore
scons
then:
......
CC release\download\stm32f107vc\Middlewares\ST\STM32_USB_Device_Library\Core\Src\usbd_ioreq.c
CC release\download\stm32f107vc\Src\main.c
CC release\download\stm32f107vc\Src\stm32f1xx_hal_msp.c
CC release\download\stm32f107vc\Src\stm32f1xx_it.c
CC release\download\stm32f107vc\Src\usbd_cdc_if.c
CC release\download\stm32f107vc\Src\usbd_conf.c
CC release\download\stm32f107vc\Src\usbd_desc.c
CC release\download\stm32f107vc\Src\usb_device.c
CC release\ascore\app\app.c
CC release\ascore\app\diag_app.c
CC release\ascore\app\main.c
LINK build\nt\stm32f107vc\ascore\stm32f107vc.exe
D:\GitHub\as/release/download/gcc-arm-none-eabi-5_4-2016q3-20160926-win32/bin/arm-none-eabi-ld: build\nt\stm32f107vc\ascore\stm32f107vc.exe section .text' will not fit in region FLASH'
D:\GitHub\as/release/download/gcc-arm-none-eabi-5_4-2016q3-20160926-win32/bin/arm-none-eabi-ld: region `FLASH' overflowed by 32300 bytes
scons: *** [build\nt\stm32f107vc\ascore\stm32f107vc.exe] Error 1
scons: building terminated because of errors.

anybody can help me,please?

Install on Linux

Hi,

thank you for your work! Is there any clear tutorial on how to build everything on Linux available?

I was starting building ascore with make and I get this error: No module named 'BSWCOM'. What else do I have to build to get started?

About Scheduling and Alarm

Hello,

I am trying to understand your Alarm services and scheduling of task. I have discovered that you schedule your bsw services in 10 ms(generally) but i couldnt find that where do you schedule your tasks. Please help me about that your schedulings. Up to now, i looked up your SchM.c file and SchM_cfg.h .

scons --menuconfig fail

Windows10 OS
followed procedure @ http://autoas.github.io/as/autosar/2018/02/20/as-study-platform.html

This is the error i get:

scons: Reading SConscript files ...
D:\Devel\as/com/as.tool/config.infrastructure.system/third_party/autosar/base.py:157: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if len(tmp[2])>0 is not None:
D:\Devel\as/com/as.tool/config.infrastructure.system/third_party/autosar/writer/behavior_writer.py:767: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
raise ValueError('Invalid portRef "%s" in runnable "%s"'(self.portRef,runnable.ref))
D:\Devel\as/com/as.tool/config.infrastructure.system/third_party/autosar/writer/behavior_writer.py:770: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
raise ValueError('Invalid portInterfaceRef "%s" in port "%s"'(port.portInterfaceRef,port.ref))
sh: line 1: cd: D:Develas/com/as.tool/kconfig-frontends: No such file or directory
Exception: FAIL of RunCommand "cd D:\Devel\as/com/as.tool/kconfig-frontends && curl -O http://distortos.org/files/kconfig-frontends-3.12.0-windows.7z && "C:/Program Files/7-Zip/7z.exe" e kconfig-frontends-3.12.0-windows.7z" = 256:
File "/d/Devel/as/SConstruct", line 8:
asenv = PrepareEnv()
File "/d/Devel/as/com/as.tool/config.infrastructure.system/building.py", line 193:
PrepareBuilding(asenv)
File "/d/Devel/as/com/as.tool/config.infrastructure.system/building.py", line 270:
menuconfig(env)
File "/d/Devel/as/com/as.tool/config.infrastructure.system/building.py", line 375:
RunCommand(cmd2)
File "/d/Devel/as/com/as.tool/config.infrastructure.system/building.py", line 652:
raise Exception('FAIL of RunCommand "%s" = %s'%(cmd, ret))

AS build or run error

I am ne to AUTOSAR. I downloaded the as on my Windows 10. How do I run it or build it? How do I use it?
Thank you.

reupload resource asenv.zip

Hi,

Thank for yours work.
Could you please upload : pan.baidu.com asenv.zip
somewhere such as google drive.

I can not download it.

And how to build under Ubuntu.

Thanks.

stm32f107 can

hello, im new to osek, and could you describe the CAN implement idea or map?
i have a question: can i use the as as an ECU, AND then read uds CAN data?

compiling error in scons

hello, when compiling in scons, it reported error as below:
fnmatch.c:1:1: error: expected identifier or '(' before numeric constant
1 | 404: Not Found
| ^~~
make: *** [Makefile:329: fnmatch.o] Error 1
Exception: FAIL of RunCommand "cd E:\030_Programs\Repos\as_master\as/release/download/dtc & sed -i "s/p_fnmatch(/fnmatch(/g" fnmatch.c & sed -i "s/FNM_NOSYS/2/g" fnmatch.c & sed -i "s/FNM_NORES/3/g" fnmatch.c & sed -i "s/git__tolower/tolower/g" fnmatch.c & sed -i "s/lstat/stat/g" fstree.c & make" = 2:

so I checked the file in "as\release\download\dtc", the content as below:
fnmatch.h: Moved Permanently.
fnmatch.c: 404: Not Found

please help me to fixing this problem, and looking forward to your reply, thanks !

qemu 闪退

我的qemu编译安装完之后,运行 scons run , cmd 黑框闪了一下就没有了,qemu 没有启动。
telnet 连不上, 大神有什么好的建议吗?

我下载了一个windows版本qemu,可以运行并打印消息,然后停在下图的界面不动了
不知道停在了什么地方?
qemu 没有显示。

Uploading image.png…

alireza susanichezeh

bitcoin:bc1qj4fslaejkk9nwem9y5t76nj4y9uhcs3nzmw5e8?label=alireza%20susanichezeh

qemu-system-arm.exe aborts with "-device pci-asblk" (qemu-system-arm.exe is from asenv)

Hi~ parai,when I type scons run --verbose ,I get the result:

C:\Users\Administrator\asenv\as\release\ascore>scons run --verbose
scons: Reading SConscript files ...
Welcome to the world of asenv for C:\Users\Administrator\asenv\\as!

scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Users\Administrator\asenv\as\com\as.tool\config.infrastructure.system\building.py", line 167, in PrepareEnv
DiskImg "C:\Users\Administrator\asenv\\as/release/ascore/asblk0.img" already exist!
DiskImg "C:\Users\Administrator\asenv\\as/release/ascore/asblk1.img" already exist!
 >> RunCommand "start C:\Users\Administrator\asenv\\as/com/as.tool/lua/script/socketwin_can_driver.exe 0"
 >> RunCommand "start C:\Users\Administrator\asenv\\as/com/as.tool/lua/script/socketwin_can_driver.exe 1"
 >> RunCommand "cd C:\Users\Administrator\asenv\\as/release/ascore && start cmd /C C:\Users\Administrator\asenv\msys2\mingw64\bin\/qemu-system-arm.exe -m 128 -M versatilepb -kernel C:\Users\Administrator\asenv\\as/release/ascore/versatilepb.exe -serial tcp:127.0.0.1:1103,server -device pci-ascan -device pci-asnet -device pci-asblk -L C:\Users\Administrator\asenv\msys2\mingw64\etc\qemu"
 >> RunCommand "sleep 2 && telnet 127.0.0.1 1103"
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
 >> versaConnection closed by foreign host.

And in the mean time qemu quits abnormally. I try to remove -device pci-asblk,and qemu seems working well,but I can't get into the guest os.

Should I recompile qemu with latest asblk.c?

Thanks!

Automotive systems code

Hi. Do you plan to release/build some automotive syste,s? It's difficult to find open-source implementations. Most of the open-source project are for autonomy/perception, but I'm more into bus systems/CAN bus, etc.

about msys2

My msys2 is MSYS_NT-6.1, Can it work? And where can i download the MSYS_NT-10.0?

scons run doesnt start the exe due to wpcap dependency on Windows10

I have finished building the source and generated the image for x86 machine.

When i try to run the exe it shows the following error

image

So i got the wpcap.dll and pasted in the relevant folder structure. Then my exe doesnt start and i get the following error

image

and my QEMU shows this

image

Please help me out ! Thank you in advance.

rte

upload RTE code to create runnables and ports

update newer source asone compile error

make[1]: Leaving directory '/c/Users/liufe/Documents/GitHub/as/release/aslua'
make[1]: Entering directory '/c/Users/liufe/Documents/GitHub/as/release/aslua/out'
g++ -c -O2 -Wall -D_hypot=hypot -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -IC:/Anaconda3/include -o sipAScmodule.o sipAScmodule.cpp
In file included from C:/Anaconda3/include/Python.h:50:0,
from C:/Anaconda3/include/sip.h:32,
from sipAPIAS.h:11,
from sipAScmodule.cpp:7:
C:/Anaconda3/include/pyport.h:686:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

"sys/queue.h No such file or directory" while generating socketwin_can_driver.exe

Whenever I ran the command "scons run", It always shows below error message.

RunCommand "gcc -D__SOCKET_WIN_CAN_DRIVER__ C:\Users\Hommer\as/com/as.tool/lua/can/socketwin_can_driver.c -lwsock32 -o C:\Users\Hommer\as/com/as.tool/lua/script/socketwin_can_driver.exe"
C:\Users\Hommer\as/com/as.tool/lua/can/socketwin_can_driver.c:18:10: fatal error: sys/queue.h: No such file or directory
#include <sys/queue.h>
^~~~~~~~~~~~~
compilation terminated.

Which queue.h file supposed to be used here?
Did I miss any packages that should be installed first?

无法用英文表达,其实不是一个bug,而是工具链的问题,自己无能为力

本小白的系统环境:win7_32bit + msys32
前提:自己的学习方法是先把工具链跑起来,然后再去看具体的代码(所以对工程的了解程度有限制)

2
这个构建错误是因为scons检测到是win系统,所以在命令行编译命令的参数是"/"加编译参数,例如定义宏定义,就是/DDEFINE,但是arm-none-eabi-gcc的是-DDEFINE。我自己也尝试的写了一个scons的脚本,编译一个简单的单文件程序,代码如下:
4
分别在win7的cmd(右边)和msys2的bash(左边)下执行scons脚本,结果如下:
5
说明scons在sys.platform = msys时,可以给arm-none-eabi-gcc能识别的编译参数格式,但是在sys.platform = msys时,building.py会抛出异常。
总结下:主要的问题就是scons在根据平台生成编译命令是,参数的生成格式不正确,结果如第一张图片。
自己的想法:既然大大(parai)能在win10下编译成功,说明这一步是肯定遇到的,所以前来提问。

QEMU installing

Hi Parai,

I got this issue when installling QEMU for the first time (scons run after successfully building by scons).

Seem like a path problem.

# MINGW_INSTALLS=mingw64 makepkg-mingw -sLf
==> Making package: mingw-w64-qemu 2.10.0-1 (Wed, May  1, 2019 12:18:21 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found qemu-2.10.0.tar.xz
==> Validating source files with sha256sums...
    qemu-2.10.0.tar.xz ... Passed
==> Extracting sources...
==> Starting prepare()...
make[1]: Entering directory '/d/Autosar_Project/as-master/com/as.tool/lua/device/websock'
Makefile:34: need modify the /c/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h line 2100/8474, add "FORCEINLINE" to each of the inline function
make[1]: Leaving directory '/d/Autosar_Project/as-master/com/as.tool/lua/device/websock'
scons: Reading SConscript files ...

scons: warning: Ignoring missing SConscript 'build/posix/SConscript'
File "/d/Autosar_Project/as-master/release/ascore/SConstruct", line 13, in <module>
TypeError: argument of type 'NoneType' is not iterable:
  File "/d/Autosar_Project/as-master/release/ascore/SConstruct", line 14:
    objs += SConscript('app/SConscript',variant_dir=bdir+'/app', duplicate=0)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 614:
    return method(*args, **kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 256:
    call_stack[-1].globals)
  File "/d/Autosar_Project/as-master/release/ascore/app/SConscript", line 15:
    if('CPLUSPLUS' in MODULES):
make: *** [Makefile:232: dep-canlib] Error 2
==> ERROR: A failure occurred in prepare().
    Aborting..

Error # MINGW_INSTALLS=mingw64 makepkg-mingw -sLf

my error look similar to #20 .
Sollution doesn´t work.

mir@DESKTOP-0PGFFFJ MINGW64 /c/Users/mir/Desktop/BA/as/com/as.tool/qemu

MINGW_INSTALLS=mingw64 makepkg-mingw -sLf

==> Erstelle Paket: mingw-w64-qemu 2.10.0-1 (Di, 28. Jul 2020 21:01:59)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
-> qemu-2.10.0.tar.xz gefunden
==> Überprüfe source Dateien mit sha256sums...
qemu-2.10.0.tar.xz ... Durchgelaufen
==> Entpacke Quellen...
==> Beginne prepare()...
make[1]: Verzeichnis „/c/Users/mir/Desktop/BA/as/com/as.tool/lua/device/websock“ wird betreten
Makefile:34: need modify the /c/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h line 2100/8474, add "FORCEINLINE" to each of the inline function
make[1]: Verzeichnis „/c/Users/mir/Desktop/BA/as/com/as.tool/lua/device/websock“ wird verlassen
scons: Reading SConscript files ...
INFO set GUI=xx, xx is one of GTK/SDL/OPENVG, defaut GTK
Downloading from http://www.zlg.cn/data/upload/software/Can/CAN_lib.rar to /c/Users/mir/Desktop/BA/as/com/as.tool/qemu/src/../../../../release/download/CAN_lib.rar
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 239 100 239 0 0 372 0 --:--:-- --:--:-- --:--:-- 372
IndexError: list index out of range:
File "/c/Users/mir/Desktop/BA/as/release/ascore/SConstruct", line 13:
objs = SConscript('%s/com/SConscript'%(ASROOT),variant_dir=bdir, duplicate=0)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 660:
return method(*args, **kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/c/Users/mir/Desktop/BA/as/com/SConscript", line 6:
objs += SConscript('as.infrastructure/SConscript')
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 660:
return method(*args, **kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/c/Users/mir/Desktop/BA/as/com/as.infrastructure/SConscript", line 15:
objs = objs + SConscript(os.path.join(d, 'SConscript'))
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 660:
return method(*args, **kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/c/Users/mir/Desktop/BA/as/com/as.infrastructure/arch/SConscript", line 10:
objs += SConscript('%s/SConscript'%(ARCH))
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 660:
return method(*args, **kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/c/Users/mir/Desktop/BA/as/com/as.infrastructure/arch/posix/SConscript", line 84:
objs += SConscript('%s/com/as.tool/lua/SConscript'%(asenv['ASROOT']))
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 660:
return method(*args, **kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/c/Users/mir/Desktop/BA/as/com/as.tool/lua/SConscript", line 11:
objs += SConscript('can/SConscript')
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 660:
return method(*args, **kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 597:
return _SConscript(self.fs, *files, *subst_kw)
File "/usr/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/c/Users/mir/Desktop/BA/as/com/as.tool/lua/can/SConscript", line 18:
zlgcan = str(Glob('%s/CAN
'%(zlgcan_o))[0])
make: *** [Makefile:232: dep-canlib] Fehler 2
==> FEHLER: Ein Fehler geschah in prepare().
Breche ab...

hope someone can help me.

Compile error in ascan.c

ascan.c:415: undefined reference to `luai_canlib_close'
doesn't it need to include "lascanlib.h"?
image

No module named 'pyas'

hi,I cloned the code and I want to run the tools, but I got a error when I run ~/as/com/as.tool/as.one.py$ python3 main.py

I got :

File "as/com/as.tool/as.one.py/asserial.py", line 25, in
from pyas.can import *
ModuleNotFoundError: No module named 'pyas'

I think I must build the lua dir, but I did not got how to build that.

BTW: I just start learning AUTOSAR, I have many stupid question, do you have a email or wechat or 微信公众号,so I can ask you.

I found there are so less information on internet, or some book to learning.

An error occurs while compiling out the qemu through msys2

it was noted that , for the first time while running 'scons run ' command in console , it will pop up a msys2 windows which its path is “/as/com/as.tool/qemu”, in which the below 2 command should be executed to compile the qemu out and then install it.
MINGW_INSTALLS=mingw64 makepkg-mingw -sLf
pacman -U mingw-w64-x86_64-qemu-2.10.0-1-any.pkg.tar.xz
While running the above commands . its throwing an error like 'add forceline' in a file called wintt.h in winsys2 .
How to fix this error ? Hope to hear from you soon.

when i input the command 'scons studio ', encounter errors

Hi, parai
after i run the console.bat and input the command 'scons studio', i encounter such errors as:
build on b'MSYS_NT-6.1', default assume 64 bit machine
'c:/msys64/mingw64/bin/pkg-config' is not recognized as an internal or external command,
operable program or batch file.
Exception: no pkg-config installed, fix the path maybe!:
so do you have any idea about such error?

"scons run" fails on Ubuntu with "asdev_open device <lin/socket/0> failed"

I am running Ubuntu14.04 on virtual box (Hosted on Windows).
Have set following environment variables:
export BOARD=posix
export RELEASE=ascore

Able to build but while trying to run, it gives below error:

:~/cm_workspace/as/as$ scons run
scons: Reading SConscript files ...
!!!LWIP run on pthreads!!!
start application BUILD @ Apr 23 2021 22:08:49
cpu is little endian
XCP MTA memory address 0x977700
mount asblk1 on / okay
mount asblk0 on /dos okay
Connection refused
WARNING :connect function failed with error: 111
asdev_open device <lin/socket/0> failed!
STDERR :assert error on condition(0) at line 555 of asdev_open com/as.tool/lua/device/lasdevlib.c

Tried to understand the flow and it seems,
Lin_InitChannel -> asdev_open fails with "lin/socket/0".

Will you please give any pointers what could be wrong / how can I resolve?
Thank you in advance.

学习与交流

hi
很高兴能看到你的开源,我本身是做汽车仪表这块,创建这个issues的目的是想跟你成为朋友。
我的wx: hominlinx

能否加我, 然后详细聊聊?

Encountered: CAN socket write: Invalid argument

Hi, I built ascore on ubuntu16.04 64bit. and set BOARD=versatilepb. But When I finished building and try to run scons run, I got the following result

qemu-system-arm: -serial tcp:127.0.0.1:1103,server: info: QEMU waiting for connection on: disconnected:tcp:127.0.0.1:1103,server
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
audio: Could not init `oss' audio driver
start socket busid(0) port(0) okay
tapif_init: system("ifconfig tap0 inet 172.18.0.1 netmask 255.255.255.0");
 >> versatilepb startup done,start @00060000
!!!LWIP run on OSEK OS!!!
 start application BUILD @ May 14 2019 10:13:54
 cpu is little endian
 XCP MTA memory address 00944a30
PCI     :PCI core found (slot 11)
mount asblk1 on / okay
mount asblk0 on /dos okay
LWIP    :TaskLwip is running
ETH     :hwaddr is FE:21:B0:88:B0:A0,  mtu=1500
loading NVM... 0 s elapsed, will timeout when 10 s elapsed!
OSEK NM node ID is 1
STDOUT  :can set on-line!
AS Shell version 0.1
[AS] $ STDOUT  :TaskIdle is running
CAN socket write: Invalid argument
WARNING :CAN Socket port=0 send message failed!
ERROR :: can_write bus(0) failed!

Can you give me some suggests? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.