OBDS code reg

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

OBDS code reg

879 Views
sachusanal
Contributor III

Hello sir ,

In OBDS code  i need to edit something the test is started automatically.

after the menu loading menas test should start as soon as the OBDS is flashed, without waiting for a user input.

what i need to edit in OBDS.c file could u please help me

Labels (1)
0 Kudos
4 Replies

700 Views
jian_jiang
NXP Employee
NXP Employee

Hi sachu,

You may need to modify the menu_present() function which is in the file /sdk/utility/src/menu.c.

All the best

Kane

0 Kudos

700 Views
igorpadykov
NXP Employee
NXP Employee

HI sachu

what processor are you speaking about? In general one can look at main.c

and look for function  run_tests(), comment it and add necessary test functions.

Also it may be useful to look at below link

Re: i.MX28 On-Board Diagnostics Suite (OBDS)

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

700 Views
sachusanal
Contributor III

hi Igor ,

I am speaking about the IMX6qsabresd board.

i here by attach my OBDS test.c file .

I need to execute all the test after the flashing is completed.

basically when the flashing is completed the menu will show and wait for the keyboard input.

in my case i need to do auto run feature .

due to that reason i call run_all_test(NULL) function  after the  menu_present(&main_menu);  menu is shown but the run_all_test function is not hiotting.

what modification i need to do, let me know from which portion i can call the run_all_test function in main loop

0 Kudos

700 Views
igorpadykov
NXP Employee
NXP Employee

HI sachu

for i.MX6 these tests are called SDK, not obds. For i.MX6 SDK one can look

at folder sdk_unit_test, refer to attached readme file :

"The value passed to the -test option has "_test" appended to it to form the

name of the function that will be run when the application starts. "

In general one can edit  unit_test_main.c and comment SDK_TEST();

instead add necessary tests.

"MX6_PLATFORM_SDK "

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&nodeId=018rH3ZrDRB24A&fpsp=1&t...

Best regards

igor

0 Kudos