i.MX28 On-Board Diagnostics Suite (OBDS)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX28 On-Board Diagnostics Suite (OBDS)

跳至解决方案
5,369 次查看
pt
Senior Contributor I

Hi Qiang_FSL , raymondwang, igorpadykov YuriMuhin_ng YixingKong fernandolopes lategoodbye GraceH

I am using i.MX28 On-Board Diagnostics Suite (OBDS) to test memory,uart,can,usb etc of my MCIMX28EVK board.

I have followed the commands specified in the pdf available with imx28 OBDS Source.

Since I am using linux , I followed this step

./tools/linux/build_obds.sh

The above command created diag-obds-mx28evk.bin, diag-obds-mx28evk.elf, mx28-obds.sb, ipl files in output/mx28/bin folder.

I have used the steps specified in the pdf  to program .sb file to sd card

./tools/windows/cfimager.exe \-f ./output/mx28/bin/mx28-obds.sb \-d g -a

But the command failed.

run-detectors: unable to find an interpreter for ./tools/windows/cfimager.exe

How to load this boot stream image to sd card?

Does the obds test need rootfs image?

Regards

Pt

标签 (2)
1 解答
3,183 次查看
pt
Senior Contributor I

Thanks lategoodbye

Successfully programmed sb file to sd card.

cfimager.exe -f mx28-obds.sb -d <drive to which card reader connected> -a


for example,

it card reader is connected to drive E then


cfimager.exe -f mx28-obds.sb -d  g  -a


(if you are programming sd for the first time then use -a at the end.)Other wise


cfimager.exe -f mx28-obds.sb -d  g

在原帖中查看解决方案

0 项奖励
回复
27 回复数
502 次查看
pt
Senior Contributor I

Hi PeterChan

Ok.Thank you. I have one doubt about the steps.

After changing the code in IMX28 OBDS , I have used the following command only.

./tools/linux/build_mx28.sh

Did I have to use make command?


Regards

Pt

0 项奖励
回复
502 次查看
PeterChan
NXP Employee
NXP Employee

The "build_mx28.sh" will execute the make command to build OBDS.

Please follow the document "User Guide for i.MX28 On-Board Diagnostics Suite" to setup the build environment.

0 项奖励
回复
502 次查看
pt
Senior Contributor I

Hi PeterChan, igorpadykov

     Ok thank you. our board has only one sd slot. ssp1 pins are used to configure that. In mcimxevk board, the sd card with obds test image is insetred on ssp0.

     But here I want to insert it on ssp1 to test uart, and other modules, for that did I have to change anything else?

Regards

Pt

0 项奖励
回复
505 次查看
pt
Senior Contributor I

Thanks jimmychan.I will try it.

0 项奖励
回复
505 次查看
fernandolopes
Contributor III

What is the HEX number you get on DUART? The attached list may help you translate the error code to english. It is for i.MX23, but the ROM code on i.MX28 is almost the same (or it is the same, I dont't know, maybe some of the freescale folks can confirm tell you).

I have never used the windows cfimager, so I do not know what this error mean. I remember I got the cfimager sources once, but I couldn't find them here. I am sure they are available somewhere. You can dig into the code to know what caused that error message.

505 次查看
pt
Senior Contributor I

Thanks fernandolopes. The hex number from DUART is 0x8020A01D.


#define ERROR_DDI_SD_MBR_NOT_FOUND (ERROR_DDI_GROUP | ERROR_DDI_SD_DRIVER_GROUP | 0x1D)

0x8020A01D ?


Regards

Pt

0 项奖励
回复
505 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Pt

it is Windows utility, not Linux.

Best regards

chip

0 项奖励
回复