Giter Site home page Giter Site logo

Comments (11)

skibon02 avatar skibon02 commented on September 26, 2024

I've just got it working witn --disable-double-buffering option.
[UPD] flashing process done but fails to run, core halted

from probe-rs.

bugadani avatar bugadani commented on September 26, 2024

Maybe we have incorrect memory regions for this chip, too. Do you have a datasheet for it?

from probe-rs.

skibon02 avatar skibon02 commented on September 26, 2024

yes, datasheet and reference manual are avaliable here
(registration not required)

from probe-rs.

skibon02 avatar skibon02 commented on September 26, 2024

image

from probe-rs.

skibon02 avatar skibon02 commented on September 26, 2024

Here are values for flash_properties struct:
image

from probe-rs.

skibon02 avatar skibon02 commented on September 26, 2024

Looks like AT32F4_Series.yaml wasn't changed between 0.23 and 0.24 versions of probe-rs

from probe-rs.

bugadani avatar bugadani commented on September 26, 2024

THe problem is that these chips have user-configurable memory layouts. This issue must have started happening when we moved the flash algorithm stack to the end of memory. This can probably be fixed if we limit the stack size these devices use for flashing.

from probe-rs.

bugadani avatar bugadani commented on September 26, 2024

I think this issue can be solved by specifying data_load_address for these targets. The reason: we place data at the end of the memory, but we don't know if we can actually use that memory. However, we place the stack before the memory, so if the target forces data_load_address inside the first 128K, everything should be placed in the first 128K which should be safe RAM.

from probe-rs.

bugadani avatar bugadani commented on September 26, 2024

As I don't have one of these devices, please test #2561 for me.

from probe-rs.

skibon02 avatar skibon02 commented on September 26, 2024

Thanks for your help on this issue!
I've tested your fork with AT32F437VMT7 and it does indeed fix the flash programming issue.

from probe-rs.

skibon02 avatar skibon02 commented on September 26, 2024

Is IRAM1 range used for anything other than default data_load_address calculation?

In yaml file the maximum possible RAM range is specified, but not default one, and there is a high probability for mismatch of range.end of IRAM1 and actual end of RAM on MCU. For example, AT32F437 is marketed to have 512kB of RAM, but it is true when you manually reprogram user system data to select this mode. Default mode used in most cases includes only 384KB of RAM making accesses beyond that incorrect.

from probe-rs.

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.