Comments (2)
Hi,
seems to be 64 bit target. The Linux version was tested on a RaspberryPi as ARM32 target variant so far.
I created a new branch Linux64 which I could compile (via vscode and g++) on Ubuntu 20.04 in 64 bit mode.
Added a quick and dirty handling for 64 bit to 32 bit A2L address conversion, which works ok with the unmodified generated A2L.
Will probably not work with ELF linker map updater yet. 64 Bit mode ELF has not been verified.
Maybe you want to give this a try.
Regards
from xcplite.
Thanks a lot. The tool can now also be compiled under 64bit Linux systems, see [1]. Also the demonstration is running after executing xcpLite, see [2].
We can now close the issue.
[1]:
$ cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/brenkem/git/XCPlite/build
$ make
Scanning dependencies of target xcpLite
[ 9%] Building CXX object CMakeFiles/xcpLite.dir/main.cpp.o
[ 18%] Building CXX object CMakeFiles/xcpLite.dir/ecupp.cpp.o
[ 27%] Building C object CMakeFiles/xcpLite.dir/ecu.c.o
[ 36%] Building C object CMakeFiles/xcpLite.dir/udpserver.c.o
[ 45%] Building C object CMakeFiles/xcpLite.dir/udp.c.o
[ 54%] Building C object CMakeFiles/xcpLite.dir/xcpAppl.c.o
[ 63%] Building C object CMakeFiles/xcpLite.dir/xcpLite.c.o
[ 72%] Building C object CMakeFiles/xcpLite.dir/A2L.c.o
[ 81%] Building C object CMakeFiles/xcpLite.dir/xcpSlave.c.o
[ 90%] Building C object CMakeFiles/xcpLite.dir/clock.c.o
[100%] Linking CXX executable xcpLite
[100%] Built target xcpLite
[2]:
$ ./xcpLite
XCPlite Demo - ECU Simulator with XCP on Ethernet (UDP)
Vector Informatik GmbH 2021
Build Jun 23 2021 12:01:21
Options:
XCPSIM_ENABLE_A2L_GEN,CLOCK_USE_UTC_TIME_NS
Init clock
System realtime clock resolution = 0s,1ns
+0us: 23.6.2021 12:01:29 +203236657
+100us: 23.6.2021 12:01:29 +203399308
Init XCP protocol layer
(Version=1.4, MAXEV=256, MAXCTO=250, MAXDTO=1396, DAQMEM=500000, MAXDAQ=65535, MAXENTRY=65535, MAXENTRYSIZE=255)
(ENABLE_CHECKSUM,DAQ_CLOCK_64BIT,XCP_ENABLE_A2L_NAME,XCP_ENABLE_A2L_UPLOAD,XCP_ENABLE_DAQ_EVENT_LIST,)
Listening on port 5555
Bind sin_family=2, addr=0.0.0.0, port=5555
Event 0: Cyclic unit=4 cycle=200 samplecount=0
Event 1: Task1 unit=4 cycle=200 samplecount=0
Event 2: Task2 unit=4 cycle=200 samplecount=0
Event 3: TaskAct unit=3 cycle=0 samplecount=0
Create A2L XCPlite.A2L
BaseAddr = 55F000000000
(45 meas, 26 pars, 1 typedefs, 6 components, 3 instances, 13 conversions)
Start C++ demo task (cycle = 2000us, ext event = 3, size = 88 )
Start XCP DAQ thread
Start C demo task (cycle = 2000us, event = 0)
Start XCP server thread
from xcplite.
Related Issues (20)
- Incorrect IP address in the A2L file(XCPLite V5) HOT 12
- XCPsim: Invalid counter in XCP transport layer header HOT 9
- Segmentation Fault using local variables.. HOT 1
- Memory leak pthread_create HOT 1
- New release version
- Multiple instances for c++ application
- CPP_Demo memory dump
- New Release Version
- No function to create physical calibration parameter
- Help HOT 3
- New Release Version
- The functionality corresponding to XCP_ENABLE_SO has not been implemented HOT 1
- Can XCPlite and CANape be run on the same machine? HOT 2
- Why does XcpSetDaqListMode overwrites flags to be mode? HOT 1
- Possibility using virtual address HOT 3
- Timeout: No response of the request msg received HOT 7
- Heap-use-after-free in socketGetLocalAddr
- XcpCreateEvent cycleTimeNs parameter mismatch in C_Demo HOT 1
- git markings in the source files HOT 1
- Failed to compile on Windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcplite.