-
I am working on the hl7800 modem with the stm32u575 mcu, I need to send at commands and nothing else so ret = k_sem_take(&iface_ctx.hl7812_serial_awake, MDM_BOOT_TIME) hangs and no more process, I had the same issue with different configs, I tried to explain here #66002 can anyone shed some light on how to solve this issue? here is the code I use to have uart comms with the modem. Please, Can anyone explain how to debug on this platform? I am really struggling with debugging, for example, like this issue. what are your steps to find out the error?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
update------------- I just tested this issue with up to date hl7800 modem driver here and still have the same issue, just enabling these configs:
strangely, I have different behaviour depending on having printk or not. if i dont put any printk the app is stuck here in the modem_run func at first hit.
If I put printk the app is stuck here: in modem_run
|
Beta Was this translation helpful? Give feedback.
-
@zafersn I am not familiar with PM sub-system. However, did you try to run with enabled asserts in the system?
|
Beta Was this translation helpful? Give feedback.
-
That driver uses edge interrupts, have you checked to ensure that your MCU supports this type of interrupt? |
Beta Was this translation helpful? Give feedback.
This is happens because you're also compiling cortex systick driver.
This is odd because when lptim and PM are enabled th cortex_systick should not be compiled in current state of the tree.
See https://github.com/zephyrproject-rtos/zephyr/blob/main/soc/arm/st_stm32/common/Kconfig.defconfig.series#L10
It's strange that you're facing such issue.