Flashing File Error
Risposta
31/07/19 9.10

Dear All,

During the flashing process i get the following error

ERROR | Exception occured: File descriptor is -1 < 0, maybe closed by previous error condition
  at purejavacomm.PureJavaSerialPort.failWithIllegalStateException(PureJavaSerialPort.java:1286)

 at purejavacomm.PureJavaSerialPort.checkState(PureJavaSerialPort.java:1291) 

 at purejavacomm.PureJavaSerialPort.access$0(PureJavaSerialPort.java:1289)

    at purejavacomm.PureJavaSerialPort$1.write(PureJavaSerialPort.java:627)

    at purejavacomm.PureJavaSerialPort$1.write(PureJavaSerialPort.java:653)

    at com.bosch.cds.xdk.io.device.XdkDevice.writeToOutputStream(XdkDevice.java:610)

    at com.bosch.cds.xdk.io.device.XdkDevice.sendCommandToDevice(XdkDevice.java:605) 

   at com.bosch.cds.xdk.io.device.XdkDevice.flashViaSerial(XdkDevice.java:353)

    at com.bosch.cds.xdk.io.device.XdkDevice.upload(XdkDevice.java:311)

    at com.bosch.cds.xdk.ui.handler.FlashApplicationJob.run(FlashApplicationJob.java:32)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

Exception occured: Timeout: Ready Response took longer than 10000 ms
at com.bosch.cds.xdk.io.device.XdkDevice.waitForReadyResponse(XdkDevice.java:391) 

   at com.bosch.cds.xdk.io.device.XdkDevice.flashViaSerial(XdkDevice.java:354)

    at com.bosch.cds.xdk.io.device.XdkDevice.upload(XdkDevice.java:311)

    at com.bosch.cds.xdk.ui.handler.FlashApplicationJob.run(FlashApplicationJob.java:32) 

   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

 

I do understand that is something to do with the usb connection of the device with my workstation, i had overcome it by re plug a number of times the device but i think this is not the proper way to resolve this.

Do you have any suggestions regarding this issue??

0 (0 Voti)
RE: Flashing File Error
Risposta
01/08/19 8.36 come risposta a Andreas Mantelos.

Hi Andreas

As per console I guess you are trying to flash MITA Application

Can you explain what application are you trying to flash and steps you are doing to help you better .

Few things you can try:

1. Try flashing the default MITA application to check if the same issue occurs.

2.  Try closing the workbench or PC and restarting it

3. Check if your COM PORT is connected. It would be green if connected.

Thanks

Priyashi

0 (0 Voti)
RE: Flashing File Error
Risposta
01/08/19 8.55 come risposta a Priyashi Yadav.

Dear Priyashi,

i am not using MITA, i am flashing the program through XDK workbench. The program is based on the examples (usingMQTT to publish data).

I am restarting PC, workbench several times and even changing ports and eventually is working but i think there must be a better solution to this error..

 

0 (0 Voti)
RE: Flashing File Error
Risposta
01/08/19 9.01 come risposta a Andreas Mantelos.

Dear All,

as i am currently facing this issue, after a reboot, 

and succesfully connected the device, after flashing the program i got the following

Application checksum '5653' successfully verified.
 INFO | Transmission successfully completed!
 INFO | Booting application...
 INFO | XDK DEVICE 1: b
 INFO | XDK DEVICE 1:  Jumping to application

 

but it is somehow stuck there (Note: The code is fully opertion and is working)..

Then if i re-Flash the code i get 

INFO | Flashing file 'C:/Users/mante/XDK-Workspace/XdkSensDev/debug/XdkSensDev.bin'...
ERROR | Exception occured: File descriptor is -1 < 0, maybe closed by previous error condition
    at purejavacomm.PureJavaSerialPort.failWithIllegalStateException(PureJavaSerialPort.java:1286)    at purejavacomm.PureJavaSerialPort.checkState(PureJavaSerialPort.java:1291)    at purejavacomm.PureJavaSerialPort.access$0(PureJavaSerialPort.java:1289)    at purejavacomm.PureJavaSerialPort$1.write(PureJavaSerialPort.java:627)    at purejavacomm.PureJavaSerialPort$1.write(PureJavaSerialPort.java:653)    at com.bosch.cds.xdk.io.device.XdkDevice.writeToOutputStream(XdkDevice.java:610)    at com.bosch.cds.xdk.io.device.XdkDevice.sendCommandToDevice(XdkDevice.java:605)    at com.bosch.cds.xdk.io.device.XdkDevice.flashViaSerial(XdkDevice.java:353)    at com.bosch.cds.xdk.io.device.XdkDevice.upload(XdkDevice.java:311)    at com.bosch.cds.xdk.ui.handler.FlashApplicationJob.run(FlashApplicationJob.java:32)    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
 

this is actually what it happens...

Any suggestion is more than welcome!!!!

Regards

0 (0 Voti)
RE: Flashing File Error
Risposta
01/08/19 10.56 come risposta a Andreas Mantelos.

Dear all,

an addition i just discovered is that the initial flashed program is still on the device and is wotking as i can test it. So, all the efforts of reflashing a newer version of the code, or even an empty template, although the XDK workbench was reporting that is actually flashing the code (yellow red flashes), actually as i can state, it was never flashed.

0 (0 Voti)
RE: Flashing File Error
Risposta
01/08/19 13.46 come risposta a Andreas Mantelos.

Dear All,

after further investigation, it seems that the code is flashing alright (change it a bit, and actually verify that a newer version was actually flashed). The strange behaviour is that nothing is getting print to the console, somehow after 

INFO | Transmission successfully completed!
 INFO | Booting application...
 INFO | XDK DEVICE 1: b
 INFO | XDK DEVICE 1:  Jumping to application

i get nothing as output to the console.

Any suggestions?

0 (0 Voti)
RE: Flashing File Error
Risposta
01/08/19 14.32 come risposta a Andreas Mantelos.

The output to the console i was finally resolved by following https://xdk.bosch-connectivity.com/community/-/message_boards/message/341299#_19_message_341299

kudos to Ding Weeder

Regards

0 (0 Voti)