Cubecell - sketch upload errors

Hello,

I have just received a cubecell, devboard and 1080 sensor but I cant get it to upload sketches. It seemed to work the first time I uploaded a sketch (RGB test) but ever since I get the following:

Initialising bootloader.
Unhandled error: Timed out waiting for Bootloader response.

I have tried all the suggested fixes on the forums - change cable (3 different cables), changed USB ports, check and clean pins and re-seat, reset with USR and RST pins etc but still no luck.

I do get the following output when I do the USER/RESET:

Copyright @ 2019 Heltec Automation.All rights reserved.
23:05:23.388 -> Scanning…
23:05:23.388 -> I2C device found at address 0x40 !
23:05:23.421 -> Manufacturer ID=0x5449
23:05:23.421 -> Device ID=0x1050
23:05:23.421 -> Device Serial Number=24F-2B1D-7900
23:05:23.455 -> T=26.97C, RH=49.22%
**23:05:24.615 -> **
23:05:24.615 -> AT Rev 0.7
**23:05:24.615 -> **
23:05:24.615 -> +LORAWAN=1
**23:05:24.615 -> **
23:05:24.615 -> +KeepNet=0
23:05:24.615 -> +OTAA=1
23:05:24.615 -> +Class=A
23:05:24.615 -> +ADR=1
23:05:24.615 -> +IsTxConfirmed=1
23:05:24.615 -> +AppPort=2
23:05:24.615 -> +DutyCycle=15000
23:05:24.615 -> +ConfirmedNbTrials=8
23:05:24.615 -> +DevEui=2232330000888802(For OTAA Mode)
23:05:24.615 -> +AppEui=0000000000000000(For OTAA Mode)
23:05:24.615 -> +AppKey=88888888888888888888888888886601(For OTAA Mode)
23:05:24.615 -> +NwkSKey=15B1D0EFA463DFBE3D11181E1EC7DA85(For ABP Mode)
23:05:24.675 -> +AppSKey=D72C78758CDCCABF55EE4A778D16EF67(For ABP Mode)
23:05:24.675 -> +DevAddr=007E6AE1(For ABP Mode)
**23:05:24.675 -> **
**23:05:24.675 -> **
23:05:24.675 -> LoRaWAN EU868 Class A start!
**23:05:24.675 -> **
23:05:24.780 -> joining…

so this looks good but when I try and type in any commands to the serial interface I get the following:

23:05:24.780 -> joining…ASR is Waked,LowPower Mode Stopped
23:06:15.681 -> +ERROR: error input format
23:06:16.179 -> +ERROR: error input format
23:06:16.543 -> +ERROR: error input format
23:06:16.709 -> +ERROR: error input format
23:06:16.907 -> +ERROR: error input format
23:06:17.073 -> +ERROR: error input format
23:06:17.239 -> +ERROR: error input format

I have tried several serial programs and settings but always same result.

So I am not sure if the board is faulty? How can I prove this? Or if there is someway to factory reset the board and try again?

Anyone have any similar experiences and can advise best way to fix?

Thanks

Richard

p.s. I am using Arduino IDE, have added the correct board manager and can see the board on port ttyUSB0. I can see all the examples and LORA config in Arduino. I am selecting board Arduino Cubecell-Capsule and board info output is:

BN: Unknown board
VID: 10C4
PID: EA60
SN: Upload any sketch to obtain

hi,

I suspect two switches are broken(USER KEY and RST KEY).

Could you check it?

Hi thanks for the response. I have checked the buttons and I think they are ok. I can get both screens depending on the sequence I press:

15:53:27.070 -> joining…Copyright @ 2019 Heltec Automation.All rights reserved.
15:53:40.244 -> bootloader start

And…

15:53:25.546 -> Copyright @ 2019 Heltec Automation.All rights reserved.
15:53:25.677 -> Scanning…
15:53:25.710 -> I2C device found at address 0x40 !
15:53:25.710 -> Manufacturer ID=0x5449
15:53:25.710 -> Device ID=0x1050
15:53:25.743 -> Device Serial Number=24F-2B1D-7900
15:53:25.776 -> T=20.96C, RH=61.84%

I am not sure what the first one achieves though. I still get the same errors. Are there other steps after I get the bootloader prompt? If I press any keys I get +ERROR: error input format.

I have also tried to re-add the board and config to Arduino but still no joy.

I am going to try on another laptop also to confirm not a laptop issue.

Any other ideas?

Thanks

Richard

Update - Tried fresh install of Arduino IDE and cubecell config on a windows box this time. Same errors as before. So I suspect issue is definitely with the capsule.

Hi,

I understand what your meaning. HTCC-AC0X should be no problem. Because you can enter bootloader mode normally. Please refer the picture(your print):
%E5%9B%BE%E7%89%87

The factory test program of HTCC-AC0x cannot use serial port commands. So, you got this print: +ERROR: error input format

Now, you need re-upload your sketch.

Many thanks, should I see any more text after this:

16:49:05.238 -> joining…Copyright @ 2019 Heltec Automation.All rights reserved.
16:49:12.968 -> bootloader start

Nothing else appears in the screen monitor.

Still getting same errors for examples though.

ChipID:
Sketch uses 35692 bytes (27%) of program storage space. Maximum is 131072 bytes.
Initialising bootloader.
Unhandled error: Timed out waiting for Bootloader response.

SOLVED - I followed the sequence detailed in this post and it worked for me:

Output now looks much better:

Initialising bootloader.
Silicon ID 0x256a11b5, revision 0.
Verifying rows.
Array 0: first row 34, last row 511.
Starting upload.
Uploading ( 10 / 100 )
Uploading ( 20 / 100 )
Uploading ( 30 / 100 )
Uploading ( 40 / 100 )
Uploading ( 50 / 100 )
Uploading ( 60 / 100 )
Uploading ( 70 / 100 )
Uploading ( 80 / 100 )
Uploading ( 90 / 100 )
Uploading ( 100 / 100 )
Checksum verifies OK.
Rebooting.
Total upload time 5.26s

I must have missed this button sequence in the docs, but have tried several times now and looks good.

Cheers @jasonXu for the guidance. Much appreciated,

Richard