Git Product home page Git Product logo

Comments (2)

RainerZ avatar RainerZ commented on August 23, 2024

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.

brenkem avatar brenkem commented on August 23, 2024

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)

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.