[solved]Cannot join lora 32(v2) to the things stack

Hi, i use The Things Stack with docker image in local.

I use ino code in ESP32_LoRaWAN/OTTA_OLED, use LoRa gateway HT-M00.

Got a license code use https://resource.heltec.cn/search, I got license code (0x0647E8XX,0x115C06XX,0xD0ABD5XX,0xD84477XX).
And my lora setting in arduino is under image
lora

euis are
uint32_t license[4] = {0x0647E86F, 0x115C067A, 0xD0ABD53C, 0xD84477XX};

uint8_t DevEui[] = { 0xB3, 0x19, 0x33, 0x1F, 0xE6, 0x76, 0x7D, 0x26 }; // will generate by ChipID. I use DevEUI shown at Serial Monitor.
uint8_t AppEui[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03 };
uint8_t AppKey[] = { 0x45, 0x03, 0x5F, 0x15, 0xAF, 0xF1, 0xF7, 0x0B, 0xF3, 0x89, 0xE2, 0xF6, 0xEA, 0xB5, 0xC8, 0xEC };
And these euis are same in The Things Stack Application device setting.

I did above process, but my oled screen just showing JOINNING…

Can’t I use this code in Korea? If it’s available, which process did I miss?

I wrote incorrect freq in my gateway. https://www.thethingsnetwork.org/docs/lorawan/frequency-plans/ this is TTN provide freq

i modified some file with this method

because
ESP32 MCU init…
abort() was called at PC 0x4008258e on core 1
Backtrace:0x40083ca9:0x3ffb26600x400891bd:0x3ffb2680 0x4008dfa1:0x3ffb26a0 0x4008258e:0x3ffb2720 0x40082b64:0x3ffb2770 0x400d4be8:0x3ffb2790 0x400d5379:0x3ffb27b0 0x400d1841:0x3ffb27f0 0x400db25e:0x3ffb2820
ELF file SHA256: 0000000000000000
Rebooting…

error occured.

I’m having the same problem for ESP32 MCU init crash(using wireless stick lite).

I also made the same modification for the Mcu.s file and it works but I get stuck in the joining request:

image

which leads to:

this behavior was not happening before with this board.

I am also getting endless forward join-accept and accept join-request messages. Occasionally it does actually join, sends a single payload then the LoRaWAN.sleep() function reboots my HelTec and it starts all over again

I entered the wrong frequency. The gateway should have entered the frequency provided by ttn, not the lora frequency provided by the country.
This leads me to a successful connection.

@hans01 Can you explain this a bit more? Are you talking about the frequency plan in your LoRa gateway or are there some settings in the Arduino environment that need to be changed?

I wrote it in my lora gateway.
e.g. HT-M00 at KR920, first freq is 922.1 * 10^6 hz, second freq is 922.3 * 10^6 hz.
Arduino environment not changed, i just modified tools tab(device eui, preamble length - 8 to 16, legion - KR920).

Understood. My gateway natively has TTN AU915 as an option so did everything for me