Giter VIP home page Giter VIP logo

Comments (13)

christoph2 avatar christoph2 commented on September 22, 2024

Without context information, I would guess a side-effect of an UNLOCK operation?
Could you post the pyXCP code sequence your are using and most important, the CANape trace, esp. during setup?

from pyxcp.

mladjaa avatar mladjaa commented on September 22, 2024

Here is pictures of Python code and CANape trace window. Please give me your point if view.

20231128_135008.jpg

20231206_142529.jpg

from pyxcp.

danielhrisca avatar danielhrisca commented on September 22, 2024

You should also capture the CANape connection part

from pyxcp.

mladjaa avatar mladjaa commented on September 22, 2024

Here is XCP trace (received messages from slave marked yellow), Python Code, and address in A2L file where I want to write a value.

XCP trace.xlsx

Python Code.txt

Address in A2L.png

from pyxcp.

danielhrisca avatar danielhrisca commented on September 22, 2024

The excel trace does not contain the TX messages were the XCP commands are sent. Please provide a complete trace recorded when CANape is doing the connect and download

from pyxcp.

christoph2 avatar christoph2 commented on September 22, 2024

Honestly, I don't know why you are completly bypassing pyXCP...
Are you sure this is a CANape trace?
One would expect CANape issuing GET_STATUS, GET_COMM_MODE_INFO, GET_ID commands after CONNECT.

from pyxcp.

mladjaa avatar mladjaa commented on September 22, 2024

Sorry for misunderstanding, trace file which I sent is trace according to Python Code. Now, I am sending trace files from CANape. Commands are in Trace2 file and marked yellow.

XCP-CANape Trace-2.xlsx

XCP-CANape Trace-1.xlsx

from pyxcp.

danielhrisca avatar danielhrisca commented on September 22, 2024

image
Trace 1 starts after CANape has established the XCP connection

from pyxcp.

mladjaa avatar mladjaa commented on September 22, 2024

Yes, but this trace is from beginning, I don't know why skiped CONNECT command.

from pyxcp.

danielhrisca avatar danielhrisca commented on September 22, 2024

it is possible that CANape is connecting with mode != 0
image

from pyxcp.

mladjaa avatar mladjaa commented on September 22, 2024

Let's focus please on Python code and DOWNLOAD command problem with error "FE 23"-memory location is protected to write. I found in XCP documentation that parameter which you want to change, first of all, needs to be moved from Flash to RAM, but I am not sure how to do this.
Have you any idea?

from pyxcp.

christoph2 avatar christoph2 commented on September 22, 2024

The movement is usually done with SET_CAL_PAGE. In the first step you should consult your A2L (if available),
MOD_PAR/MEMORY_SEGMENTs, maybe your address is pageable to RAM.
Optional commands GET_PAG_PROCESSOR_INFO, GET_SEGMENT_INFO, and GET_PAGE_INFO may also helpful.

from pyxcp.

mladjaa avatar mladjaa commented on September 22, 2024

I resolved problem with command "SET_CAL_PAGE".
Thank you for your support!

from pyxcp.

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.