Hello. I am currently working with the STM32L031 Nucleo board:https://www.st.com/resource/en/user_manual/um1956-stm32-nucleo32-boards-mb1180-stmicroelectronics.pdf The board has integrated ST-LINK so it is quite easy and convenient to flash the devic...
Hello. In my project, I would like to printf float type variables such as: float t_degC = -45 + 175 * t_ticks/65535;
float rh_pRH = -6 + 125 * rh_ticks/65535;
printf("t_degC = %.2f \n",t_degC);
printf("rh_pRH = %.2f \n",rh_pRH); Ini...
Hello. I have STM32L031 nucleo board: https://www.st.com/resource/en/user_manual/um1956-stm32-nucleo32-boards-mb1180-stmicroelectronics.pdfAnd I am trying to write SHT40 driver for it. I have Adafruit SHT40 I2C temperature/humidity sensor:https://www...
Hello. I have purchased STM32L031 nucleo development board and wanted to experiment with it. I plan to work on a LoRa project that sends sensor information. The device is battery powered hence ultra low power consumption is a top priority.https://www...
Hello. I have been programming for a couple of years but never really used proper debugging/monitor tools. I have been using printf method for debugging most of my projects.I am now learning about different and more powerful debugging tools that are ...
Thanks for suggestion. Are there any other methods available? The board that I am designing is a very small device and using 14 pin connector might be an issue. I am already stretching it by using 10 pin connector... My other idea:use 6 pin Tag Conne...
Thanks for all the responses. I would have never thought that using printf floats are so complex and requires 10's of KB's of FLASH memory. For now, I just use integer like below: float t_degC = -45.0f + 175.0f * ((float)(t_ticks/65535.0f));
...
I have found the issues behind why I could not communicate with the SH40:Since the I2C adresses are 7-bit, I need to do the following:#define SHT40_ADDRESS (0x44 << 1)and then I can use this in I2C write/read functions:ret = HAL_I2C_Master_Transmit(&...
Yes. I have connected 22kOhm pull-up resistors to both SCL/SDA pins.Perhaps there is an issue with my I2C config:I dont recall that I had to manually set Rise and Fall time parameters. I have tested the I2C on the stm32f407 and that microcontroller d...