![]() |
Fatal error while uploading sketch to A16 - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25) +--- Thread: Fatal error while uploading sketch to A16 (/showthread.php?tid=2705) |
Fatal error while uploading sketch to A16 - tanoshimi - 03-20-2023 Hi, I recently bought a KC868-A16 board but am unable to use it, since I receive a fatal error when attempting to upload any new sketches onto it ![]() I'm using the Arduino IDE v2.0.4, targetting the "NodeMCU-32s" board from the esp32 boards definitions (v2.0.7). This is the error I receive when attempting to upload any sketch: Code: Sketch uses 292297 bytes (22%) of program storage space. Maximum is 1310720 bytes. There is not other hardware connected to the board. I am using the power supply and USB-C cable that it was supplied with (although I have also tried swapping these for other ones, and also tried different USB ports on my laptop). As suggested elsewhere, I have tried reducing the upload speed from the default 921600 to 115200, but that made no difference. The board itself seemed well-packed and doesn't show any obvious signs of damage, but I'm wondering if the chip is faulty, since the error appears to suggest a problem with the flash memory? Hopefully you can advise! Thanks, Alastair RE: Fatal error while uploading sketch to A16 - Philadam - 03-20-2023 If you have the RF modules installed, try removing them. Had the same issue with KCS firmware and removing the RF modules solved my problem. RE: Fatal error while uploading sketch to A16 - admin - 03-21-2023 yes, when download firmware with KC868-A16. remove the RF433 Module will be work fine. RE: Fatal error while uploading sketch to A16 - tanoshimi - 03-21-2023 (03-20-2023, 09:29 PM)Philadam Wrote: If you have the RF modules installed, try removing them. Thankyou! Yes, that seems to have fixed the issue. So, that's because of the ESP32's specific requirements for pins 2/15 to be LOW/HIGH to enter flashing/boot mode, right? And having the RF modules connected to these pins prevents that. That seems to be somewhat of a flaw in the A16 design, because when developing and testing any application that uses those components I have to keep on removing and replacing them every time I make a modification to the sketch? If that's the case, I wonder what the purpose of the "DOWNLOAD" button on the board is? It doesn't seem to be documented anywhere. If it's required to get the chip to enter programming mode, could it also be used to disable those components during the upload process? RE: Fatal error while uploading sketch to A16 - admin - 03-21-2023 That seems to be somewhat of a flaw in the A16 design, because when developing and testing any application that uses those components I have to keep on removing and replacing them every time I make a modification to the sketch? --->>because the RF reciever module have pull up resistance will influence ESP32 chip download. actually the "DOWNLOAD" button not need to use in our board, because we have designed auto download circuit on our board. so the "DOWNLOAD" button just GPIO0 of ESP32, you can use for your own function by your code. |