ARMmbed / ARMmbed/DAPLink

Software Reset not working with iMXRT device

Open
#969 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
2.8k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
1

Description

Hello,

I'm using the LPC55S69 (MCU-Link Hardware) as HIC which I've attempted to port to the MIMXRT1010-EVB as Target.

To date I haven't been able to get the device to reset by itself after flashing when using the MSD functionality.

Reading through the documentation I believe there's three options:
- kHardwareReset
- kSoftwareReset
- SYSRESETREQ
- VECTRESET

I've believe kSoftwarereset is the correct option. I define it in target_reset_mimxrt.c
![image](https://user-images.githubusercontent.com/108300433/177034394-a1047524-5947-438a-aba8-eaf906287d9b.png)
And in the yaml:
![image](https://user-images.githubusercontent.com/108300433/177034536-7d16a8f3-eb52-481a-be1d-18038a899068.png)

Using the two Softwarereset options, I always have to manually reset the device.

For the sake of it I tried Hardwarereset, but then I can't even copy files to the MSD, the copying doesn't start.

Is my assumption correct, that I should use one of the Softwareresets?

What is the difference between VECTRESET and SYSRESETREQ?

Any ideas where the issue may lie or where I should have a look?

Thanks for any help, it's really appreciated.

Regards,
Sam

Contributor guide

Open the contributing guide

Research direction

Start by reviewing target_reset_mimxrt.c and the MIMXRT1010-EVB target YAML, focusing on the kSoftwareReset, SYSRESETREQ, VECTRESET, and kHardwareReset selections described in the issue. Reproduce the MSD flashing flow on the MIMXRT1010-EVB and determine why software reset does not occur while hardware reset prevents copying; done means flashing through MSD reliably resets and starts the target.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.