RAK815 - weird error when using IAR

Issue:
Hello,
I am using IAR to program the RAK815. When I do that, I get the following output and it never connects to the gateway.
When I use the already existing hex file for demos. It works fine…

Any help?


Setup:

Server:

Details:

The problem seems to be here, even if I change the application, it does not change.

The “LORAMAC_EVENT_INFO_STATUS_OK” if not confirming…
What should I do?

But when I use the already existing hex files. They work well and it gets connected!
I tried to remove everything an redownload them… not working