2023-11-14 01:09 AM
Hello everyone,
I'm trying to detect some RFID tags with the STSW-ST25RU-SDK wich is give here.
I try to detect some tags with the Gen2_Inventory() function but when the ST25RU3993 detect a tag, an interrupt turn on and after my external MCU go directly in the InfiniteLoop.
I always enter in this infinite loop when i detect a tag.
Someone can help me to debug my interrupt please ?
Thank you !
Paul
Solved! Go to Solution.
2024-02-02 06:31 AM
Hi PRena.1
do you run the FW with STUHFL_DEVICE_MODE and do you want to do batch command processing ?
when looking to your call stack I think the reason for your hard fault is that batch mode is enabled for your inventory.
This can be enabled/disabled with the STUHFL_T_InventoryOption::batchCmd field. If this is enabled additional memory must be allocated by the user application and assigned to the STUHFL_T_InventoryTag::batchReply field.
How this is done could found in the STUHFL_demo host application. Please have a look into STUHFL_demoInventoryRunner.c file to the "void demo_InventoryRunner_wBatchCmd(uint32_t rounds, bool singleTag)" function.
If batch mode is not need it can be disabled, then no additional processing is done and no memory needs to allocated.
BR
2024-02-02 06:31 AM
Hi PRena.1
do you run the FW with STUHFL_DEVICE_MODE and do you want to do batch command processing ?
when looking to your call stack I think the reason for your hard fault is that batch mode is enabled for your inventory.
This can be enabled/disabled with the STUHFL_T_InventoryOption::batchCmd field. If this is enabled additional memory must be allocated by the user application and assigned to the STUHFL_T_InventoryTag::batchReply field.
How this is done could found in the STUHFL_demo host application. Please have a look into STUHFL_demoInventoryRunner.c file to the "void demo_InventoryRunner_wBatchCmd(uint32_t rounds, bool singleTag)" function.
If batch mode is not need it can be disabled, then no additional processing is done and no memory needs to allocated.
BR