Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

illegal state in lorawan process stack crash - v4.5.0 #70

Open
cmorganBE opened this issue Jun 27, 2024 · 1 comment
Open

illegal state in lorawan process stack crash - v4.5.0 #70

cmorganBE opened this issue Jun 27, 2024 · 1 comment

Comments

@cmorganBE
Copy link

stack v4.5.0, esp32 port (internal at the moment)

I'm seeing this crash 306s after startup:

INFO: smtc_modem_run_engineI (306875) smtc_modem_hal: disable_modem_irq
I (306875) smtc_modem_hal: enable_modem_irq
E (306875) smtc_modem_hal: crash_string lr1mac_core_process:203 FAILSAFE EVENT OCCUR (lr1mac_state:0x1)
E (306875) smtc_modem_hal: :556 Modem panic: lr1mac_core_process:203 FAILSAFE EVENT OCCUR (lr1mac_state:0x1)
E (306875) smtc_modem_hal: crash_string lr1mac_core_process:458 Illegal state in lorawan process
E (306875) smtc_modem_hal: :556 Modem panic: lr1mac_core_process:458 Illegal state in lorawan process

 Start a new join sequence now on stack 0
I (306875) LoRaWAN: Modem event callback
W (306875) LoRaWAN: Event received: JOINFAIL
I (306875) LoRaWAN: attempting to join again
INFO: smtc_modem_join_network

I don't believe it is related to stack overflow as I have stack checking enabled in esp-idf.

Thoughts on how to debug? I'm getting more familiar with the stack every day but still early in understanding it fully.

Also, I see radio IRQ during the porting tests (which pass), but for whatever reason not during my relatively simply use case of joining. Timer irqs are occurring and look to be working as expected.

@opeyrard
Copy link

opeyrard commented Jul 8, 2024

Hi,
In a first step, could you please check and confirm you are using the same HAL for porting tests & your application ?
Thank you very much,
Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants