ARMmbed / ARMmbed/DAPLink

Not able to Drag-and-Drop with BIN Files

Open
#967 5 comments 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.

With the hardware and software and I can debug the target in IDE (MCUXpresso) and the drag-and-drop functionality works with HEX files.

When I try and program using BIN files I receive "FAIL.TXT : Transfer timeout".

My first thought is that it doesn't recognise the BIN files.

I'm not sure what I need to change in the code to resolve the issue.

Thought / Issues
1. When I generate c_blob.c for flash_blob.c from "MIMXRT1011_QuadSPI_4KB_SEC.FLM" it generates the data below for "Verify":
![image](https://user-images.githubusercontent.com/108300433/176023930-0af25fe0-eed3-4afa-859c-cb756ba9cac0.png)

When compiling, "0x120000003, // Verify" isn't a valid value. Should this be deleted or set to "0x00000000, // Verify"?

2. When I generate c_blob.c for flash_blob.c from "MIMXRT1011_QuadSPI_4KB_SEC.FLM" it generates the data below for "sectors_info":
![image](https://user-images.githubusercontent.com/108300433/176024446-e2ad7921-6547-4382-b38e-ba867ba75a60.png)

When compiling there are errors as "sector_info_t sectors_info" is expected. Should it be changed to as below:
![image](https://user-images.githubusercontent.com/108300433/176024569-a29c6670-4de1-416b-9372-fbd27c31c556.png)

3. When populating "Target.c" I can find the information supplied with MIMXRT1011_QuadSPI_4KB_SEC.FLM as below:
![image](https://user-images.githubusercontent.com/108300433/176025033-1bf3dad1-c4fb-47f0-9012-e220feaab01a.png)

Have I populated "Target.c" correctly or is this issue here:
![image](https://user-images.githubusercontent.com/108300433/176025187-c2dca1a5-d541-4628-acc1-ceac88d1212f.png)

(I ask as there's 3x RAM-Start addresses.)

Thanks for any help, I really appreciate it.
[Data.zip](https://github.com/ARMmbed/DAPLink/files/8995210/Data.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached Data.zip and compare the generated c_blob.c, flash_blob.c, and Target.c against the MIMXRT1011_QuadSPI_4KB_SEC.FLM details shown in the report. Reproduce the BIN drag-and-drop transfer timeout while confirming that HEX programming still works, then identify whether the generated Verify, sectors_info, or RAM-start values cause the failure. Done means BIN programming completes without producing “Transfer timeout” in FAIL.TXT.

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.