自己项目做的rt1061的demo板子 Serial Downloader usb无法识别

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

自己项目做的rt1061的demo板子 Serial Downloader usb无法识别

1,091 Views
Yoho
Contributor I

demo板子 使用官方SDK 无论是usb的一些示例或者flashloader工程 都能正常通信

 

但是直接进入bootrom 或者使用ROMAPI

uint32_t arg = 0xeb110000; 
ROM_RunBootloader(&arg);

都无法建立usb通信 电脑显示这个usb口 描述符获取失败

 

使用官方开发板都可以成功

 

请问往哪个方向寻找问题

 

0 Kudos
Reply
5 Replies

1,053 Views
lucas_cao
NXP Employee
NXP Employee

Please check the following bits value after system boot.. It should be 00 or 01, then system can enter SDP mode. Otherwise, it cannot go to SDP. 

lucas_cao_0-1683701661824.png

 

0 Kudos
Reply

1,027 Views
Yoho
Contributor I
Cache: Separate I- and D-cache.
I-Cache L1: 32 KB, 512 Sets, 32 Bytes/Line, 2-Way
D-Cache L1: 32 KB, 256 Sets, 32 Bytes/Line, 4-Way
Cortex-M7 identified.
J-Link>h
PC = 0021AADC, CycleCnt = D616FD97
R0 = 20200F30, R1 = 00000001, R2 = 00000001, R3 = 2020533C
R4 = 20200F30, R5 = 20200F58, R6 = 202051ED, R7 = EB50A453
R8 = 00000002, R9 = 00000000, R10= 00000000, R11= 400F8000
R12= 00000004
SP(R13)= 20200F28, MSP= 20200F28, PSP= 00000000, R14(LR) = 00218391
XPSR = 81000000: APSR = Nzcvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00

FPS0 = 00000000, FPS1 = 00000000, FPS2 = 00000000, FPS3 = 00000000
FPS4 = 00000000, FPS5 = 00000000, FPS6 = 00000000, FPS7 = 00000000
FPS8 = 00000000, FPS9 = 00000000, FPS10= 00000000, FPS11= 00000000
FPS12= 00000000, FPS13= 00000000, FPS14= 00000000, FPS15= FFFFFFFF
FPS16= 00000000, FPS17= 00000000, FPS18= 00000000, FPS19= 00000000
FPS20= 00000000, FPS21= 00000000, FPS22= 00000000, FPS23= 00000000
FPS24= 00000000, FPS25= 00000000, FPS26= 00000000, FPS27= 00000000
FPS28= 00000000, FPS29= 00000000, FPS30= 00000000, FPS31= FFFFFFFF
FPSCR= 00000000
J-Link>mem32 0x400f801c
Syntax: mem32 <Addr>, <NumItems>
J-Link>mem32 0x400f801c,1
400F801C = 00000009
J-Link>


这个是我上电并且插上USB 等待PC出现USB描述符获取失败后
用JLINK读出的状态
PC显示正运行在BOOTROM中,SRC_SBMR2也是处于正常状态
0 Kudos
Reply

1,016 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @Yoho ,

是不是说电脑USB检测到插入但是枚举失败?从serial download mode上电启动可以吗,多试几次稳定吗?还有就是你写过那些fuse?

 

Regards,

Jing

0 Kudos
Reply

1,074 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Chapter 9.13.3 ROM API runBootloader() description with below typical use cases:

1. Enter Serial downloader mode and select USB as the communication peripheral.
uint32_t arg = 0xeb100000;
runBootloader (&arg);

Could you try with arg value with 0xeb100000? Set serial downloader media to Auto detection.

Wish it hleps.

Mike

 

0 Kudos
Reply

1,026 Views
Yoho
Contributor I
0xeb100000 我试过得不到想要的结果之后 才用的0xeb110000
0 Kudos
Reply