vectorgrp / XCPlite

Simple implementation of the ASAM XCP on Ethernet protocol
MIT License
171 stars 93 forks source link

Error when using DAQ on CPP project #18

Closed Wechs24 closed 2 years ago

Wechs24 commented 2 years ago

Firstly, Thank about this poject. I tried both two projects: C_Demo and CPP_Demo with mesurement and calibartion at DAQ mode and polling mode

C_Demo is fine with both DAQ and polling mode. But, CPP_Demo happens "Segment fault" when using DAQ mode.

I tried them on beaglebone black board.

I hope that Could your team check this problem ?

Originally posted by @Wechs24 in https://github.com/vectorgrp/XCPlite/discussions/17

RainerZ commented 2 years ago

Probably a problem with variable addresses. Check that you are using the A2L file generated by your application or enable linker map update. Reduce your measurement configuration to a single signal which causes the problem. Please check that the address look plausible (right click on signal -> signal properties). A2L/XCP addresses of member variables should have address extension 1 to turn on relative addressing. The address should be the event number (instance id) in high word and the offset to 'this' in the low word. Something like: signal: sigGen1.value -> address: 1:00010050. 0x50 is the offset I get for '.value' when using VS compiler on Windows.