What board for ESP8266 in IDE

I have an AZ-Delivery ESP8266 MOD 12-F but I don't know what board to select in the Arduino IDE. I have tried generic 8266 modules but it is not recognised. I've also tried NodemCU 1.0 (ESP 12-E), but no difference

Any ideas please.

I usually choose the NodemCU 1.0 (ESP 12-E)

Board recognisition has nothing to do with the selected board. You probably did not install the driver.

Please post a link to the board that you bought (don't expect us to search for it :wink:).

I most likely didn't install the driver? It has sat in a drawer since I bought it.
Ayway, here is the link:

That link says it uses the CH340 chip, google that driver.

Ok thanks I'll do that and get it installed.

Easier said than done!
I am running Linux Mint 21.3 , and after unzipping the drivers file I ran this:
sudo make install
[sudo] password for rob:
cp ch34x.ko /lib/modules/6.8.0-52-generic/kernel/drivers/usb/serial
cp: cannot stat 'ch34x.ko': No such file or directory
make: *** [Makefile:16: install] Error 1

We assumed that you were using Windows; sorry for that but you should have mentioned it your opening post (as well as the IDE version).
Linux comes with the driver for the CH340; no need to install.

Step 1

  1. Disconnect the board.
  2. Run lsusb.
  3. Connect the board.
  4. Run lsusb again.
  5. Observe the differences; do you get a new entry?

Step 2

  1. Disconnect the board.
  2. Run dmesg -w.
  3. Press <enter> a few times so you can more easily see the output of the next step.
  4. Connect the board.
  5. Observe the new output; any pointers to errors (e.g. BRLTTY)?
  6. Close dmesg using <ctrl>C.

With Step 1, I don't get any new entry at 4.

With Step 2, I get many entries like this after re connecting the board:

[505180.071702] usb 1-10.2: new full-speed USB device number 68 using xhci_hcd
[505180.071810] usb 1-10.2: Device not responding to setup address.
[505180.275630] usb 1-10.2: Device not responding to setup address.
[505180.483534] usb 1-10.2: device not accepting address 68, error -71
[505180.483621] usb 1-10.2: WARN: invalid context state for evaluate context command.

But lower down I get:

657352.179173] usb 1-10.2: new full-speed USB device number 82 using xhci_hcd
[657352.270552] usb 1-10.2: New USB device found, idVendor=2341, idProduct=0043, bcdDevice= 0.01
[657352.270558] usb 1-10.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[657352.270560] usb 1-10.2: Manufacturer: Arduino (www.arduino.cc)
[657352.270562] usb 1-10.2: SerialNumber: 55737313231351A0C080
[657352.278566] cdc_acm 1-10.2:1.0: ttyACM0: USB ACM device

Yet when I open the IDE up there is no ttyACM0 port, only ttyS4

Did you set permisions

It didn't make any difference when I used sudo or not

I ran this but not sure if the drivers are installed a lsmod doesn't show them:

rob@rob-hp:~/Downloads/CH341SER-master$ make
make -C /lib/modules/6.8.0-52-generic/build M=/home/rob/Downloads/CH341SER-master
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-52-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /home/rob/Downloads/CH341SER-master/ch34x.o
MODPOST /home/rob/Downloads/CH341SER-master/Module.symvers
CC [M] /home/rob/Downloads/CH341SER-master/ch34x.mod.o
LD [M] /home/rob/Downloads/CH341SER-master/ch34x.ko
BTF [M] /home/rob/Downloads/CH341SER-master/ch34x.ko
Skipping BTF generation for /home/rob/Downloads/CH341SER-master/ch34x.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-52-generic'

Then:
sudo make load

And now the CH341 drivers are installed:

[759900.250890] usbcore: registered new interface driver usbserial_generic
[759900.250902] usbserial: USB Serial support registered for generic
[759900.253095] usbcore: registered new interface driver ch34x
[759900.253112] usbserial: USB Serial support registered for ch34x

But in the IDE the port is not listed and I have selected
NodeMCU 1.0 (ESP-12E)

I would first of all consult a Linux forum and see what they say about your installation attempt of the driver. You might have or might not have done damage toLinux.

That is not a good sign; you should get an entry. I do not know if that is due to your failed attempt to install a driver or not.

That might be the reason why lsusb does not give you a new entry.

That's an Uno with 16U2 that you have connected.

Yes it was a UNO last week or so, but this is an ESP board now which I am trying to connect.
Maybe I should ditch it and buy another kind of ESP32 board, although I have a ESP-WROOM-32 which isn't recognised now but was a few months ago

It still seems to be connected else you would not see the entry.

It should also tell you something about ttyUSBx (where x is a number. I do not think that the IDE will see it if it's not a ttyXXX.

Ok , but the UNO is not connected to my pc, as it is running a sketch in another room. Wierd??
I have another esp board and that isn't seen either. It can only be something to do with a linux mint update or similar
The only port in the IDE is ttyS4 now.

Do you still have the kernel from a few months ago ?

Are you a member of the group dialout? Just going by vague memory, but I recall some permission issues with linux.

Yes. It should not be there if it is not connected.

That will only be when trying to access the port from an application. It should still be seen in the IDE and your operating system.

I haven't used linux on a regular basis for quite a while, but that doesn't sound right to me. Can the OP do a 'id -Gn'.