AnsweredAssumed Answered

Chipfactory -- exception upon exit

Question asked by petrveprek on Jun 20, 2018
Latest reply on Jun 27, 2018 by Reva@14

Hi,

 

I have a simple app.  It initializes few things and then just before returning from the main, it prints "*Okay*" string on the console.

 

I build the app using CCES 2.7.0. and run simulation using chipfactory.exe from 2.7.0.  I get this:

 

C:\>chipfactory.exe -proc ADSP-SC589 -sim-type Functional-Sim -exit-value myapp.dxe
*Okay*

Halt label "___lib_prog_term" hit at PC = 0x001800c1

- Simulation result : 0 (ok)
- Simulated application result : 0


(5628 simulated chip cycles) : (end-start wall clock=16) (351.75 KHz) (0.35 MHz)

C:\>echo %errorlevel%
-1073740940

 

So the app prints my string just fine and then, it exits.  Simulator reports that both the app itself and the simulation completed successfully.  However, the simulator returns an error code (errorlevel = C0000374) indicating an exception?

 

I can run the same dxe using chipfactory from CCES 2.6.0 and it completes successfully and returns errorlevel 0, indicating all went fine.

 

Is this a problem with the dxe or with chipfactory?  (In CCES 2.7.0 chipfactory reports its version as 2.6.1.0; in CCES 2.6.0 it reports it as 2.6.0.0).


Thanks for any insight.

 

Petr

Outcomes