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 have two doubts kind clear it.1) I want remove and dont want to build stm32mp135f-dk-a7-examples.dtb, so where can I remove example dtb which is selected from extlinux.conf?2) I want to mount my desired partition where and how it can be mounted?
Hello!I have a project that is not mine that have a pair of files called stm32h7xx_hal_timebase_tim.c and stm32h7xx_hal_tim.h. In the .c TIM8 appears but when i configure it in the MX for example like this:Anyone knows how to make these files using MX? thank you so much
Hi all,I am trying to write to SD Card through SDIO interface with DMA (1 data line) on a STM32F4 MCU on a custom made board. Configuration is done by CubeMX.When writing to one file at a rate of 200kBytes every 10 seconds, after some time (one minute to ten minutes), the driver fails in SDMMC_GetCmdResp1() (file stm32f4xx_II_sd.h) with error code SDMMC_ERROR_CMD_RSP_TIMEOUT.Following fixes have been tried out without success:Lowering the clock speed from 45MHz down to 1.4 MHzIncrease the timeout in SDMMC_GetCmdResp1() from 1ms to 100msEnable SDIO HW flow controlHas anyone experienced this issue? Is there a workaround? Thanks and best!
Hello,i have a question regarding the RM0444. On page 74 chapter 3.3.6, is mentioned the following:"During a program/erase operation to the Flash memory, any attempt to read the Flashmemory stalls the bus. The read operation proceeds correctly once the program/eraseoperation has completed."Does that mean the system bus is stalled or just the Flash memory interface?For example what happens if i have an interrupt, which is running from RAM, while the bus/Flash memory interface has been stalled because a Flash read operation has been executed while a Flash write operation is ongoing?Will the interrupt be handled whilst the Flash write operation is ongoing?Thanks in advance!Best regardsChris
Hi Folks,I'd like to find an example of accessing a USB drive using the STM32CubeIDE. I'm currently using the Nucleo-H7A3Zi-Q board.I believe I have setup the hardware correctly using the device configuration tool but I can't seem to find a simple or concise example on how to develop the code.I have downloaded the STM32Cube_FW_H7_V1.11.0 code and examples but it still seems more complicated than it should. I've looked at STM32Cube_FW_H7_V1.11.0\Projects\NUCLEO-H7A3ZI-Q\Applications\USB_Host\MSC_Standalone\ but I don't understand how (or what) to import into my workspace.For a start I just want to be able to write a "Hello World" into a file on the USB key.Anybody have a good tutorial or example I can use?Thanks,Richard
Hello,We are using a STM32F407 discovery board. We need to configure the USB as OTG/Dual_Role_Device. I have each (USB Host and USB Device) working in separate projectsIn CubeMX when I select OTG/Dual_Role_Device, the USB_DEVICE and USB_HOST are grayed out as well as the FATFS not having USB Disk as an option.Why is this?Any example out there?I did see this thread where the issue was also seen.https://community.st.com/t5/stm32-mcus-products/usb-otg-dual-role-selection-from-cube-mx/td-p/569876It appears from this that the OTG dual mode auto switching functionality between USB HOST and USB Device is have never worked - broken?Does anyone have any work arounds for this?Thanks for any help.Brent
Hello,I am new to STM32 parts and USB. We are looking at using USB to communicate between two STM32F407 boards.Can anyone give some insight as to the best way to do this?What USB classes should be used?Any examples of this?Thanks,Brent
Hello Community!I just started a new project and wanted to use CMSIS 5.9 - as it finally can be installed from the package without errors.Until now I only used CMSIS 5.7 als library, which worked pretty well. Unfortunately since 5.9 there is no library availiable, which could be included so I had to select "source" in the CubeMX Setup:CubeMX CMSIS SetupThe only difference to CMSIS 5.7 as I used it previously is, that I selected "source" for the DSP component and of course the version 5.9I wrote a simple test programm and tried to compile it. The result is a lot of missing dependencies:console outputit is e.g. complaining about:./Middlewares/Third_Party/ARM_CMSIS/CMSIS/DSP/Source/SupportFunctions/SupportFunctions.c:29:10: fatal error: arm_barycenter_f32.c: No such file or directory or../Middlewares/Third_Party/ARM_CMSIS/CMSIS/DSP/Source/SupportFunctions/SupportFunctionsF16.c:29:10: fatal error: arm_copy_f16.c: No such file or directory project treeif I open one of these files, it i
I have been using microSD chips reliably for many years with stm32f4, stm32h7 and stm32l4.But for one of my products, where space is at a premium, I am trying to use a SD-NAND chip XTSD04G, and I am running into occasional errors where an SDIO R1 command fails with SDMMC_STA gives the error CTIMEOUTThis only happens when I am running my system at maximum capacity (writing at 80kbits/s, with occasional reads interleaved). To reduce loading on the memory-chip, the majority of writes use SD_CMD_WRITE_MULT_BLOCK, writing 8kbytes i.e. 16 sectors of 512 bytes in each hit.The data-sheet for XTSD04G claims it is up to class 8, so that implies it should support 8MB/s (even if that were 8mbit/s I would be well within that limit). And it claims to support up to 50 MHz clock frequency, so the stm32l4's 48MHz clock should be fine. And for reference, yes I do use it in 4-bit mode.As I am not a paid-up member of SDIO, I only have access to their simplified specifications.Is there any guidan
Hi,I am using STM32G491 for the project. For USB HID class the Cube MX generates usbd_dec.c file. In this file, there is a Get_SerialNum functionstatic void Get_SerialNum(void){ uint32_t deviceserial0, deviceserial1, deviceserial2; deviceserial0 = *(uint32_t *) DEVICE_ID1; deviceserial1 = *(uint32_t *) DEVICE_ID2; deviceserial2 = *(uint32_t *) DEVICE_ID3; deviceserial0 += deviceserial2; if (deviceserial0 != 0) { IntToUnicode(deviceserial0, &USBD_StringSerial[2], 8); IntToUnicode(deviceserial1, &USBD_StringSerial[18], 4); }}so, is this code shall generates %100 unique serial numbers for every product?If it is not is there any alternative that shall generate a unique serial number?Best regards.
Hi guys,I have a weird problem with armgcc and the linker files. I took the linker file provided by st and extended it by external ram and two more sections for bss and data placed in external ram.Now this is the relevant snippet out of the linker file: _MEM_LD_DATA_EXT_LOAD = LOADADDR(.external_data); .external_data : { . = ALIGN(4); _MEM_LD_DATA_EXT_START = .; *(.external_data) INCLUDE custom_sections_data.ld . = ALIGN(4); _MEM_LD_DATA_EXT_END = .; } >ERAM AT> FLASH . = ALIGN(4); .external_bss : { _MEM_LD_BSS_EXT_START = .; *(.external_bss) INCLUDE custom_sections_bss.ld . = ALIGN(4); _MEM_LD_BSS_EXT_END = .; } >ERAM _MEM_LD_DATA_LOAD = LOADADDR(.data); .data : { . = ALIGN(4); _MEM_LD_DATA_START = .; *(.data); *(.data*); *(.RamFunc); *(.RamFunc*); . = ALIGN(4); _MEM_LD_DATA_END = .; } >RAM AT> FLASH . = ALIGN(4); .bss : { _MEM_LD_BSS_START = .; *(.bss); *(.bss*); *(COMMON); . = ALIGN(4); _MEM_LD_BSS_END = .; } >RAM ._user_heap_stack : { . = ALIG
I tried to use fopen() on STM32Cude IDE, but it is always returning null. Please let me know how I can use the file handing functions on STM32Cube IDE. Please see my code I am using. What printf() will do here?uint num;File *fptr;if ((fptr = fopen("C:\\newprogram.txt","r")) == NULL){printf("Error! opening file"); // Program exits if the file pointer returns NULL.exit(1);} fscanf(fptr,"%d", &num); printf("Value of n=%d", num);fclose(fptr);
As title says I'm trying to create an only one TCP server in a project based on FreeRTOS, HAL libraries, LwIP middleware and netocnn API. I want to develop a server capable to attend about 5/10 clients simultanously using the same port. I started testing the ST demo and then customizing the server thread. But this demo works fine for one connection. As the netconn services called by this thread are thread blocking, I wonder how can multiple connection be done. If demo is this:1.-server thread implementation:static void tcpecho_thread(void *arg) { struct netconn *conn, *newconn; err_t err, accept_err; struct netbuf *buf; void *data; u16_t len; LWIP_UNUSED_ARG(arg); /* Create a new connection identifier. */ conn = netconn_new(NETCONN_TCP); if (conn!=NULL) { /* Bind connection to well known port number 7. */ err = netconn_bind(conn, NULL, 7); if (err == ERR_OK) { /* Tell connection to go into listening mode. */ netconn_listen(conn); while
The STM32cubeIDE caan't be downloaded from the website, nor can an update be made through the installed version. Are they any serious in noticing and rectifying this?
Hello.I get a signal ranging from 0.5V to 1.8V in the input pin of the ADC.I wrote this code to store in ADC_Buffer (1024 elements) the values read from the ADC every 10ms (when Timer_Flag = 1) .. that is, every 10ms:- first thing first the whole buffer is filled (see the first "if" marked in blue in the picture) ... this operation happens only once- then (when it is full) in the green "if" each element of the buffer is shifted to the left by one position to free the last position of the buffer at the bottom right which, therefore, will store the new value read by the ADCThis means that (I measured it with my smartphone timer) the first blue "if" will last 10ms (timer interrupt) + 1024 = 10 secondsI ask how can I change/optimize the code to avoid waiting so long! There will definitely be a solution but programming for a short time I can't think of anything else.
Hello,I'm getting started with FreeRTOS for STM32h735, and with the IDE configuration, I can compile and run projects successfully.However, I want to use FreeRTOS Plus and additional libraries. The issue is that I can't configure it with the IDE. I've followed dozens of tutorials and read the getting started manual several times, but I can't seem to configure it properly to run a simple blink.Can anyone help me?Thank you very much.
Posted on February 03, 2018 at 14:54For a USB CDC device application I use STM32CubeF4. It works very well now.Now I need a second CDC channel, which paralel the 1st CDC transmits a data stream to the host.How do I create a second USB CDC instance with Cube and how is it used?I have set the parameter 'USBD_MAX_NUM_INTERFACES (Maximum number of supported interfaces)' to 2 in Cube, but this has changed nothing in the generated files except for the '&sharpdefine USBD_MAX_NUM_INTERFACES 2' in usb_conf.h.USBD_MAX_NUM_INTERFACES is used only once in the file usbd_ctlreq.c throughout the project.Is this even possible with Cube / HAL or do I have to venture the new adventure and switch to the ARM middleware library?There is in the description 'The USB Component allows multiple instances of the CDC class.'In the STM Cube documentation I did not find any indication that multi instanc CDCe is supported or not.#cube-stm32f4-multi-instance-usb-cdc-device #stm32f4-multi-instance-usb-cdc-device*
Hi Team,I am looking for the help to configure my STM32 MCU as Composite Device (MSC + CDC). I have gone through multiple blogs and examples available in ST community but none of the example shown me how to configure USB as Composite class (CDC + USB).I am using STM32F750x8 could you please help me on this by sharing some inputs?
While I copied several STM32 projects to an optical disk, the burner SW complained about too long paths. I have not checked the results, and my own files are what matters, but the backups may need some work before copying back to IDE.Is it possible to have simpler and shorter paths with IDE.
I have converted an analog signal with offset voltage through ADC to digital. Now I have an array of 1024 integer values. To edit this signal further, I need to convert the integer values to float. Then make this signal offset-free (by q15). I would appreciate it if someone would help me with this.
Hi there, using the callback function HAL_UART_ErrorCallback, I am receiving UART errors. However, what is odd is that handle->ErrorCode has 0 value always. That is, there is a mistake but no error code. I believe the STM32L431 UART driver contains a logical mistake.
Good afternoon,My quarry regarding Input Capture frequency in STM32F401re micro controller,I am measuring frequency by Timer1 configuration and Timer2 as an interrupt generator.in that i was not able to read the capture value from function "HAL_TIM_ReadCapturedValue(htim1, TIM_CHANNEL_1)"in this function: uint32_t HAL_TIM_ReadCapturedValue(TIM_HandleTypeDef *htim, uint32_t Channel){uint32_t tmpreg = 0U;switch (Channel){case TIM_CHANNEL_1:{/* Check the parameters */assert_param(IS_TIM_CC1_INSTANCE (htim->Instance));/* Return the capture 1 value */tmpreg = htim->Instance->CCR1;break;}case TIM_CHANNEL_2:{/* Check the parameters */assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));/* Return the capture 2 value */tmpreg = htim->Instance->CCR2;break;}case TIM_CHANNEL_3:{/* Check the parameters */assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));/* Return the capture 3 value */tmpreg = htim->Instance->CCR3;break;}case TIM_CHANNEL_4:{/* Check the parameters
Hi,I'm using a STM32WB55RG Nucleo and STM32WB55 USB Dongle. I programmed the nucleo as FTD and write 2 sources and programmed the usb as MTD and write 2 sources that exactly the same with FTD. I'm trying to send coap messages from FTD to MTD so this is my message flow Nucleo(as leader) --> USB (as end device). As I said I write my sources properly and test my code as both of them(Nucleo and USB) are FTD. It works but when I programmed the USB dongle as MTD, the usb dongle does not get the coap messages. I'm sending my messages as Multicast from FTD. How can I solve this problem?Best regards.
Hi, I am MURALI SELVAM I need one solution for STM32F103RCT6TR. Which is CAN pins in STM32F103RCT6TR IC. Kindly tell me. Thank you.
Hello to all,I have some problems running HS USB MSC device type on a STM32U5 using AZURE. After the program is running on my board, I see this new device on the Device Manager of my PC:"Azure RTO USBX storage dev USBdevice".But there are no hard drives visible in Explorer. I'm using a exFAT formatted SDCard of about 256GByte. The initialization of the SDCard completed well, and I have the IRQ for the DMA transfer fired without problems.I added this command inside the file usb_otg.c :void MX_USB_OTG_HS_PCD_Init(void) { /* USER CODE BEGIN USB_OTG_HS_Init 0 */ __HAL_RCC_SYSCFG_CLK_ENABLE(); /* USER CODE END USB_OTG_HS_Init 0 */ And I start the USB thread like this:static VOID app_ux_device_thread_entry(ULONG thread_input) { /* USER CODE BEGIN app_ux_device_thread_entry */ TX_PARAMETER_NOT_USED(thread_input); MX_USB_OTG_HS_PCD_Init(); HAL_PCDEx_SetRxFiFo(&hpcd_USB_OTG_HS, 0x100); HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_HS, 0, 0x60
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.