Closed timFaivre closed 3 years ago
Hi @timFaivre,
Thank you for this other report. It has been forwarded to our development teams. We will get back to you as soon as they provide us with their feedback.
Best regards,
Hello,
Thanks for your feedback, i could indeed reproduce the issue. Please find below outcome of investigations: This happens in debug mode only. In release mode, i find it OK.
The issue happens within AT_scan_mn
function from sigfox_at.c
it is related to:
sfx_timer_unit_enum_t unit = SFX_TIME_S;
SIGFOX_MONARCH_API_execute_rc_scan(rc_capabilities_bit_mask, timer, unit, app_callback_handler);
in debug mode, unit
is not initialized properly. It is set to SFX_TIME_MS
.. while in release mode it is initialized properly.
I can't figure out why.
if you replace
SIGFOX_MONARCH_API_execute_rc_scan(rc_capabilities_bit_mask, timer, unit, app_callback_handler);
by
SIGFOX_MONARCH_API_execute_rc_scan(rc_capabilities_bit_mask, timer, SFX_TIME_S, app_callback_handler);
this should be OK,
please let me know
Hi, sorry for the delay !
I agree with your conclusion, the fixe you proposed works correctly.
thanks for you tour time !
Caution The Issues are strictly limited for the reporting of problem encountered with the software provided in this project. For any other problem related to the STM32 product, the performance, the hardware characteristics and boards, the tools, or the environment in general, please post a topic in the ST Community/STM32 MCUs forum.
Describe the set-up
Describe the bug The timer during the monarch scan ends prematurly
How To Reproduce
Indicate the global behavior of your application project.
The modules that you suspect to be the cause of the problem (Driver, BSP, MW ...).
mn_api.c >> MN_API_TimerSart line 277 : UTIL_TIMER_SetPeriod(&Monarch_TimerTimeout, timer_value_ms); the value passed to the function is in seconds while the timer expect ms multplying the timer by 1000 fixes the issue