Page 1 of 1

Problem updating bootloader

Posted: 18 Dec 2018 22:46
by sil
Hello,

I got this message:

Openning port ..............................
Openning port .............................. OK

Stoping the user code ..............................


And you can wait, wait, wait, nothing happened.

What to do ?

Thanks

Re: Problem updating bootloader

Posted: 18 Dec 2018 23:06
by sil
I got the previous message with a MAC computer.
With a PC:


Openning port ..............................
Openning port .............................. OK

Stoping the user code ..............................
Stoping the user code .............................. OK

Closing port ..............................
Closing port .............................. OK

Openning port ..............................
Openning port .............................. OK



**** **** **** **** **** *
* * * * * * * * * *
* * * * * * * * * *
**** *** *** * * *** *
* * * * * * * * *
**** * * * * **** * * *



Error 0 returned 1 for ACK

Closing port ..............................
Closing port .............................. OK



**** **** **** **** **** *
* * * * * * * * * *
* * * * * * * * * *
**** *** *** * * *** *
* * * * * * * * *
**** * * * * **** * * *



Error 1 Unknown exception:list index out of range



If I try to download a sketch



************* Building Arduino Sketch *************

C:\Users\home\AppData\Local\Temp\arduino_build_794263/SimpleBlink.ino

***************************************************



--- USING a list of libraries from:

C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.4\libraries

C:\Users\home\Documents\Arduino\libraries

*** Collecting prototypes...

Preprocessing file: Custom.c with SDCPP...



Preprocessing file: Print.cpp with SDCPP...

Compiling Print_sdcpp_.cpp ...

Preprocessing file: Stream.cpp with SDCPP...

Compiling Stream_sdcpp_.cpp ...

Preprocessing file: HardwareSerial.cpp with SDCPP...

Compiling HardwareSerial_sdcpp_.cpp ...

Preprocessing file: HLCore.cpp with SDCPP...

Compiling HLCore_sdcpp_.cpp ...

Preprocessing file: SimpleBlink.cpp with SDCPP...

Compiling SimpleBlink_sdcpp_.cpp ...

Preprocessing file: Print.cpp with SDCPP...

Compiling Print_sdcpp_.cpp ...

Preprocessing file: Stream.cpp with SDCPP...

Compiling Stream_sdcpp_.cpp ...

Preprocessing file: HardwareSerial.cpp with SDCPP...

Compiling HardwareSerial_sdcpp_.cpp ...

Preprocessing file: HLCore.cpp with SDCPP...

Compiling HLCore_sdcpp_.cpp ...

Preprocessing file: SimpleBlink.cpp with SDCPP...

Compiling SimpleBlink_sdcpp_.cpp ...Compiling file "LLCore_arduino.c" by means of SDCC...

sdcc: Calling preprocessor...

sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include" "LLCore_arduino.c"

sdcc: Generating code...

sdcc: Calling assembler...

sdcc: sdas8051.exe -plosgffw "LLCore_arduino.rel" "LLCore_arduino".asm

Compiling file "Print_ucxx.c" by means of SDCC...

sdcc: Calling preprocessor...

sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include" "Print_ucxx.c"

sdcc: Generating code...

sdcc: Calling assembler...

sdcc: sdas8051.exe -plosgffw "Print_ucxx.rel" "Print_ucxx".asm

Compiling file "Stream_ucxx.c" by means of SDCC...

sdcc: Calling preprocessor...

sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include" "Stream_ucxx.c"

sdcc: Generating code...

sdcc: Calling assembler...

sdcc: sdas8051.exe -plosgffw "Stream_ucxx.rel" "Stream_ucxx".asm

Compiling file "HardwareSerial_ucxx.c" by means of SDCC...

sdcc: Calling preprocessor...

sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include" "HardwareSerial_ucxx.c"

sdcc: Generating code...

sdcc: Calling assembler...

sdcc: sdas8051.exe -plosgffw "HardwareSerial_ucxx.rel" "HardwareSerial_ucxx".asm

Compiling file "HLCore_ucxx.c" by means of SDCC...

sdcc: Calling preprocessor...

sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include" "HLCore_ucxx.c"

sdcc: Generating code...

sdcc: Calling assembler...

sdcc: sdas8051.exe -plosgffw "HLCore_ucxx.rel" "HLCore_ucxx".asm

Compiling file "SimpleBlink_ucxx.c" by means of SDCC...

sdcc: Calling preprocessor...

sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include" "SimpleBlink_ucxx.c"

sdcc: Generating code...

sdcc: Calling assembler...

sdcc: sdas8051.exe -plosgffw "SimpleBlink_ucxx.rel" "SimpleBlink_ucxx".asm

sdcc: Calling preprocessor...

sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\home\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70/zuno_toolchain/sdcc/\bin\..\include" "main.c"

sdcc: Generating code...

sdcc: Calling assembler...

sdcc: sdas8051.exe -plosgffw "main.rel" "main".asm

sdcc: Calling linker...

sdcc: sdld.exe -nf "main.lk"

Making firmware file: C:\Users\home\AppData\Local\Temp\arduino_build_794263/SimpleBlink.ino-0214.hex ...packihx: read 38 lines, wrote 56: OK.

Fixing ISR table in C:\Users\home\AppData\Local\Temp\arduino_build_794263/SimpleBlink.ino-0214.hex ...Making binary firmware file C:\Users\home\AppData\Local\Temp\arduino_build_794263/SimpleBlink.ino-0214.bin. Using in Z-Way for wireless update procedure.[Done]



Elapsed:7.32999992371 s

Sketch uses 710 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 155 bytes of dynamic memory.

Openning port ..............................
Openning port .............................. OK

Stoping the user code ..............................
Stoping the user code .............................. OK

Closing port ..............................
Closing port .............................. OK

Openning port ..............................
Openning port .............................. OK

Cleaning user NVM [> ] (0%)


**** **** **** **** **** *
* * * * * * * * * *
* * * * * * * * * *
**** *** *** * * *** *
* * * * * * * * *
**** * * * * **** * * *



Error 0 returned 1 for ACK
(<class '__main__.ProgrammerError'>, 'compiler.py', 480)



**** **** **** **** **** *
* * * * * * * * * *
* * * * * * * * * *
**** *** *** * * *** *
* * * * * * * * *
**** * * * * **** * * *



Error 1 Unknown exception "Can't clean NVM data! at=40000"

Re: Problem updating bootloader

Posted: 20 Dec 2018 06:58
by rrozema
You could try connecting using a better quality usb cable. I have some (cheap) usb cables that produce similar results. If I use one of my better quality cable, it works fine.

Re: Problem updating bootloader

Posted: 21 Dec 2018 13:36
by sil
solved with rescue mode