it is me again. I got already some help, some month ago:
Thanks for that.
And the project mentioned above works fine for some month. Last day I tried to pair the Seeed with a new device and now it is not working anymore.
As you can read above, I have absolutely no idea - I’m even surprised that I managed to get the thing running at all.
The current status is, when I power the Motorbuttons I have sometimes one and sometimes two LED on, but there is no Bluetooth where I can connect.
I can upload the Arduino Code via Arduino IDE, the board is seen. Upload works, but after this nothing (then above) happen. In windows words, I would say it will noct boot.
In normal mode both LED will blink until a Bluetooth device is paired.
So how can I start failure search?
Can I totally reset the board?
make sure to put it in boot mode and restart after new program… sometimes it acts like it updated but it really did not… also you can try wipe it clean by uploading blink sketch
Q1: My Arduino IDE is stuck when uploading code to the board
You can first try to reset the board by clicking the “Reset Button” once. If that does not work, rapidly click it twice to enter bootloader mode. If that also doesn’t work, disconnect the board from the PC, and connect the board again.
Q2: My board is not showing up as a serial device on Arduino IDE
You can first try to reset the board by clicking the “Reset Button” once. If that does not work, rapidly click it twice to enter bootloader mode.
Press reset button… and if that doesnt work… double click the reset button
… press reset button after uploading sketch… because sometimes it will automaticly reset… but sometimes it does not so after upload it is good idea to press reset button or power cycle
Morning, I managed to load the sketch again. The board is sometimes working, sometimes not. It looks like a boot problem, I believe the board is the problem.
I will monitor this and in the worst case change the board.
Hi there,
Does the Xiao show up as a Drive? (BL mode) if so, Grab the Uf2 file for the RGB LED test in the
“Drag & Drop” test file thread. There’s a zip. DRAG the uf2 file to it , it will reset after it reloads anf cycle thru the RGB colors thus reloading the BootLoader image and code that is verified good. Looks to me the BootLoader is corrupted. or you code hit a memory boundary and messed it up.
YMMV
HTH
GL PJ
Hi there,
Yes, If it only lets you upload in Bootloader mode, Then something got wacked in the flash, luckily “Size” doesn’t matter…LOL of the code. any lib or io miss code parameter can write to a location and only slightly mess it up. Even small programs that have too fast, or very tight loops will prevent enough time for it to see the upload signal from the com port. That requires a double press then.
You should be able to upload regardless of mode it’s in on a Normal Xiao situation. (note the com port will change however) in some cases.
BL mode is required to drag and drop the Uf2 files.
HTH
GL PJ
Hi @PJ_Glasso, I have a similar problem, unfortunately neither the simple click nor the double click on the reset button are effective. It seems that the board is damaged and unable to connect to USB. I also tried to flash the code on a new fresh board, the first time the code works and run properly, if I disconnect the usb (it is without a battery) and reconnect the cable the device isn’t recognised it seems to be dead! Any idea?
So, Have you tried to hold the reset and PLUG in the USB at the same time then release the button. Does it make the windows “new device” sound ? , Look next when connected to the device manager does it show up in com ports when plugged in? If it does then it’s not Dead!
Set it up as normal connected to Arduino IDE. Load the blinky sketch or (known good code). Here is where it’s a finesse thing set the port and do download, let it get to just the right part before the download and like a Gun-Slinger you need to time the reset with the down load trigger. (port does it’s RTS/DTR ,1200 baud handshake bit) BE PATIENT…
takes many tries, without a JLink or SWD programmer device
, this DOES work. if you get the timing right it will glitch in and send the firmware file. (this works also if you Nuked your rest button to the Nub ) I have 2 units that the buttons are GONE , gone…
It’s like push starting the old Yamaha Yz Dirt-bike
takes a few tries , but once you get it Welcome to Level 2
Hi, I read somewhere that the Board has a bug, something with the bootloader. I have no idea. I had also problems to get USB connection, after some clicks on the reset button I had suddenly a connection Try more than once.
I have a new problem with my controller. After power loss the bluetooth connection to my tablet get lost. So everytime the Board has no power I need to pair the connection again, it is a pain.
So, I doubt that… (“has a bug”) I notice no reference is offered.
I find it’s more an issue between the keyboard and the floor in most cases. really though It’s a code issue, well documented and experienced programmers know this (more of an achilles heel in arduino).
If your code doesn’t offer any delay in the Loop function
when the Bootloader “Hook” is thrown , it get’s ignored due to lack of time for the Bootloader to respond.
Your controller issue is also a code problem, Depending on the method used , HID or FAST BLE (no code pairing) You can capture the creds and save the connection params for a WHITE-LIST to NVRAM. Also auto connect or reconnect is available in other BLE lib’s
I have seen the NFC used to TAP the BLE connection back also.
(tag provides the connection credz)
Dear PJ,
thanks for the info. Unfortunately Plug and press rst btn doesn’t provide any effect. windows device manager didn’t detect the device.
Any further suggestion?
The problem now is to understand what caused the problem! I was just modifing my class for battery management saving few bytes on the board using FS_Nano33BLE library.
i dont think it is anything to do with the code… are you sure your usb cable is good? power data and all… it the unit getting power? have you confiremd this?
Yes, the cable is ok I tested differnt caples and different ports! Even without cable with the board connected to the battery the reset doesn’t produce any result.