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
HiI'm using HRTIM in STM32G474RE to generate a complementary PWMs and trying to capture the frequency of the PWMs by using the capture 1, the trigger sources is "The update event triggers the capture"However, when I was debugging the code, the value of CPT1x is always zeroI guessed the capture function does not work, could you please help me to figure out what's going wrong? Thank you
Hello,I am using a sTM32L430 with a JTAG access throgh ST LINK V2 and STM32CubeIDE. The project has a few GPIO to debug and an USART to generate interrupts: To try to undersand my problem I build a small project with STM32CubeMX to have code genrated by STM and not by me.I added a few code to remove data from the USART BX buffer and to toggle debug pins. void USART3_IRQHandler(void) { /* USER CODE BEGIN USART3_IRQn 0 */ int val; /* USER CODE END USART3_IRQn 0 */ /* USER CODE BEGIN USART3_IRQn 1 */ LL_GPIO_TogglePin(GPIOH, LL_GPIO_PIN_0); val = LL_USART_ReceiveData8(USART3); //read byte to clear RXNE flag val++; /* USER CODE END USART3_IRQn 1 */ }int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG); LL_APB1_GRP1_EnableClock(LL_APB1_GR
Hello,I am currently writing a program that will delete the bootloader, which is stored in 24 flash pages (Bootloader begins at 0x08000000, the program itself begins at 0x800C000).Pages 1-11 & 13-23 can be easily erased. Now the problem is, the page 0 and 12 cannot be erased without error. Code goes like this (same for page 12):flash_erase(0,1);from flash_erase() into --> HAL_FLASH_Unlock();HAL_FLASHEx_Erase(&erase_param, &err) //erase_param contains the right page and bankfrom HAL_FLASHEx_Erase(&erase_param, &err) into --> FLASH_PageErase(page_index, pEraseInit->Banks); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); //That's where the program gets stuck. The page erase still worked, I can see it in the device memory. But there's this error that I can't track down any further.This is the debug call stack:Thread #1 [main]
Hello everyone, I need some advice, I have a stm32h750B-DK, I've got my httpd through. If I want to send data to the database, what do I need to study? I want to use httpd + database to save data.
Hello,I am using a sTM32L430 with a JTAG access through ST LINK V2 and STM32CubeIDE.This project was created with STM32CubeMx and mainly contains a while(1) loop toggling a led.After a power the program starts correctly (led toggles and current consumption is around 2mA)After a reset the program does not start and the current consumption is around 16mA.I checked the reset signal state with an oscilloscope and the waveform is correct.Do you have any idea?Best regardsMich
Hi I am using ISM330DLC sensor and after passing the raw values to the motion_FX library i have got values which are stable but i have found resolution of sensor is varying upto 0.6 how can i improve the resolution of sensor.Thank you!!!
HI, firstly im new into subject of STM32MCUs. I made my own board based on STM32F2 MCU. I have configured 2 interrupts one based on TIM 11 and one on Button placed at pin 40 (PC9). It is simple code including blinking LED every one second and switching different LED state after pushing button. I will pass my NVIC configuration in screenshots. I discovered that pushing button executes EXTI9_5_IRQHandler() when button is pressed but does not call for HAL_GPIO_EXTI_IRQHandler() innside function mentioned above. I discovered it by placing funcion to toggle LED in EXTI9_5_IRQHandler(). Timer interrupt of courese does not work either. I have no idea what is wrong. /******************************************************************************//* STM32F2xx Peripheral Interrupt Handlers *//* Add here the Interrupt Handlers for the used peripherals. *//* For the available peripheral interrupt handler names, *//* please refer to the startup file (startup_stm32f2xx.s). *//*******
Hi, I'm using a STM32F303 with 10 independent analog input channels connected to ADC1 and ADC2 (5 channels per ADC).What I'd like to achieve is a software triggered scan of all 5+5 channels in one go and have the result copied to memory using DMA. So I went with 'dual regular simultaneous mode' where ADC1 is master and ADC2 is slave.However, the callback functions HAL_ADC_ConvHalfCpltCallback and HAL_ADC_ConvCpltCallback never get triggered.I've tried all combinations in ADC settings without any change - except that when using continuous mode the callback functions do get triggered. However that's not what I want - I need only one scan of all channels with the result in memory. Seems I'm lost in the rather confusing ADC settings again.This is how my board initializes - note that DMA is initialized before ADC1 and ADC2: /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_DMA_Init(); MX_ADC1_Init(); MX_ADC2_Init(); MX_USART1_UART_Init();&n
Good evening evryone,I'm actually working on a NUCLEO-H743ZI2 evaluation board and my objective is to develop an mTLS socket via UART.I've configured the UART for working with circular DMA for data reception, and let RTS/CTS works "automatically" (enabled from STM32CubeMX). At every bytes received on UART, RTS signal goes high level and after returns back to low level, and it's correct as reported on RM0433.But I was expecting that RTS was put high also if serial data consumer process is slow and reception buffer (the buffer communicated during data reception start to the DMA: HAL_UART_Receive_DMA(&huart2, DMA_FIFO, DMA_FIFO_SIZE) is full or almost full.Since the mechanism doesn't work "automatically", at the moment I've configured UART for manipulate only CTS signal, the RTS signal instead is configured and moved "manually" by myself:- when space left in DMA_FIFO is below a certain threshold value (for example 1/5 of DMA_FIFO) RTS signal is put HIGH level.- when space l
Hi, I'm trying to get the FP-AUD-AEC1 v1.2.0 acoustic echo cancellation demo application to work.I have a NUCLEO-F446RE board, an X-NUCLEO-CCA02M2 expansion board and an X-NUCLEO-CCA01M1 expansion board.I programmed the NUCLEO-F446RE board with the STM32F446-Nucleo_AEC.bin binary from the STM32Cube v2.1.0 software.I made the modifications to the extension boards as described in the "getting started manual".When I connect the X-NUCLEO-CCA02M2 card to the NUCLEO-F446RE card and the 2 usb cables to my Windows 10 PC, my PC detects a new sound input/output called "STM32 MIC + LOUDSPEAKER".But when I try to record this input with audacity it doesn't work (recording never starts).And if I add the X-NUCLEO-CCA01M1 expansion card (as shown in the photo in the "Quick start guide"), the sound input/output is no longer detected by my PC and the STM32CubeProgrammer can no longer connect to the card.Do you have any idea why I can't get the demo application to work? Thanks in advance, Pascal
Hi,I cannot download the latest packeges for the H5 MCU-s. From cube IDE I got the error as the attached picture. I got error also from browser from here: https://www.st.com/en/embedded-software/stm32cubeh5.html
Hi,I was wondering if I can get some feedback on the following project, mainly if the requirements I have are feasible?I was thinking on using an STM32F4 or STM32F7. The project consist of the following parts:An external DAC that is controlled through I2S by the MCU. Data will be read from the memory of the MCU and played by the DAC. The sample rate is 48 kHz, 32 or 24 bit. DMA will be used to send data to the DAC through the I2S interface.Concurrently, an external ADC will be read out by the MCU through SPI (also using DMA). The ADC will be a 24 bit ADC with 8 channels, read out at a sample rate of 16 kHz. 400 ms of data will be gathered at a time, resulting in `8 ch * 32 bit (I assume the DMA will use 32 bit instead of 24 bit?) * 16000 samples / sec * 400 ms` = 1638 kbit. The datarate will thus be 4096 kbit/s. There are several options to where the data will could be written:Data written to external memory. Possibly an SD card with SDIO. Could this be achieved through DMA (
we're using STM32L412RB microcontroller and it has 2*12 bit ADC and our project requires 8 bit resolution, in this controller can we configure the resolution from 12 to 8 bits?
Hi:Now, I am using STM32C031. When debugging UART, it works normally when the optimization setting is set to -O2 or -O3, but fails to work when set to -O0 or -O1. Finally, it was found through checking the registers that the UART baud rate was not set effectively when optimization was set to -O0 or -O1, and the UART baud rate setting used an inline function. Can it be explained whether there is any correlation between optimization and inline, and why setting optimization would cause UART initialization to fail? The code as follow:__STATIC_INLINE void LL_USART_SetBaudRate(USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t PrescalerValue,uint32_t OverSampling,uint32_t BaudRate){uint32_t usartdiv;uint32_t brrtemp;if (PrescalerValue > LL_USART_PRESCALER_DIV256){/* Do not overstep the size of USART_PRESCALER_TAB */}else if (BaudRate == 0U){/* Can Not divide per 0 */}else if (OverSampling == LL_USART_OVERSAMPLING_8){usartdiv = (uint16_t)(__LL_USART_DIV_SAMPLING8(PeriphClk, (uin
Hi,I am attempting to implement HTTPS on STM32 using CubeIDE, but it seems that there are no libraries available for this purpose. Is it possible to achieve this on STM32 using wolfSSL or any other alternative?This is for study purposes; therefore, if necessary, I am open to changing the MCU to STM32H743ZI2.
Hello,I am following this guide, https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Getting_started_with_USB-Power_Delivery_Dual_Role#Clear_the_pinout, and am unable to get the device to appear in the board selection window of the UCPD monitoring software.I can see the tracer port communication, just not the board selection. Everything else appears to be working. It is able to successfully negotiate 5V contracts as both a source and sink.The guide indicates I should be able to see it in the board selection window. Not sure how to diagnose this. I have double checked I have _TRACE and _GUI_INTERFACE compiler flags present.
I wanted to understand the behavior of software that I see.There is a macro that has a few no-opsThere is #pragma optimize=speed high in the codeIs my understanding correct that #pragma is enforced after preprocessor expands the macros?So I think because of the optimization setting, those no-ops will be optimized out, am I right?
Hi,In the datasheet --> https://www.mouser.com/datasheet/2/389/teseo_liv4f-3011072.pdf"IRNSS constellation ready"&"2.5 IRNSSThe Teseo-LIV4F is ready for IRNSS using a dedicated firmware." is mentionedFrom where can we get the IRNSS / NAVIC supporting firmware. Is it part of "en.teseo-liv4f-_4_6_2.7z"?Thanks in advance.BR,Milind
Posted on August 18, 2017 at 11:27i am working with STM32F446RE in a custom board and my Cube MX version is 4.22.0 and CubeF4 version is 1.16.0i want to send large data from USB HS in CDC class to PC.i don't change any cube parameters except Enable IP Internal DMA that i set this enabled.the code that i used to send data is:&sharpdefine TEST_PACKET_LEN 1024uint8_t test_buff[TEST_PACKET_LEN];while(1) { while(CDC_Transmit_HS((uint8_t*)test_buff,TEST_PACKET_LEN)!=USBD_OK); }this works.but when i change the TEST_PACKET_LEN to 2048 first packet would be sent but after it USB TX busy will never reset and code loops on inner while.i check the code and see that no interrupt occurs on OTG_HS_IRQHandler.i guess this is a driver bug.can any one help me?
Hey STM32 experts, Working with the STM32F446RE, and I've got a couple of quick questions: How many microphones can the F446RE synchronize concurrently? I've got the STEVAL-MIC002V1 and NUCLEO-F446RE in the mix, aiming for 6 mics total. Any insights on the synchronization capacity? Noticed no example firmware for F446RE, but there's one for F401RE. Are they compatible, or is a tweak needed? Appreciate any quick tips or experiences!
Hello Sirs, I am developing a project, a portable device, which attached a 12.6 V battery pack. The device can be power on both the battery pack and a 100W PD adapter. There are a power management IC to organize and select the power path dynamically. Right now, every works fine, except the orientation of the type C detection.If attached the battery(not dead state), only one orientation works normally, i.o. out put 20V, another orientation only output 5V, that is the default PDO value. It seems only CC1 or CC2 can be detected. But if i removed the battery pack, two orientation both works normally. CC1/CC2 can be detected clearly corresponding to each orientation which I changed, plug/ unplug with a different orientation for the type C. My question is that when there are a battery(or battery pack) attached, is that dead battery signal must be enable? The problem What I met is related with the i have not enable the dead battery signal? Could somebody have experience on this topic? Thank
Hi, I have a device using an STM32U575 and I'm using the internal RTC to keep date and time, due to it being battery operated it goes into shutdown mode for most of it's operating time. The problem I'm having is that the RTC loses it's date and time values in shutdown mode, I tested putting it in standby mode and everything works.The datasheet and reference manual both say that as long as the clock source for the RTC is the LSE, it should keep working even in shutdown mode, so I'm really confused with this behavior.I'm still testing a couple of things to see what could be missing/added, as it is a very complex project and someone in the team might have added a line somewhere they shouldn't have or something like that.Note.: I can give bits and pieces of the code pertinent to the RTC, but cannot give too much of the code due to it being from work.Any help you can give will be very appreciated. Thank you in advance.
Hello everyone,I'm new to the forum and also new to the ST Community. I'm currently working on a project where I need to implement SNTP on the H7 series microcontroller using LWIP.I have gone through the LWIP documentation, but I'm still unable implement SNTP. I have generated all file and configured them but still no output. Can someone please guide me on how to get started with this?. I have already checked other post for SNTP but still unable to understand what steps to take.Any help or pointers would be greatly appreciated. Thank you in advance!"
Hello everyone, I hope you are doing well.We downloaded STSW-ST25R017 library to use ST25R95 in our new product.The projects in this library are based on STM32L476RG-Nucleo board.Our MCU is STM32F405RG, Is there a straightforward way we can replace STM32F405RG library with STM32L476RG library or we have to generate new CubeIDE project?Thanks in advance.Best regards.
Hello,I have project with h ttp server working but now I need to add Websocket protocol to display some data in a real time. I need to make WS server on my STM32. Unfortunately I didn't find any working example of WS protocol on STM32 implemented. Do you know any? Or can you give me any hints how to start with this topic? Thank you for any help.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.