A programm I wrote works perfactly on an Arduino uno but not on an NodeMCU

I wrote a code that works perfectly on my Uno but not on my NodeMCU. I checked that all the pins i use are on the board and the code doesn’t use the wifi or similar. It also dosn’t give a error or similar the only thing you can see is the text in the serial monitor where it says:

est Jan 8 2013, rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 3456, room 16
tail 0
chksum 0x84
csum 0x84

The code is below. Thanks.

NWT_auto.ino (3.48 KB)

Try with:

#define M1_1 D1     //rechter Motor  1 = vorwarts     2 = ruckwarts
#define M1_2 D2
#define EN_A D3

#define M2_1 D4     //linker Motor
#define M2_2 D5
#define EN_B D6


Thanks for this advise, but it sill prints the same error message.