Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DEFINE BOARD ARDUINO
#1
Hello, excuse me, I am new on the forum . I have a kc868_A64 and I want to code in ARDUINO

I have loaded  the kc868-arduino-library, but I don't know what BOARD to choose in the combo list : ESP32 Dev Module ? ESP32S2 Dev Module ? .... 

Thank a lot for your help


Attached Files Image(s)
   
Reply
#2
kc868-arduino-library not use for KC868-A64
you can use many arduino demo source code for KC868-A64 at here: https://www.kincony.com/forum/forumdisplay.php?fid=28
board chose "NodeMCU-32S".
Reply
#3
ok, NodeMCU-32S done (thank"s) no library installed, I will try the sample "DigitalReadSerial.ino", but after compiling and upload the code, appear the message
"Leaving...
Hard resetting via RTS pin..."
After that, impossible the the KC868_A64 doesn't work; ethernet led doesn't light, the only solution is to reload firmware (KCS_KC868_A64_V2.1.1)

does the code of the program overwrite the firmware ? How to fix it ?



Le croquis utilise 262073 octets (19%) de l'espace de stockage de programmes. Le maximum est de 1310720 octets.
Les variables globales utilisent 21344 octets (6%) de mémoire dynamique, ce qui laisse 306336 octets pour les variables locales. Le maximum est de 327680 octets.
esptool.py v4.5.1
Serial port COM3
Connecting.....
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: d4:d4:da:e1:1e:38
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00050fff...
Compressed 17568 bytes to 12204...
Writing at 0x00001000... (100 %)
Wrote 17568 bytes (12204 compressed) at 0x00001000 in 0.5 seconds (effective 278.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 289.2 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.2 seconds (effective 435.6 kbit/s)...
Hash of data verified.
Compressed 262432 bytes to 145663...
Writing at 0x00010000... (11 %)
Writing at 0x0001c60a... (22 %)
Writing at 0x00024e1f... (33 %)
Writing at 0x0002a030... (44 %)
Writing at 0x0002f428... (55 %)
Writing at 0x00035008... (66 %)
Writing at 0x0003f427... (77 %)
Writing at 0x00045b0c... (88 %)
Writing at 0x0004b07d... (100 %)
Wrote 262432 bytes (145663 compressed) at 0x00010000 in 2.5 seconds (effective 851.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

/*
DigitalReadSerial

Reads a digital input on pin 2, prints the result to the Serial Monitor

This example code is in the public domain.

https://www.arduino.cc/en/Tutorial/Built...ReadSerial
*/

// digital pin 2 has a pushbutton attached to it. Give it a name:
int pushButton = 2;

// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
// make the pushbutton's pin an input:
pinMode(pushButton, INPUT);
}

// the loop routine runs over and over again forever:
void loop() {
// read the input pin:
int buttonState = digitalRead(pushButton);
// print out the state of the button:
Serial.println(buttonState);
delay(1); // delay in between reads for stability
}
Reply
#4
please use our arudino demo source code from our forum. such as read digital input demo is : https://www.kincony.com/forum/showthread.php?tid=1912
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)