Giter Site home page Giter Site logo

Comments (4)

Yatekii avatar Yatekii commented on July 24, 2024

Does the MIMXRT1170-EVKB have the reset line properly connected?

from probe-rs.

scalarion avatar scalarion commented on July 24, 2024

The reset circuit on the MIMXRT1170-EVKB looks like this:

image

Among others, TRG_RST can trigger an POR_PIN_RST_B:

image

However, TRG_RST seems not to be connected to the on-board debug probe which requires JP5 to be OPEN:

image

Connecting an external J-Link or MCU-Link debug probe to J87 and closing JP5 does not work and brings the error Arm(Dap(NoAcknowledge)):

image

However, using J-Link with JLinkGDBServer either via on board probe or external probe and the VSCode Cortex-Debug extension seems to reset the the device correctly and allows step debugging from within VSCode connected to the source:

image

Does probe-rs need the "hard-reset" line POR_PIN_RST_B?

from probe-rs.

Yatekii avatar Yatekii commented on July 24, 2024

Hmm actually, we use a soft reset for the tools you are working with. I had a hunch it might be HW reset.

So it's possible the reset sequence for this target is broken :/

from probe-rs.

apparentlymart avatar apparentlymart commented on July 24, 2024

I don't have experience with this particular target, but while I was working on the support for another model in the same series -- starting over in #1642 -- I found that it required some special handling of reset due to some details of how the boot ROM works.

Specifically, the boot ROM runs in a state where halting debug is disabled and so the typical reset catch doesn't work properly. Instead, there's a documented workaround of placing a watchpoint on a particular address which the boot ROM then accesses just before it passes control to the user application. However, my symptom of having this wrong initially was just being unable to halt-before-boot, which you aren't trying to do here, so this particular thing probably isn't your immediate concern.

The other interesting quirk of the i.MX RT5xx series is that they require a carefully-formatted "header" data structure in the boot ROM, which includes some data interleaved into some architectually-reserved fields in the initial vector table and so it's incompatible with the way the cortex-m-rt crate works. However, I see that you are already using imx_rt::entry instead of cortex_m_rt::entry, so hopefully you've already dealt with this part. I'm mentioning it just because my initial attempts failed with similar symptoms as reported here, and the fix was to correct the header to indicate that my code should run in non-secure mode.

The reference manual for this chip is structured completely differently to the one I was referring to and so I wasn't able to confirm whether similar concerns apply here, but hopefully this comment gives some clues for things that might be worth investigating!

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.