Developer support experience survey - We value your feedback
Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.
Most recent activity
I want to get an actual voltage reading at VDDA and I have configured the Vrefint adc channel. I saw in another questionnaire mentioning VDDA = 3.3*(VREFINT_CAL/VREFINT_DATA). But it seems like no macro exists as VREFINT_CAL. How can I read the VDDA value?
Please help how I can find this library.STM32-H7A3ZI-Q with latest STM32CubeIDE
I'm working on a project with an STM32U5 device (NUCLEO-U5A5ZJ-Q) and I need to integrate cJSON, mbedTLS, lwIP, and FatFS to load and flash a configuration file cacert.pemonto the STM32 device. However, when I searched for mbedtls and lwip in the middleware and software packages, I couldn't find them.Can anyone provide suggestions or guidance on how to integrate mbedtls, lwIP, and FatFS into my STM32 project? Additionally, I'm curious if there's a cJSON library available for STM32.https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Projects/NUCLEO-U5A5ZJ-Qhttps://github.com/STMicroelectronics/STM32CubeU5/tree/main/Middlewares/Third_Partyhttps://github.com/STMicroelectronics/STM32CubeH7https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Middlewares/Third_PartyI've noticed that the STM32H7 series has middleware third-party tools like lwIP and mbedTLS available, but these are not included in the STM32U5 series. Is there a specific reason why these middleware components a
Hiii,Im trying to interface DHT11 sensor to NucleoF401RE and transfer the data via NodeMCU to Thingspeak my dht11 code ran sucessfullyAlso the NodeMCU code is flashed sucessfully and connected to WifiBut Im not getting any data in Thingspeaki got only two datas and the data transfer stoppedHow to rectify this issue????
Can anyone guide me if i am doing the correct way of combining 2 rams in linker script(attached with the message ) for my stm32 based micro controller - which is stm32wle5xx, any help would be much appreciated.
What is the function of accessing 16 Bit Resisters available on VL6180 Controller?
Hi,I am working with stm32g491re.I need to give firmware update option to the mcu . My stm32 board connected other MCU through uart and other mcu connected to web server. Firmware updates will come from webserver to stm32 through other mcu(with UART).So, I am planning to use USART protocol for the STM32 bootloader because stm32 and other board communication is happing through UART.I read AN2606 and AN3155 and I got to know that to enter in to boot mode I need make boot0 pin to high and that I am doing through hardware then checking the boot0 state in firmware.Can anyone tell me what is the next process to update the firmware through USART and when and how to implement AN3155 document in the firmware for firmware update and flash bank division.AN3155 explains different commands. Do I need to send those command through uart and then can I update firmware if I will get required feedback from stm32g0 board and Then I can download firmware update code ??Till now what I
Howdy, im very new with filesystems and SD cards in general.I am trying to develop a system that can manage files from a SD card (images ) and also interface between the PC and the SD card trough USB. I managed to get my stm32f4-discovery working with an USB mass storage device and a SD card conected via SDIO. It works but my stm32f4 blindly writes and reads the sd card when USB mass storage asks for it.I want my stm32f4 to be able to search folders and read/write files from the SD card also ,so i am trying (unsuccesfully) to add the FATFS middleware.I find tutorials about USB+SD card and FATFS+SD card but not all of them together.Am i trying to do something weird here?res=f_mount(&SDFatFS, (TCHAR const*)SDPath, 0);//this returns FR_OK HAL_Delay(200); //Open file for writing (Create) res=f_open(&SDFile, "F7FILE2.TXT", FA_CREATE_ALWAYS | FA_WRITE);//this returns FR_NO_FILESYSTEMmy code (github)
Dear Technical team,We are developing an IoT product using STM32H750.The application starts a task cycle to publish customer information to the cloud platform by MQTT Publish API.At the same time, we make a ping tests to target board from the PC host,but found that there is a probability of a hardfault problem occurring.if stop the ping test, there are not the issues.I would like to know if there are any things to pay attention to when using the mqtt interface to send data? Thanks,Martin.Xu
Hello, I have a setup where I use an STM32H747XIH6U and an ADAU1361 codec on the I2S-interface. I want to use the PDM-mics on the ADAU, and in order to do that, ADAU has to be in I2S master mode according to the datasheet. Consequently, STM has to be in slave mode. However, in slave mode STM does not generate an MCK, which for some reason is required by ADAU, even though it is supposedly in master mode (it uses the MCK input to generate its internal clocks both in slave and master mode, apparently). So, my question is: Is there a way to output a MCK in STM slave I2S mode anyways? I'm using CubeMX to generate code, and from there it is not possible to configure I2S in full-duplex slave and have a MCK. Can I use another clock, or is there some other workaround?
Hallo All,I am currently stuck and need your help. The following function counts the no. of 1 in a 32 bit word on an STM32F407. Why does it fail for values which have their bit 31 set? Precisely, it ignores bit 31 and in these cases is off by one. .global countBits .text .syntax unifiedcountBits: mov r3, r0 mov r2, #32 mov r0, #0next: lsls r3,r3,#1 it mi addmi r0, #1 subs r2, #1 bne next bx lrI would be glad if anyone could point me to the error which obviously I do not see.Thanks a lotHerby
Hello;I am working with STM32CubeIDE, trying to connect a Nucleo-L4R5ZI board to an ADCS chip using I2C. The method of communication is very strange, requiring: [start condition] - [controller sends two bytes] - [start condition] - [controller sends one byte] - [controller reads several bytes] - [stop condition].I wrote some code using the built-in HAL functions to try and accomplish this: while (HAL_I2C_GetState(hi2c) != HAL_I2C_STATE_READY) {} // delay until ready HAL_I2C_Master_Seq_Transmit_IT(hi2c, ADCS_I2C_ADDRESS << 1, buf, sizeof(buf)/sizeof(uint8_t), I2C_FIRST_AND_NEXT_FRAME); while (HAL_I2C_GetState(hi2c) != HAL_I2C_STATE_READY) {} HAL_I2C_Master_Seq_Transmit_IT(hi2c, ADCS_I2C_ADDRESS << 1, read_buf, sizeof(read_buf)/sizeof(uint8_t), I2C_FIRST_AND_NEXT_FRAME); while (HAL_I2C_GetState(hi2c) != HAL_I2C_STATE_READY) {} // I2C_FIRST_AND_NEXT_FRAME has start condition, no stop condition, and allows for continuing on with another I2C Seq command HAL_I
CONFIGURATION:USING STM32H743XI DAC1 / DAC OP: CONFIGURATION: NORMAL BUFFERED OUTPUT MODE.PINNO: PA4 & PA5. using HAL_DAC_SetValue function to change DAC values - 0 to 3.0 V. if want to set 2.0 V, respective cnt applied using HAL_DAC_SetValue, at DAC op getting 2.0 v. We are not refreshing dac DOR value once set. After some random time, we are getting 2.1 volt or 2.3 volt, what could be possible reason. is it expected to use HAL_DAC_SetValue continuously or at specific time.
Hi,I'm currently working on file transfer through the XMODEM protocol, and I want to implement the logic in STM32CubeIDE. If anyone has already implemented it, please share the source code. It would be helpful for me. Thanks
Hi,I'm able to configure LWIP with my Nucleo-F439 board so that it responds to pings as expected. I however want to be able to transport some useful information to a socket (telnet or similar) and I want to use FreeeRTOS for that. I however am unable to get it working, in my Default Task, it always gets stuck in MX_LWIP_Init(), in particular here:#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ){configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );}#endifwhich appears to be an issue with the clock config. I duplicated my clock configuration from the working barebones appliaction 1:1 but it still doesn't appear to work.The GPIO config looks to be correct too. What else might I be missing?
Hi,I'm using STM32G070RBTx, and I use this formula from document RM0360 to compute temeperature:From page 56 of document https://www.st.com/resource/en/datasheet/stm32g070cb.pdf, I'm using:Avg_Slope = 2.5 and V30 = 0.76.The temperature converted value I obtain at ambient temperature appears reasonable ( 21 °C approx. ) but when the temperature increases the raw value I get from ADC also increases but using formula above gives a decreasing temperature value and this is wrong.Please help.
Hi everybody, My project is reading encoder data, and then send this data to the terminal via USB connection. As transmit and receive I want to use CDC_Transmit and CDC_Receive function. But no matter what I do, I cannot see the encoder data in the terminal. My code and configurations are below: /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2024 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END Header */ /* Includes --------------
I have initialized a project with STM32CubeIDE (the .ioc file) using the STM32F407G discovery.I want to produce on an output pin of the TIMER4 a PWM signal with a certain duty cycle, so I set in the .ioc file the various parameters and in particular the "Pulse" parameter which, if I am not wrong, takes values in the range [0 .. ARR]. The value 0 corresponds to 0% Duty Cycle while the value ARR corresponds to 100% Duty Cycle. Is this correct? Since I want to be able to change the pulse parameter dynamically without having to set it every time by opening the .ioc file ... I decided in the main.c to directly change the register responsible for the Pulse parameter. So in the Reference Manual I looked up what it was and I found "one pulse mode" (in the attached reference manual, see section 18.3.10). I have read it several times but I can't figure out which register stores the Pulse value of TIMER4.I found out "indirectly" that it's CCR3 register because, during the simulation/debug, i
Hello,I am currently using Olimex's STM32 E407 board. I am using raw tcp. I enabled lwIP on CubeMX. I have been able to create a TCP server, connect the board to my computer with ethernet cable and communicate. The problems I am facing now are as below:1- I connected STLink V2 (an original one with 10 pins) to the board. Also, I am powering the board with this. Booting after first connection, it works as desired. When I replug the STLink, the board stops communication, and I cannot connect to the TCP server unless I boot the code from CubeIDE again or reset the board with button. Pinging the board gives "Destination host unreachable" error.If I replug the ethernet cable without replugging STLink, it works ok. I am using user flash memory for booting and it is not volatile memory.2- I disabled DHPC from CubeIDE -> lwIP and specified a static IP. I don't have a ethernet input in my PC so I'm using a hub. IP addresses are as shown below:PC: 192.168.30.58HUB: 192.168.30.89 (I specified
Dear support,For a custom-developed board based on an STM32F407IGT6, I’m trying to migrate my code from STM32Cube FW_F4 V1.26.2 to STM32Cube FW V1.28.0. The purpose of migration was to test the new PTP feature, but also because STM32cubeIDE uses the latest firmware version with no other choice.The code needs to implement an HTTP server, so it uses the HAL library and LWIP without Free RTOS.With V1.26.2 it works well; I didn’t notice any issues. With the same user code but compiled with V1.28.0, the code not related to LWIP seems to work, I can even ping the board, but as soon as an HTTP client tries to reach the server, I cannot ping the board anymore and others LWIP features seems no more accessible.After some research, I found some topics on the forum about this (thanks to @Piranha, @DMårt and @MSG_ST for their posts):https://community.st.com/t5/stm32-mcus-embedded-software/http-request-to-stm32-lwip-results-that-ping-stops-working/td-p/144014/page/2and al
I have an eval board (Nucleo STM32U5A5) working with the CDC_ACM demo code (UCPD/USB_HS, which was written in 2021). I then created the CDC_ACM from scratch with the majority of IOC parameters's configuration copied over from the demo IOC and MOOC tutorial (for STM32H7xxxx); I noted many new parameters in the 2024 release, which I left untouched. I then copied over some USB code filename (using WinMerge) into new code (as suggested by MOOC for STM32H7xxxx). I refer to this as a new code/project. I found an issue with the static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx); it times out after the core reset: CSRST is not cleared in the new code. However, the demo code does. I have checked the RCC/PWR/USB/UCPD register flags (via SFR window) while under the breakpoint in USB_CoreReset and found all the same between the demo code and new code except the TYPEC_VSTATE_CC2 which shows 1 in the demo code but 0 in the new code. I have reviewed the datasheet and manu
Hi, two questions:1.- What config must set to PA11/PA12 pins? I set ALTERNATE FUNCTION (0x10) in MODER register, but what AF option must set? In STM32F373 manual there is no AF defined.2.- I configure USB device (clocks/gpio) and i can access to USB registers as ADDR,... but EPs seems inhibed? you know the reason why? Thanks a lot
Hello, I am running STM32G431 board with USBC PD feature.CubeIDE 1.14.1I am trying to bring up the UCPD stack.I refer the basic guideline:https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Getting_started_with_USB-Power_Delivery_SinkIt worked ideally.Next step I made 2 simple steps:Save Source capabilities (parse and display it on default thread): case USBPD_CORE_DATATYPE_RCV_SRC_PDO: /*!< Storage of Received Source PDO values */ memcpy(my_pdo_rdo_ctrl.pdo, Ptr, Size); my_pdo_rdo_ctrl.num_of_pdo = Size/4; b. Send request with my function (also on default thread): USBPD_StatusTypeDef USBPD_DPM_RequestMessageRequest_fix(uint8_t IndexSrcPDO){ USBPD_StatusTypeDef _status = USBPD_ERROR; USBPD_SNKRDO_TypeDef rdo; rdo.d32 = 0; rdo.GenericRDO.ObjectPosition = IndexSrcPDO; rdo.FixedVariableRDO.OperatingCurrentIn10mAunits = my_pdo_rdo_ctrl.pdo[IndexSrcPDO - 1].SRCFixedPDO.MaxCurrentIn10mAunits; rdo.FixedVariableRDO.Max
STM32CubeU5/Projects/B-U585I-IOT02A/Applications/FileX at main · STMicroelectronics/STM32CubeU5 (github.com).Here the example is to create the STM.TXT in the run-time /* Create a file called STM32.TXT in the root directory. */nor_ospi_status = fx_file_create(&nor_ospi_flash_disk, "STM32.TXT");But I have my pre-configured config.ini file and cacert.pem files and want flash them in stm32 How can inject them into the stm32 target? Could you please share an example of it?
HiI use STM32WB55CGUX with FREE_RTOS.I want to use SIGNALS with command such: osSignalWait, osSignalClear and osSignalSet.I see those functions in cmsis_os.h file but I see no implementation to those functions.There is a cmsis_os2.c file (instead of cmsis_os.c) and in this file there is no "SIgnal Management".What is wrong ?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.