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
Hello *,I'm currently trying to use a micro-sd card breakout board on my Nucleo-H743ZI to store some data using the SDMMC interface and the FatFS middleware v0.12c (The breakout board is just here for the pull-up resistors on the lines).I've setup the SDMMC1 interface without any IT or DMA, and a clock running at 25 MHz from a PLL divider.So my problem is that, during the Init phase (1-bit SD mode running at 400KHz max) the "basic" commands that receive a response on the CMD line are fine, but as soon as I run an ACMD (CMD55 followed by CMD13 is my first problem), the R1 response is read, but then the data that is supposed to be read is never read in the FIFO, thus blocking the polling loop.I've seen on the scope that the command, R1 response and D0 line have content on them and that the CLK line is less than 400KHz (but close enough).I've checked the DPSM with a breakpoint just after the ACMD13 is sent, and the registers indicate that the state machine is not in Idle, so I guess it sh
I am interested in developing Alexa built-in device using your solution mentioned in the Link.But this link also mentioned that "Amazon decided to maintain AVS for IoT system for existing products only. This solution can’t be used to develop a new product. Please contact Amazon for more information on AVS services." and also 'STEVAL-VOICE-UI' design in NRND. Also, it seems like 'AVS Integration with the AWS IoT' is deprecated by amazon and 'avs-device-sdk' is too big for MCU.So do you recommend any alternate design or software SDK available which I can use for my application?
I am experimenting with an STM32F3348-DISO board. A waveform is generated using the timer TIM6 update event and DMA channel 3 (cyclic mode). At the same time, I am using an ADC to read the same waveform into a dedicated buffer (DMA channel 1), and the events are triggered by the same timer, TIM6. I run the HAL_DAC_Start_DMA() only once and the HAL_ADC_Start_DMA() in a loop, every two seconds.So far so good. The only problem is that as soon as I even just define the HAL_ADC_ConvCpltCallback(), the DAC stops outputting the waveform, and I can just see a constant DC value. Could it be that defining (and consequently calling) the callback interferes with the DMA, even on other DMA channels? Does the HAL_ADC_Start_DMA() "think" something like: All right, we call back the function (because it is defined) and have done the job sampling all data, so let's stop the DMA globally?I wonder what is happening here...
Board = NUCLEO-F756ZGSD Card Spec = SDHC Class 10Board to SD card connection wire length = ~10cmSDMMCCLK clock divide factor = 8 (So SDMMC_CK = 3 MHz)Accept CLK line, on all lines 22K pull-up resisters are connected.I am trying to mount and read/write into an SD card with an SDMMC 4-bit bus without DMA. But the FATFS f_mount() function fails with a FR_NOT_READY error. Where the same hardware with the SDMMC 1-bit bus software, mounts an SD card and is able to read/write in an SD card.Can you please help me to work with 4-bit SDMMC?What could be the possible reason specific to 4-bit?Can you please share a working example?
Hi,i got some issue, where i restart a "5 times DMA" after i read the array. The first DMA is happening right after i startet it, when the level is high. But that is not a rising edge! I already made some test to verify this problem. The solution so far is, to wait for the signal to become low. But cpu time i valuable... A solution to this "solution" would be to check periodically is the signal is low, but that is also not so ideal (ugly and takes cpu time too).in main loop: if(dmaCompleted){ dmaCompleted = false; // while(GPIOA->IDR & GPIO_PIN_8){ // //print("wait\n", 5); //wait for pin to become low, as a high level (not rising edge) will falsly trigger a dma request! // } LED3_GPIO_PORT->BRR = (uint32_t)LED3_PIN; HAL_TIM_IC_Start_DMA(&htim1, TIM_CHANNEL_1, tim1_cpat_1, 5); } static void MX_TIM1_Init(void) { /* USER CODE BEGIN TIM1_Init 0 */ /* USER CODE END TIM1_Init 0 */ TIM_ClockConfigTy
Hello,when I was Upgrading firmware (dfu) it got failed due to some bug in my code and the device moved to an unresponsive state is there any way to recover the device with USB ..MCU: STM32L476.Access: Only USB.thanks in advance
For example, my EEPROM has setting for static IP or DHCP.The problems is MX_LWIP_Init() does not have proper user code sections. It always call dhcp_start(), but I do not need it in case of static IP. The other problem is no any static IP config and all my changes lost each time I regenerate code. Maybe i'm missing something?
I've got a design with a STM32F405RE bootloading onboard STM32F722RE via SPI1.I've implemented SPI bootloader host (mostly same as serial with addition of adding extra 5A frame and dummy reads in a couple places) and individually verified commands like GetVersion, ReadMemory, WriteMemory, EraseMemory etc as working.However, EraseMemory followed by WriteMemory does not work.This is referencing AN4286 throughout this post.Two questions regarding this:1) Get ACK Procedure (Figure 2 in AN) has the following: send dummy / receive data, checking if received data is ack or nack, however, there's a loop back to beginning where you keep sending/receiving data and waiting for correct byte. I am seeing this behavior here as well, and it takes about 10-15 ack reads before ACK is returned. I understand that's what the flowchart says so I'm assuming this is OK. Right?2) Here is where it gets weird. I've implemented EraseMemory as mass erase (Figure 18, left-side flow), by sending 0xff 0xff 0x00 and
These functions above are are functional identical. And they are calling weak functions "(Base/IC)_MspInitCallback" and "HAL_TIM_(Base/IC)_MspInit". "HAL_TIM_Base_Init" is actually used in my generated code and the weak function is actually replaced with a generated one in "Core/Src/stm32f3xx_hal_msp.c".As getting into STM32 and HAL is quite a task, these duplicated functions are annoying as ****. But maybe someone knows a good tutorial with some good insight? I havent came across a good source for this topic from STM...
Hi,Do anyone know how to combine USB HID with DFU?What I would like to achieve, a custom HID class that is able to get update using the USB connection.MCU: STM32G473RET6
HiI created a project from STM32CubeMX for the STM32F767ZI MCU:FreeRTOS 10.2.1 CMSIS v26 tasks (1 main + 5 bus: CAN, 2 x I2C, QuadSPI, USART)1 message queue per task.1 timer to pace the systemuse of DMA and global interrupt active for every bus (CAN does not use DMA)After initialization, every task waits for message in its dedicated message queue. When the latest task blocks on reading its queue, a hard fault is generated:The processor has escalated a configurable-priority exception to hardfault.The HFSR.FORCED is set to 1.The forced fault is not always the same. Here are the observed fault (for same code however !):A coprocessor access error has occurred (CFSR.NOCP)The processor has attempted to execute an undefined instruction (CFSR.UNDEFINSTR).with PC=0x0 and LR=0x01The exception is always raised after the following code (excerpt from xQueueReceive()):if( xTaskResumeAll() == pdFALSE ) { /* Set a PendSV to request a context switch. */ portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
I have followed this examplehttps://community.st.com/s/article/how-to-create-a-file-system-on-a-sd-card-using-stm32bubeideI got this setup on STM32F746G-DISCO and it is working fine. I cannot get it working on custom board with STM32L4S9ZIT6. I wonder if there is any problem with this chip, some software bug. I cannot see what I might be missing. The connection are fined I checked it a few times. I am using the same micro card (32GB) I used on STM32F746G-DISCO.
..
Hello Support Team.We are considering MCU STM32U585(TrustZone) as per our product requirements. It contains Ultra-low-power Arm Cortex-M33 processor.Our application contains safety-critical and non-safety-critical code.We will provide CRC of safety-critical flash areas when we will go to certification. If I change the non-safety-critical code, this safety-critical flash area CRC must not change. STM32U585 supports dual-Bank boot.We want to create 2 partition in flash(Bank1 -> 1024 Kb and Bank2 -> 1024 Kb) as we have 2Mb flash available.On every firmware update (FOTA) we want to swap bank.for example;Our current firmware boot from Bank 1,Now someone perform OTA in MCU.so new Firmware we want to store in Bank 2.after successfully completion of FOTA in Bank 2 we will restart MCU and next time onwards our applicaion will boot from Bank 2.if again we perform FOTA then it shoud write in Bank 1 because our applicaion was booted from Bank2.if above requirment is possible then p
Greetings !I am working on STM32H743 EVK and I could successfully compiled and executed the sample TCP Echo Server application over Threadx . But here DHCP IP is assigning . Please help me out to make IP as static IP.Thanks in Advance
Struggling with a rather weird problem. I am using the STM32F072 in an application that needs both USB CDC and CAN.Currently the peripherals are working as expected. However, if the USB is connected after the CANBUS, USB wont initialize. If I connect USB first then CAN, both work fine. USB has the higher priority (lower number) , interrupts all appear to be working. No hard faults. I know these devices share a buffer so I set the USB CDC buffer to half the default, 256B for each TX and RX.Where do i start to debug this?
Hi,Overall I liked the H5, lots of memory, lots of performance, 64-pin Ethernet, etc. I was only disappointed with the fact that it doesn't have HRTIM and only two AD converters. In addition to much more performance I expected analogue integration at least compared to the G4. Could someone from ST tell us if there are plans for a mixed-signal H5 with HRTIM?
Hello All,We are using STM32G041F8P6 in our project. This IC will be programmed through I2C/USART and we will be using System Memory for booting(internal flash).As per the datasheet:At startup, the boot pin and boot selector option bit are used to select one of the three bootoptions:• boot from User Flash memory• boot from System memory• boot from embedded SRAMCan you please let me know where I can find the info about Boot0 pin and Boot bit setting to boot from internal flash memory?Thank you
Is there a video, or some help file that can show how to integrate this into the Cube IDE and a project?I read you can download it from Microsoft, but no other documents that I found.Thanks
STM32U585 (USB_OTG_FS), latest CubeIDE (USBX 6.2.0)I implemented USB Audio 1.0 Microphone Descriptor into ThreadX USBX (using builder framework). Descriptor works, (no errors, microphone is shown in audio control), but no audio is received. It seems that ux_device_class_audio_stream_change function is not called, only ux_slave_class_audio_instance_activate. I also tried code from official STM32H7 USBX Audio example (that's Audio 2.0 Speaker), and that one had similar issue, no ux_device_class_audio_stream_change were called. So I guess this might be an issue with STM32 USB Controller driver inside USBX?There are some more code shared here on USBX repo: https://github.com/azure-rtos/usbx/issues/92 . But now it seems to be more issue on the controller side, so I am posting this here. Thanks.
Hello, STM32 Developers/STM32 Enthusiasts!I got a NUCLEO-U5A5ZJ-Q and tried using SPI with GPDMA to drive an SSD1309 OLED display, which works fine without DMA.On this device we use GPDMA, which is new to me.I managed to successfully transfer the first 128 bytes using GPDMA, displaying the first page on the OLED screen.And I saw the interrupts of the half-transfer and full-transfer complete using a logic analyzer, by toggling an IO pin.Next, I want to send a few command bytes to the OLED display, before sending the next 128 bytes through a DMA transfer. However, the SPI transfer fails after the DMA transfer is completed. I think HAL didn't completely clean up the transfer.So I'll have to omit using DMA on the STM32U5A5 MCU as it doesn't work well with GPDMA yet.The problem could be between the chair and the keyboard, but I have not found the problem.Does anyone have an idea what could be causing non-DMA SPI access to fail after doing a GPDMA transfer with it? In the meantime I'll dive
Configured Master/Slave SPI. (1). trigger Interrupt SPI receive.(2). Interrupt and receive a data(3). Trigger interrupt SPI receive again(4). Never trigger SPI Interrupt receive.... HAL_SPI_Receive_IT(&hspi1, SPI_Receive_Buffer, SPI_RECEIVE_DATA_LENGTH); while (1) { if(SPI_Frame_Reveived) { SPI_Frame_Reveived = 0; HAL_SPI_Receive_IT(&hspi1, SPI_Receive_Buffer, SPI_RECEIVE_DATA_LENGTH); } }...Interrupt:void HAL_SPI_RxCpltCallback(SPI_HandleTypeDef *hspi){ SPI_Frame_Reveived = 1;}Why SPI receive IT only once?Jiannong
I have the Keyboard working, but when a usb hub is installed the keyboard is not visible does anyone have some clues to get a usb hub working ?
Hi, I've got a Nucleo F303ze and I'm trying to send and receive data via USB without the ST-Link, so I'm powering the board with an 9V battery. When I connect the USB in CN13 the LD8 turns on but on my device manager there is no new connection.When I use ST-link everything seems to work fine as I can upload the program without problem and the board is detected in the device manager, but it still doesn't recognize anything with CN13.I've tried several cables and USB ports but none work as well as two different boards.I'll add a picture of the board state, it is brand new.Both LD6(PWR) and LD8 are turned on, and LD4 blinks slowly.I'm following this tutorial for the code: https://controllerstech.com/send-and-receive-data-to-pc-without-uart-stm32-usb-com/But seeing as the board isn't even detected and I can't use putty to see if the data is being sent I dont think there is a problem with the code yet.Is there anything I'm missing? Thank you very much.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.