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
Hi I want to communicate azure iot hub using cellular modem. I have bg95 mini pcie evm kit, need to interface with stm32u585 controller. which software package I have to take for reference and how to configure in code side so that stm32u585 will send the AT commands using BG95-m3 cellular modem.Thanks & Regards,Amol Chor.
Hello,I work with STM32G070RBT. I upgrade FW to STM32Cube_FW_G0_V1.4.0.These definitions have disappeared from the file stm32g070xx.h: #define RCC_CFGR_SWS_HSI (0UL) /*!< HSI used as system clock */#define RCC_CFGR_SWS_HSE (0x00000008UL) /*!< HSE used as system clock */#define RCC_CFGR_SWS_PLL (0x00000010UL)
dfu-util is an open source DFU memory reader/writer.I ported the source to Windows 10 x64.Worked fine, downloading firmware, to STM32H7B3I DISCOVERY board.Fails with STM32H7B3I EVAL board, apparently because the EVAL board identifies itself as three separate DFU devices, unfortunately with identical serial numbers:Found DFU: [0483:df11] ver=0200, devnum=62, cfg=1, intf=0, path="1-6", alt=2, name="@OTP Memory /0x1FF7000/01*1024 e", serial="FFFFFFFEFFFF"Found DFU: [0483:df11] ver=0200, devnum=62, cfg=1, intf=0, path="1-6", alt=1, name="@Option Bytes /0x1FF8000/01*128 e", serial="FFFFFFFEFFFF"Found DFU: [0483:df11] ver=0200, devnum=62, cfg=1, intf=0, path="1-6", alt=0, name="@Internal Flash /0x08000000/256*02Kg", serial="FFFFFFFEFFFF"Any easy way to resolve this with dfu-util?Or do I need to "educate" dfu-util in the matter of "alt", which varies with memory region?
Hello,I need to map two different programs (a custom bootloader and the application) in the memory space of my STM32G0, as described in figure.The bootloader should start at power-up, then check the application CRC and eventually jump to it.Both in the bootloder and in the application, I need to remap the interrupt vector table.Where can I find some documentation to do this, in the correct way?Thank you,Carlo
Hello!After two week of struggle I understood that this problem is beyond my abilities. I have a NUCLEO-H7A3ZI-Q setted as USB Host. I connect a MIDI Keyboard and the Host start the communication, gets all the descriptor and then start the parsing phase to define the device descriptor, the configuration descriptor, the interfaces descriptors and then the END POINTS descriptors. It works, but it can't parse the last END POINT so the code never get out of a while loop. Before showing the code and the configuration settings, I have to say that I have used an USB sniffer to check that the end point really exist. It exist and is normally read by the PC. So it's not a device problem.Ok, let's see the settingsHonestly except for the buffer size (which is at the maximum 256 byte) i think that there aren't wrong settings here because it communicates.Below I have drew the structure and the values of the device descriptors from the three interfaces to the four end points. (The interface [1] has n
I am working with the STM32F429AGH6 card, at first I had some problems to flash it, I managed to solve it using the boot mode 'hot plug' and I loaded a program that was sure to work and everything was perfect, then I tried to load a modified program which only added a new structure, but the card when I reboot it, no longer stays on more than half a second, and does not allow me to reprogram it if it is not on, so I am looking for a way to delete the loaded program or reboot it.
I'm bringing up a PD source and it will successfully negotiate an explicit contract, but if the source is unplugged and plugged back in, it will still negotiate correctly, but the PE will request a hard reset causing one to be sent 256 ms after PS_RDY message. Timing is consistently 255-256ms (the PE task returns a delay of 255 then resets). The source continues in a cycle of hard resets until power is cycled to the board or it is reprogrammed. I have confirmed that this originates from the PE and not the DPM or the sink. I cannot provide a trace using ST's utility as we are moving to an in house implementation of the DPM. The PE task is suspended and USBPD_PE_StateMachine_Stop is called on disconnect. These USBPD_ParamsTypeDef structure members are reset on disconnect to these values: .PE_SpecRevision = Settings().PE_SpecRevision; .PE_PowerRole = Settings().PE_DefaultRole; .PE_SwapOngoing = USBPD_FALSE; .ActiveCCIs = CCNONE; .VconnCCIs = CCNONE; .VconnStatus = USBPD_FALSE;USBPD_PE_Sta
Hi, I'm doing a project which sends CAN data from B-G431B-ESC1 board to sth else(NI cRio).Just to make sure, do I have to set CAN TERM Pin(PC14) high by setting it GPIO_OUTPUT GPIO output level : High or is it high by default?I don't understand what this means : B-G431B-ESC1 includes this terminator resistor (120 Ω) and it is manageable by firmware (CAN_TERM pin) with a low voltage single-pole-double-throw analog onboard switch (see the CAN page on the electricalschematic)thanks
I was looking at example HTTP IAP server provided in STM32F2xx package.\STM32Cube\Repository\STM32Cube_FW_F2_V1.9.3\Projects\STM322xG_EVAL\Applications\LwIP\LwIP_IAP\Src\httpserver.cIn http_recv, received data is extracted on every chunk of data from p->payload assuming len = p->tot_len == p->len. If I'm not wrong, p->tot_len might be more than one pbuff (i.e. more than one p->payload).Shouldn't routine pbuf_copy_partial used instead of accessing directly to payload field?I mean, something like:received_bytes = pbuf_copy_partial(p, getCmdBuffer, p->tot_len, 0);
Hi team; We have selected Trust zone MCU STM32U585ZIT6Q (U5 series) for our project.We are using with Trust zone enable in our project.we have a query regarding the X-CUBE-CLASSB-U5.We have taken library of X-CUBE-CLASSB-U5 and test example code in STM32CubeIDE and its working fineBut in our case all peripheral are in Non secure zone.and X-CUBE-CLASSB-U5 library is in Trust zoneso we have below queries1) Can we use X-CUBE-CLASSB-U5 library in non secure zone2) If we use X-CUBE-CLASSB-U5 in secure zone then will it hold our thread execution from non secure zone, while control goes to secure zone for STL functions?3)if my peripheral is non secure side so how to check this peripheral through STL libPlease guide us for same.Thank you.
Hi,i have a question regarding the functional safety manual /safety mechanisms for the STM32F4 (and others with a similar functional safety manuals/mechanisms).A lot of SMs address transient, random faults, e.g. (refering to document UM1840):- CPU_SM_2 "Double computation in Application software"- BUS_SM_1 "Information redundancy in intra-chip data exchanges"Wouldn't these transient faults be covered when one would use two MCUs? The propability of the same transient fault happening in both MCUs should be near zero.Nevertheless does the document require two MCUs and the mentioned SMs to achieve SIL 3 rating (chapter 3.2.4 in UM1840). Why are two MCUs in 1oo2 not enough protection against transient faults?Greetings!
I thought I was the only one wondering how to implement DMA, but it seems to be different. I found this post, and found it interesting how the topic was addressed:To be honest, this was not a post I was planning on at first. However, I was working on a side project that I needed to use DMA for, and getting it to work with the HAL was thus far the most painful experience I faced in embedded Rust. As a result, I figured I must write about it hoping it would benefit others. What was quite interesting was that, compared to other STM32 peripherals at the HAL, DMA was a different animal. Typically when I struggled with figuring stuff out or finding proper documentation I used to cross over to other STM32 HALs to find insight as there were many similarities. This was not the case for DMA as each HAL seemed to have its own way of doing DMA implementation.https://dev.to/apollolabsbin/stm32f4-embedded-rust-at-the-hal-dma-controllers-daf
I've worked out how to disable in the MEMs microphone I just want to use the blue 3.5mm input to receive/record the incoming audio. Thanks.
I have been trying to implement SD card function using SDMMC1 onto the STM32F746G-DISC0 dev board in my custom code which uses FreeRTOS and the TouchGFX. These later functions are working fine, however after mounting the SD Card, any other FatFS functions fails.Currently I cannot get past f_mkfs() due to an error I traced to disk_write() in diskio.c. It return an error 1 which is:RES_ERROR, /* 1: R/W Error */The FatFS function, f_mkfs(), in the next layer up (ff.c), return as error code 1 which is:FR_DISK_ERR, /* (1) A hard error occurred in the low level disk I/O layer */My current setup is: STM32F746G-DISC0 (C01) dev boardFreeRTOS (CMSIS_V1) Version: 10.2.1(according to CubeMX)SDHC 8GB, SDHCi 16GB (both have the same issue)STMCubeIDE Version: 1.5.0STMCubeMX Version: 6.1.0FatFS Version: R0.12c (according to CubeMX)In CubeMX I have set the SDMMC clock to 48MHz in Clock Configuration with SDMMCCLK clock divide factor set to 0 (was default). DMA, Interrupt and uSD_Detect with pull up
This is my code in the SPI slave: #define SPI_PACKET_LEN 8 static uint8_t spiRxBuf[SPI_PACKET_LEN]; static uint8_t spiTxBuf[SPI_PACKET_LEN]; void task() { // spiTxBuf has all zeros, but the master sees "00 00 00 00 FF FF FF FF" HAL_SPI_TransmitReceive_DMA(spiHandle, spiTxBuf, spiRxBuf, SPI_PACKET_LEN); for (;;) { if semaphore acquired { HAL_SPI_TransmitReceive_DMA(spiHandle, spiTxBuf, spiRxBuf, SPI_PACKET_LEN); } } ... Only the first 8 bytes is weird. This is the message the master can see for the first message: 1600672090.098 TX: FC 00 00 00 00 00 3C 14 1600672090.100 RX: 00 00 00 00 FF FF FF FF When I use "interrupt", the RX are all zeros. Why is that in DMA?All the rest message are working fine. Only the first RX is weird. I uses only 8 bytes message all the time.
Hi FolksI have few question about HTTP server if someone here in the started playing with it.As i have plenty of flash on the MCU i opted to store a simple html page directly on the mcu flash memory (like done with mkfsdata.exe on LWIP).Streaming out the payload is not a problem however seems i can't generate the correct http headers.For streaming out data i do : if ( strcmp( resource , "/jquery_3.6.0.min.js") == 0 ) { size_t i = 0; size_t size_html = sizeof(data__jquery_3_6_0_min_js); size_t send_size = 0 ; while ( size_html != 0) { if ( size_html < 512 ) send_size = size_html; else send_size = 512; nx_web_http_server_callback_data_send(server_ptr, (void*)&data__jquery_3_6_0_min_js[i], send_size ); size_html -= send_size; i+=send_size; } return(NX_WEB_HTTP_CALLBACK_COMPLETED); I tried the approach of sending the payload by calling the _nxe_packet_data_append and then the nx_web_http_server_callback_packet_send&nb
Hi guys, I'm hoping to find a wizard at FatFS who can help me. So my current set up is, stm32f446re microcontroller, with this micro SD card adapter, I have two SD cards at my disposal, a 2GB Sandisk card and a 16GB Samsung SDHC card. Both cards have been formatted to FAT/FAT32. Communication through SPI.I have followed this tutorial by controllerstech, however the tutorial uses FatFs version R0.11 whereas my version of STM32CubeIde has version R0.12c.So after adding the file "fatfs_sd.c" to my source folder (as the tutorial requires), and modifying the Chip Select pin to match my project, I added the sample code to test reading/writing a simple text file. However, the first instruction is to mount the drive, modifying the sample code to this:<< fresult = f_mount(&fs, "", 1); >>I get the result FR_NO_FILESYSTEM stored in fresult. After debugging, the initialisation works correctly, but when find_volume() function gets called, which in turn calls check_fs() function (loa
Hello,does it exist a compiler and a linker manual for STM32, where I can find, for example, a clear description of the usage of the __attribute__() keyword, or instructions to modify the linker script file?Thank you,Carlo
I try to interface the SX1262MB2CAS Lora module with STM32F103 board.I need to support software for transmit and receive function.Otherwise you have example code, kindly send that.
Hello,I am setting up just a simple task with a timer in CMSIS V.2 that triggers a periodic call of a callback function.Despite the fact that I am including "cmsis_os.h", which is part of my project, I get the linker error "undefined reference to `osTimerCreate'".Does anybody have an idea other than "switch to CMSIS V.1"?Thanks in advanceWilfried
Hello, I am trying to send ADC data (12 bit) to pc with USB as fast as possible. Now I am using STM32F405 and configured ADC like picture below. Those data of ADC is transfered to the pc by interrupt of DMA which is cirucular mode. And the data transfer rate is around 10k bps. Is this reasonable value? Is there better way to transfer faster than this ?
Hi All,I've succesfully implemented an HTTP WebServer into our application running AzureRTOS on a STM32F429.I'm now moving to data transfer over HTTP, in order to have a Web page (entry point) for transfering a binary file (encrypted) to remote update the board on the field.The flow is something as follow:Web Page -> load file (encrypted) -> save file payload in binary on ext flash (in raw, no FS).Then issue a reboot (bootlaoder will read the file & calculate the crc) and then flash the MCU if everything match.In order to transfer correctly the file i had to enable NX_HTTP_MULTIPART_ENABLE , but i was wondering if there's a good point to start with some example (docs are not so exaustive).Right now for receving the file i do : UCHAR buffer[1440] = { 0 }; if ( strcmp(resource, "/upload.php") == 0 && request_type == NX_WEB_HTTP_SERVER_POST_REQUEST ) { ULONG len = 0; ULONG offset = 0; fwu_start(); while( nx_web_http_server_get_entity_header(server_
#0 0x0800add0 in HAL_Delay (Delay=2) at Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c:378#1 0x0800b9ec in SDMMC_PowerState_ON (SDMMCx=0x40012c00) at Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_sdmmc.c:316#2 0x0800c4fe in HAL_SD_InitCard (hsd=0x2000643c <hsd1>) at Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sd.c:428#3 0x0800c46c in HAL_SD_Init (hsd=0x2000643c <hsd1>) at Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sd.c:379#4 0x08021d9e in BSP_SD_Init () at FATFS/Target/bsp_driver_sd.c:58#5 0x0800ed46 in SD_initialize (lun=0 '\000') at FATFS/Target/sd_diskio.c:156#6 0x080169f4 in disk_initialize (pdrv=0 '\000') at Middlewares/Third_Party/FatFs/src/diskio.c:60#7 0x08019498 in f_mkfs (path=0x20009f5a <SDPath+2> "/", opt=7 '\a', au=0, work=0x2004fdcc, len=512) at Middlewares/Third_Party/FatFs/src/ff.c:5334#8 0x08005a34 in main () at Core/Src/main.c:173
Hi,I am using the STM32H747I-DISCO board and B-CAMS-OMV daughterboard with integrated OV5640 image sensor to test out using a camera on an MCU. I have been using this example as the base code I am working with but have modified it to communicate image data externally instead of just showing up on the integrated LCD: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/STM32H747I-DISCO/Examples/DCMI/DCMI_SnapshotModeI have been successfully capturing images at the example 320x240, 480x272, and 640x480 resolutions. However, when trying to use the example 800x480 resolution, I am not able to capture an image. With the other resolutions I can see I am getting callbacks to BSP_CAMERA_LineEventCallback() and BSP_CAMERA_FrameEventCallback() as data is transferred via DCMI to SDRAM. With the 800x480 resolutions I get no such callbacks, giving the impression that the capture silently hangs.I've tried to look for any errors that may be generated during configuration of the came
Does the latest version of the driver of STM32F103 supporting USB audio and CDC composite device functionality?I want to use the USB interface of STM32F103 to develop the functions of USB audio and CDC composite devices.I have a question, is the latest version of the driver supporting USB audio and CDC composite device functionality? If supported,please let us know how to implement it.Thank you。
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.