Skip to main content
Visitor II
February 24, 2020
Solved

ST25R3916 Wake-up mode

  • February 24, 2020
  • 34 replies
  • 13686 views

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

    This topic has been closed for replies.
    Best answer by Grégoire Poulain

    Hi,

    Looking into the I2C trace provided before it seems that the external IRQ handling on your setup is not properly set.

    DateTime: 2020-02-21T11:11:14.583
    Start, hA0 [ h50 | WR ], hC1, Stop
    Start, hA0 [ h50 | WR ], h7F, 
    Restart, hA1 [ h50 | RD ], h2A NAK, 
    Restart, hA0 [ h50 | WR ], hFC, h44, 
    Restart, hA1 [ h50 | RD ], h00 NAK, Stop
    Start, hA0 [ h50 | WR ], hFC, h04, h10, Stop
    Start, hA0 [ h50 | WR ], h42, 
    Restart, hA1 [ h50 | RD ], h00 NAK, 
    Restart, hA0 [ h50 | WR ], h42, 
    Restart, hA1 [ h50 | RD ], h00 NAK, Stop
    Start, hA0 [ h50 | WR ], h02, h80, Stop
    /* ==> IRQ Status Registers should have been read here triggered by IRQ pin (register h1A) */
    Start, hA0 [ h50 | WR ], h16, h80, Stop

    Please ensure that the ISR and external Interrupt source is functional on your platform.

    If the ISR is not serviced (interrupt status Registers read) the IRQ pin will remain high at startup and you will not be able to see any transition when setting the Wake-up mode.

    Best regards

    GP

    34 replies

    MPeli.1Author
    Visitor II
    April 7, 2020

    Hello,

    after downloading the sources for disco demo, from here https://www.st.com/content/st_com/en/products/embedded-software/st25-nfc-rfid-software/stsw-st25r011.html , the sources actually don't compile because a lot of includes are missing (i opened "\STSW-ST25R011\ST25R3916_DISCO_v1.1.0\Projects\ST25-Discovery\Demonstrations\ST25R3916Demo\TrueSTUDIO\ST25R3916-DISCO\.project" in STM32CubeIDE).

    Is there a guide to import such files? If i import just the includes needed (and it involves a whole lot of work because they are so many), a lot of files with the same name but different content are imported, leading to errors.

    Thank you very much,

    Regards

    Technical Moderator
    April 7, 2020

    Hi,

    AFAIK the TrueStudio has an issue with long paths. Can you install it directly under C: and try?

    Regards, Ulysses

    MPeli.1Author
    Visitor II
    April 7, 2020

    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

    Technical Moderator
    April 7, 2020

    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.