MC56F84789 cannot run without OSJTAG

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

MC56F84789 cannot run without OSJTAG

418 Views
ningchaoyang
Contributor I

when i use MC56F84789,  i program code of DAC output, and waveform is sine. if i debug the program through OSJTAG, the program runs well. but when I power down the chip and then power up, the DAC of DSC cannot output right wave.

I try other form of wave,  like sawtooth wave, code runs well with OSJTAG or without it. i dont know why the code of sine-wave-output cannot run without OSJTAG.

0 Kudos
1 Reply

324 Views
TICS_Fiona
NXP Employee
NXP Employee

Hello Ningchao

If the application starts up correctly in debug mode, but not in stand-alone mode, the possible reason may be:

1) Watchdog reset. Is the watchdog being serviced? Please first disable the watchdog in your application and test whether it makes any difference.

2) Incorrect interrupt vector. In debug mode, the program starts from Entry Point which is set in the Target setting. While in stand-alone mode, it starts from vector table.

Please check whether the vector table is placed at the correct address in program flash. And the reset vector is correctly calling the start up routine.

3) Lost data in RAM. Please check the linker command file and MAP file, whether there’s code  or initialized  data are placed in RAM, please place them in flash.

4) Initialized global variable, whether they are initialized correctly. This is another difference between running in debug mode and stand-alone mode.   When program before debugging, CodeWarrior will erase the memory before writing, but in stand-alone mode.

In addition, this is not the appropriate place to ask this question,  for the question on DSC hardware or its development tools, you may post it in CodeWarrior forum or DSC forum:

CodeWarrior Development Tools

Digital Signal Controllers

Best Regards

Fiona Kuang

TIC - Technical Information Center

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

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

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

0 Kudos