Closed HWittlich closed 6 years ago
Sometimes the STM32L0 chip is in a low power mode, where openocd cannot connect. Hold down the RESET button while uploading the sketch.
On Tue, May 8, 2018 at 1:53 PM, HWittlich notifications@github.com wrote:
Dear GrumpyOldPizza,
I tried to upload a Sketch to my B-L072Z-LRWAN1 board, (chose right board and COM port in Arduino). However, I get the following error message:
An error occurred while uploading the sketch Error: init mode failed (unable to connect to the target) in procedure 'program' in procedure 'init' called at file "embedded:startup.tcl", line 495 in procedure 'ocd_bouncer' OpenOCD init failed shutdown command invoked
Any idea what I could do? Thank you for your help.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfIpdBjGuWRcWZvnu_cpHJ287mXGPks5twfe9gaJpZM4T3PbE .
I am amazed by your in-depth knowledge about all of this... Really incredible.
At first, while holding reset down I got Error: timed out while waiting for target halted
and Windows 7 told me that openOCD.exe stopped working. Then I tried uploading again, releasing the button shortly after starting the upload. Voila! the code was uploaded and the boards LED turned green.
Now I just have to figure out why LoRaWAN.joined() returns 0 and doesn't connect to TTN. Perhaps I will have to give it another try outdoors.
TTN. What region ? Are you registered properly ?
On Tue, May 8, 2018 at 2:26 PM, HWittlich notifications@github.com wrote:
I am amazed by your in-depth knowledge about all of this... Really incredible.
At first, while holding reset down I got Error: timed out while waiting for target halted and Windows 7 told me that openOCD.exe stopped working. Then I tried uploading again, releasing the button shortly after starting the upload. Voila! the code was uploaded and the boards LED turned green.
Now I just have to figure out why LoRaWAN.joined() returns 0 and doesn't connect to TTN. Perhaps I will have to give it another try outdoor.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0/issues/10#issuecomment-387531468, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfPHoTqtwH8vXL5UaVhgyxuaf9zqfks5twf9pgaJpZM4T3PbE .
EU Region, there should be at least 3 Gateways in reach. I'm using the example sketch from LoRaWAN.h and have entered my device/app EUIs and appkey from the TTN console. Is there more I need to do to register properly?
EDIT: My device has been seen by TTN, yay! Thank you for your support. EDIT2: I just disconnected the board from the PC and tried powering it via batteries or USB. For some reason, it now doesn't connect to TTN anymore. I will try again tomorrow.
Dear GrumpyOldPizza,
I tried to upload a Sketch to my B-L072Z-LRWAN1 board, (chose right board and COM port in Arduino). However, I get the following error message:
Any idea what I could do? Thank you for your help.