2020-02-24 06:15 AM
Hello,
i have been trying to put the st25r3916 in wake-up mode but i detect high power consumptions (around 900 uA). I am using a very basic code just to test current consumtion, i2c communication seems to work, but maybe i am missing some parts.
int main(){
rfalAnalogConfigInitialize();
if(rfalInitialize() != ERR_NONE)
{
}
else
{
rfalWakeUpModeStart(NULL);
}
}
Am i missing some api calls?
Thanks,
Regards
Solved! Go to Solution.
2020-04-07 03:13 AM
Hi,
AFAIK the TrueStudio has an issue with long paths. Can you install it directly under C: and try?
Regards, Ulysses
2020-04-07 03:34 AM
Hi,
i tried with "C:\ST25R3916_DISCO_v1.1.0\Projects\ST25-Discovery\Demonstrations\ST25R3916Demo\TrueSTUDIO\ST25R3916-DISCO\.project", i get errors of missing headers.
12:42:33 **** Build of configuration Debug for project ST25R3916-DISCO Firmware ****
make all
arm-none-eabi-gcc "C:/ST25R3916_DISCO_v1.1.0/Middlewares/ST/p2p/lib_llcp.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER '-DUSE_MB1414_B=1' '-DMCU_FW_VERSION_EXTRA=B' '-DRFAL_ANALOG_CONFIG_CUSTOM=1' -DSTM32L476xx -DUSE_LCD -DUSE_ST25DV '-DMENU_DEMO_CENTER_ICONS=1' '-DUSE_LOGGER=2' '-DST25DX=1' '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -c -I"/Projects/ST25-Discovery/Demonstrations/ST25R3916Demo/inc" -I"/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"/Drivers/CMSIS/Include" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Drivers/STM32L4xx_HAL_Driver/Inc" -I"/Drivers/BSP/Components/Common" -I"/Drivers/BSP/Components/stmpe811" -I"/Drivers/BSP/Components/ad5112" -I"/Drivers/BSP/Components/ili9341_cube" -I"/Drivers/BSP/Components/ST25DV" -I"/Drivers/BSP/ST25-Discovery" -I"/Middlewares/ST/STM32_BlueNRG/SimpleBlueNRG_HCI/includes" -I"/Middlewares/ST/STM32_BlueNRG/Interface" -I"/Middlewares/ST/STM32_SPWF01SA/Utils" -I"/Middlewares/ST/STM32_SPWF01SA/Inc" -I"/Middlewares/Third_Party/LibJPEG/include" -I"/Middlewares/ST/menu_demo" -I"/Middlewares/ST/lib_nfc/lib_NDEF/inc" -I"/Middlewares/ST/lib_nfc/common/inc" -I"/Utilities/Fonts" -I"/Projects/ST25-Discovery/Demonstrations/ST25R3916Demo/Picture" -I"/Middlewares/ST/RFAL/include" -I"/Middlewares/ST/RFAL/source/st25r3916" -I"/Middlewares/ST/Reader_common/firmware/STM/utils/Inc" -I"/Middlewares/ST/RFAL/source" -I"/Middlewares/ST/Reader_common/firmware/STM/STM32/Inc" -I"/Middlewares/ST/BlueNRG_Host_HID_Profile_1.1.0BETA/Projects/Bluetooth_LE/Profile_Framework/includes" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Inc" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Drivers/BSP/DISCO-STM32L4x6" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Middlewares/ST/STM32_USB_Device_Library/Class/CustomHID/Inc" -I"/Middlewares/ST/STM32_Cryptographic/Inc" -I"/Middlewares/ST/p2p" -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"p2p/lib_llcp.d" -MT"p2p/lib_llcp.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "p2p/lib_llcp.o"
C:/ST25R3916_DISCO_v1.1.0/Middlewares/ST/p2p/lib_llcp.c:316:10: fatal error: st_errno.h: No such file or directory
#include "st_errno.h"
^~~~~~~~~~~~
compilation terminated.
make: *** [p2p/subdir.mk:21: p2p/lib_llcp.o] Error 1
"make all" terminated with exit code 2. Build might be incomplete.
12:42:36 Build Failed. 2 errors, 0 warnings. (took 2s.855ms)
Thank you,
Regards
2020-04-07 07:25 AM
Hi,
looking at the output it seems the include paths are shortened/miss the prefix. Is this a new extract from the package or you just copied/moved the previously opened project to a different location?
Please open for such issues new tickets. The ticket title has zero in common with what we are discussing now.
Regards, Ulysses.