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'm using 'CUBEIDE' / 'STM32F107VC'in deca_spi.c int readfromspi(uint16_t headerLength,const uint8_t *headerBuffer,uint32_t readlength,uint8_t *readBuffer){uint8_t spi_TmpBuffer[BUFFLEN];assert_param(headerLength+readlength < BUFFLEN ); // decaIrqStatus_t stat ;// stat = decamutexon() ; /* Blocking: Check whether previous transfer has been finished */while (HAL_SPI_GetState(&hspi1) != HAL_SPI_STATE_READY); HAL_GPIO_WritePin(DW_NSS_GPIO_Port, DW_NSS_Pin, GPIO_PIN_RESET); /**< Put chip select line low */ //HAL_SPI_TransmitReceive(&hspi1, (uint8_t *)headerBuffer, spi_TmpBuffer, (uint16_t)(headerLength+readlength), 10);HAL_SPI_TransmitReceive_DMA(&hspi1, (uint8_t *)headerBuffer, spi_TmpBuffer, (uint16_t)(headerLength+readlength)); //HAL_DMA_STATE_CHANGE(&hspi1); //HAL_SPI_STATE_BUSY_TX -> HAL_SPI_STATE_READY HAL_GPIO_WritePin(DW_NSS_GPIO_Port, DW_NSS_Pin, GPIO_PIN_SET); /**< Put chip sele
Hi Community, I am using a cross-compiled library with STM32CubeIDE which uses regcomp, regexec, and regerror methods and gives linker error while building.Is there a way to cross-compile the regex library separately and link it to the current project?Why is only regex.h distributed with toolchain and not with its definition?
I experience a strange problem with I2C, DMA and the latest STM32U575ZI-Q, not seen on L4 and H7 MCUs.After a successful data transfer from SMBus target (slave) to controller (host) the last PEC byte stays in RXDR registry. On the next transfer in the same direction this last PEC byte is read by DMA and placed in the allocated memory buffer as the first received byte. Interestingly, I2C interface does not seem to use this byte calculating PEC CRC so PEC error is not triggered at the end of the second transfer, just bytes in the receive buffer are offset by one. Explicitly reading RXDR register before transfer does not help. This may be a show stopper. I found no workaround and this problem may practically prevent the use of SMBus with DMA on STM32U5. I have not seen this problem on other MPUs, however, they have other I2C issues I have described recently - see: Missing STOP condition problem I2C, Incorrect PEC byte value after RESTART condition - hardware bug su
Hello, Every time I am using UART -1 of the same controller and its works fine, but for now I am using USB -FS and for that VBUS pin I am using for the VBUS sensing, Wher, this VBUS Sense pin conflict with the UART-1 which is the PA9 pin of the STM32H743VIT6100-pinn package controller. So that i used UART-2 for the debugging, but its not works, Why so,I am using STMCubeProgrammer for the same. and it has the latest version,the error messages are, Read errors Timeout error, in the STMCubeProgrammer, Not able to load the code also and the controller also not goes into the boot mode, where i have checked all physical connections, and rechecked with UART-1 then it gets works fine, But not works for the UART-2.Give me solutions on the same.
Hello,I have a project with a working implementation of the STL (X-Cube-STL).I recently updated my STM32CubeIDE to version 1.12.0 and everything worked as expected. Now when I open .ioc I get asked if I want to update the .ioc-file to the version 6.8.0.When I do this 2 things happen after saving the .ico file:The \Middlewares-folder (containing the STL, according to the user-manual) is deleted without a warning!The Eclipse project configuration (.cproject) is updated, especially following line is deleted from the build configurations. This breaks the build even when I re-add the Middlewares folder<entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="Middlewares/ST/STM32_Safety_STL/Src"/>My questions:Am I missing some new options I have to use, so the Middlewares folder is not deleted? I don't understand why my \Middlewares gets deleted, my \Doc-folder not.What is the new expected place for the STL?Thank you!Best regardsMartin
Hi,I'm running an "Ux_Device video" example on NUCLEO H723ZG", but it doesn't work in Uncompressed mode.My setup is:With stream2.h like source.Can someone help me with the configuration?... Where can I get information about this?Regards
Hello!I got a new STM32 Nucleo-H723ZG, now i am testing about many days, but i have a big Problem, is use the new Stm32CubeIDE 1.5.2 with actually Firmware for the MCU.The Problem is, i loaded a new Cube Project with Default Values, for the Board without any Changes, now when i run or debug my project, hangs my MCU on this Code:HAL_ETH_Init: /* Ethernet Software reset */ /* Set the SWR bit: resets all MAC subsystem internal registers and logic */ /* After reset all the registers holds their respective reset values */ SET_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR); /* Get tick */ tickstart = HAL_GetTick(); /* Wait for software reset */ while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U) { if(((HAL_GetTick() - tickstart ) > ETH_SWRESET_TIMEOUT)) { /* Set Error Code */ heth->ErrorCode = HAL_ETH_ERROR_TIMEOUT; /* Set State as Error */ heth->gState = HAL_ETH_STATE_ERROR; /* Return Error */ return HAL_ERROR; } }i got an H
Hi there ST!Could you please merge my PR: https://github.com/STMicroelectronics/STM32CubeG4/pull/39I noticed whilst working on some extremely high performance code using M4 intrinsics that rotates between AOS and SOA for computation using the __PKHBT and __PKHTB calls from CMSIS that the generated assembly looked totally wrong. Then I noticed that ST has modified the standard CMSIS cmsis_gcc.h header to remove the inline ASM definitions.In my particular case my PR improved the runtime performance of my entire application by 6.53%, which is a HUGE performance improvement that is hard to ignore.Thanks.P.S. why was this change made in the first place? Genuinely curious?
I have a 1Hz square wave signal with a 50 % duty cycle going into a pin on the MCU. The pin on the MCU (PA0) is configured to be TIM2_ETR via the STM MX Cube tool. I am expecting to go into TIM2_IRQHandler() every second, i.e. every positive edge of the external clock. However, I don't, I just go in TIM2_IRQHandler once just after startup. Any ideas as to why this is happening ?
Hi All,I connected STM32G081B-EVAL to my Laptop Type C port, it works.I can see the Laptop send below CMDs to STM32G081B-EVAL:VDM_DiscoverIdentityVDM_DiscoverSVIDsVDM_DiscoverModesVDM_ModeEnterVDM_ReceiveSpecificSame as https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Introduction_to_USB_Power_Delivery_with_STM329.11 How DP does it work on EVAL-G081 demonstration? I have a Type-C HUB(Dock), the HUB include USB 3.0 port, HDMI, etc..., the HUB can work when I connect to the Laptop.Now I try to connect the HUB to EVAL-G081, the power role work fine, and EVAL-G081 data role has changed to DFP from UFP. then I sent VDM Discovery Identity request by following CMD in my application:USBPD_StatusTypeDef _status = USBPD_DPM_RequestVDM_DiscoveryIdentify(USBPD_PORT_1, USBPD_SOPTYPE_SOP);the _status return value is 0, USBPD_OK. But I cannot get any response from the HUB.if I sent again this CMD, it will return 3, USBPD_BUSY. May I know ho
Hi FolksI am doing some test to see if it worth to start using AzureRTOS on a new system we're going to develop.I have a serial stream coming from a device (RTCM stream) that need to be read by a MCU and then sent over a UDP stream.The UDP/Net part is (almost ok), while i'm struggling a bit to port a uart manager i wrote in the past for FreeRTOS.The uart from the device is a bit tricky and i receive frequently fragmented packet that need to be reassembled to be correctly decoded by a parser.With FreeRTOS i used to do that with stream-buffers or queues , where UART DMA RX isr pushes in half and cplt events the received bytes on the streambuffer (or queue).If the amount of received bytes was not hit by the half or cplt event i have a last-byte timeout timer that when triggered just push the remaining bytes on the same streambuffer.As example, the uart receiveve was launched with size=64 in circular mode.Every half or cpltd events 32 bytes was sent to the streambuffer, and let's say that
Greetings,I am trying to read register 0x00 through 0x0F on an I2C enabled Chip (Si4703) I have got the reset set up and working but my I2C is not working as I am unfamiliar with the HAL protocols I have created a number of variable pointers to store data /* USER CODE BEGIN PV */ int16_t *DeviceID_ptr; int16_t *ChipID_ptr; int16_t *PowerCFG_ptr; int16_t *Channel_ptr; int16_t *SYSConfig1_ptr; int16_t *SYSConfig2_ptr; int16_t *ReadChan_ptr; int16_t *StatusRSSI_ptr; /* USER CODE END PV */ Fruther on in the main loop I am trying to get to read the data at just register 0x00 /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { buf[0] = DeviceID_ptr; /* USER CODE END WHILE */ // pass buffer as a character pointer //strcpy((char*)buf, "Hello!\r\n"); //HAL_UART_Transmit(&hlpuart1, buf, strlen((char*)buf), HAL_MAX_DELAY); //HAL_Delay(1000); // save return values of errors // transmit I2C values ret
Hi,I have two Nucleo F411 board. When I connect the board to the computer with the USB ST_Link, one automatically reset and the other no. I don't want that the board automatically reset. The HW configuration and program are exactly the same for the two board. The only change is that a board is a mb1136 c-04 (who reset) and the other is a mb1136 c-03 (who not reset).I examine the two board but don't see any difference.An idea to solve this problem ?Thanks,Lionel
Hi, I tried to do the Cellular:Cellular_X-CUBE-CELLULAR_How_To Wiki. But when I send the atcmd AT+QIRC to the modem. I get this error:AT+QIRC command FAIL(this was COPY PASTED)ORCMD : unknown command : AT+QIRC(this was self Typed-in)I would appreciate the help.Thanks in advance. Fazil
Hi,I use the ADC with DMA. The adc conversion is triggered with 20kHz.I would like to transfer my 4 adc values from interrupt HAL_ADC_ConvCpltCallback to a FreeRtos task.What is the best way to transfer adc values from HAL_ADC_ConvCpltCallback to FreeRtos task?Are there examples which I should check?I read about binary semaphores, queues.Thanks
I wish to configure my STM32 MCU (STM32G071RB) as an I2C slave device, and support I2C burst-write and I2C burst-read, in a similar manner to many I2C slave devices:(usually the RA value is incremented after every DATA byte)The I2C receive/transmit functions that are available in the file "stm32g0xx_hal_i2c.c" all require a predetermined buffer size.Is there a different I2C driver available for supporting burst write/read?If not, how would you recommend to implement this on the MCU?
I've noticed that STM32H743ZIT6 is divided in to three RAM regions (RAM_D1,RAM_D2,RAM_D3).So I want to expand one map region for example RAM_D1 and make it one. Like this:Can I do that? How can I achieve it because in console I get :
Not sure where to post a HAL bug report so posting here. Am using STM32F407zet6 in STM32CubeIDE latest version.The MX_TIMx_Init function generated by codegen causes a trigger event to occur for the timer. This means that if a timer is set to trigger in response to update from another timer then it will prematurely start during the codegen TIMx_Init functions if it was initialised before the master. This essentially means that successful timer synchronization when update is used as the trigger depends on the ordering of the MX_TIMx_Init codegen function calls.The reason for the trigger event is as follows:Let's say TIM1 is the slave and TIM4 is the master (As in my code):MX_TIM1_init is called. This sets the slave trigger bit in the register of TIM1 which starts it listening for trigger event from TIM4. TIM1 is not currently enabled (CEN bit of CR1).MX_TIM4_init is called.TIM4_CR2 register is initialized first with MMS bits set to 000, eg. Reset event is being used to send trigger outpu
I'm chasing down an issue with the RTC initialization code in the F4 HAL and noticed that it got fixed in 596e1d82f92e5821d7365262e2fb77e4482604b4 by ALABSTM before the 1.8.1 release, and the changes are in the 1.8.1 release commit.When I look at STM32Cube_FW_F4_V1.27.1, it is showing 1.8.1 in stm32f4xx_hal.c, but the modifications to the rtc code aren't there.It's been over a year since 1.27.0 was patched to 1.27.1. Did code get missed when 1.27.x was prepared?Thanks,Andrei (From The Great White North)
I was working with an example of the FW_F7_V_16.1 version and it works perfectly. When upgrading to version 17.1 I get an error "Error: Cannot Open USBHost.txt".Checking a bit I found that the difference is mainly in the files:usb_ctlreq.h and usbclreq.cI suspect the ParseCfgDesc & ParseEPDesc functions.However there are details I don't understand and I couldn't find out more.Searching in the community I found the link to update the version and coincidentally the above mentioned files, where an update is mentionedSTM32F746-DISCOVERY. USB HOST FS MSC not working. Application state never go to state "APPLICATION READY"We confirm the issue that is in USB Host library V3.4.1 and that was fixed in V3.5.0.STM32F7 CubeFW release still doesn't integrate USB Host V3.5.0, but you can get it here on GitHub and use it in your package to fix the problem.Future updates of STM32F7 package will contain V3.5.1.However I downloaded it and updated it in my project and the problem was correc
Hi,i have started this project using X-Cube-IOTA1 package and i added all libraries i need to replicate the same project example which is IOTA-Client. i manage to compile my version and run in the the STM32 B-L4S5-IOTA1 using freeRTOS, but the problem is, the program stuck (infinite loop, or hangs out) in the "WIFI_RESET_MODULE();" in "SPI_WIFI_ResetModule(...)" function, is hangs exactly in the HAL_Delay(500), if i lower the period to 10 it works also, if i keep the 500 period and remove the HAL_GPIO_WritePin(GPIOE, GPIO_PIN_8, GPIO_PIN_SET); (which is located just before that HAL_Delay(500)) also the program works. so i don't think it's a problem from HAL_Gettick() which happen to other ppl and it returns 0 all the time, it's not in my case, also the interruption of systick is fine, i spend days looking for answer but i couldn't find the correct solution.so if someone have a clue what's going on or what is the problem and how to solve it, i will be thankful, and if you need to see th
I soldered all the components to the PCB, then I was able to successfully upload the code to the microcontroller it is a simple program where I send every 2 seconds the key '4', simulating a keyboard. But when I connect my PCB to the computer, the computer sees it as a mouse and not as a keyboard, and instead of receiving the key '4' it moves the cursor every 2 seconds down.If someone knows what could be my problem it will be really helpfulThxs in advance.
Hello, i have imported a tcp echo server example, using the old stdperiph code. So far everything is working as expected. Apart from the original code, i've implemented my own function to send a custom string. But on the client side, for example if i send a comand string, i always get back the comand string and my custom response. Is there a way to disable the echo transmition? Here is my initialization code int main(void) { // stm32f427VGT6 - 256 kb RAM ; 1024kb Flash SetupClocks(); setup_led_pins(); DebugComPort_Init(); /* configure ethernet (GPIOs, clocks, MAC, DMA) */ printf("Program is starting....\r\n"); ETH_BSP_Config(); /* Initilaize the LwIP stack */ LwIP_Init(); /* tcp echo server Init */ tcp_echoserver_init(); /* Infinite loop */ while (1) { /* check if any packet received */ if (ETH_CheckFrameReceived()) { /* process received ethernet packet */ LwIP_Pkt_Handle(); } /* handle periodic timers for LwIP */ LwIP_Periodic_Handle(L
Hello,I am new to STM, I wanted to know, How can be FOTA implemented for STM32F446ZET6?are there any ready API's in the STM32 cube ide?And also, are there any points that can be looked into reference manual or datasheet for implementing this functionality?
Hello, when will the Functional Safety Manual for the STM32H5 be available?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.