Skip to main content
GirishKumar
Associate III
November 20, 2022
Question

I would like to see sample code or accessing sensors on B-L4S5I-IOT01A

  • November 20, 2022
  • 2 replies
  • 1529 views

I understand that there are many sensors available on  B-L4S5I-IOT01A . But I am not able to find any tutorials or sample code for reading data from these sensors. If there is anything can anyone in this group help me

This topic has been closed for replies.

2 replies

KnarfB
Super User
November 20, 2022

The firmware package (stm32cubel4) contains some demos. Check %USERPROFILE%\STM32Cube\Repository\ (Windows) and the STM32Cube_FW_L4_V1.17.2\Projects folder.

This is also avail. online on github: https://github.com/STMicroelectronics/STM32CubeL4.git

For your board is only a WiFi demo app showing temp.sensor on a web page. This demo uses the Board support Package (BSP) drivers, and there are more BSP drivers for various sensor available. See STM32Cube_FW_L4_V1.17.2\Drivers\BSP\B-L4S5I-IOT01

hth

KnarfB

GirishKumar
Associate III
November 21, 2022

Thanks for you response. I went to the folder what you had recommended I see only two applications NFC and WiFi or board I am using (B-L4S5I-IOT01A)

For B-L475E-IOT01A: I find one or two more examples

Proximity Sensor and Sub_Ghz in addition to NFC and Wifi

There is a temperature sensor, barometric pressure sensor, Accelrometer etc. I do not see sample code or examples for the these sensor. Is there way I can look for equivalent code for some other board I Can use it for (B-L4S5I-IOT01A)

It is bit urgent for project I am working.

I am trying to develop application which access these sensors on Azure RTOS.

Regards

Girish

KnarfB
Super User
November 21, 2022

That's why I said STM32Cube_FW_L4_V1.17.2\Drivers\BSP\B-L4S5I-IOT01 which contains easy-to-use APIs for those.

hth

KnarfB

Technical Moderator
November 20, 2022

Hello @GirishKumar​ and welcome to the Community :)

You will find various applications and you can get inspired from them to use sensors mounted on the B-L4-IOT boards.

The examples are available in the \Projects\B-L475E-IOT01A\Applications\ and run on STM32L475xx devices.

STM32CubeL4/Projects at master · STMicroelectronics/STM32CubeL4 · GitHub

If you are satisfied of my answer, please mark it as "Best", so that this thread will be marked as solved.

Imen

   

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
GirishKumar
Associate III
November 21, 2022

Hi Imen

Thanks for you response. I went to the folder what you had recommended I see only two applications NFC and WiFi or board I am using (B-L4S5I-IOT01A)

For B-L475E-IOT01A: I find one or two more examples

Proximity Sensor and Sub_Ghz in addition to NFC and Wifi

There is a temperature sensor, barometric pressure sensor, Accelrometer etc. I do not see sample code or examples for the these sensor. Is there way I can look for equivalent code for some other board I Can use it for (B-L4S5I-IOT01A)

It is bit urgent for project I am working.

I am trying to develop application which access these sensors on Azure RTOS.

Regards

Girish