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 everyone,I need to get some information about the power consumption of the STM32 Nucleo-64 with STM32F401RE MCU.The board is powered from the computer's USB port.The board has a IDD jumper (JP6) for MCU current measurement so I attached a Parkside multimeter to get the current.I created a project in which the main while loop is empty and all peripherals are disabled. In this case, the current shown on the display of the multimeter is fixed.If I modify the project and I use the timer interrupts to acquire data from the sensors, the current shown is fixed. If I create another project without interrupts but acquiring data from the sensors in the main while loop, the current shown is fixed. If I add some "printf" (using USART2 and PuTTY) to show these data, the current is variable. If I create a project in which I execute some inferences of a neural network, the current is variable.Why do I have a fixed value of the current on the display in some cases and a variable value
Given that it is very easy to cause signal conflicts when configuring an MCU using the CubeMX initialization program, it is extremely important to include the IOC file for any particular example published. This being for comparison when trying to use an example as a base and extrapolate additional functionality. Since the CubeMX program is cryptic about about signal conflicts, being able to inspect the IOC is the only/best way to quickly determine how things are set up. Also, it is needed if using the example project as a base for further experimentation.U585i-IOT02A BSP example does NOT contain the IOC file used to initialize the MCU for the project.
I have trying to use the ST Hal Library for interfacing the Win Bond Serial Flash IC with part Number w25q64jv. With Git repo Library which i found online https://github.com/Crazy-Geeks/STM32-W25Q-QSPI . The Code work only until he W25Q_init() functions read ID. if i try to just Read the ID then i get no data from the IC. while(1) { if(W25Q_Init()==W25Q_OK) { success_cnt+=1; } //HAL_Delay(1000); } When i try to use Hal delay function then the ID is read only once after that the Hospi structure shows error of incorrect sequence (note i am only trying to read the ID multiple times).If any one has ever interfaced this QSPI Protocol of ST please share example codes.I am unable to figure out that why does using Hal Delay causing error in reading the ID.Also if i comment the Delay and try then the ID is read for 1200 times and then again The Id is not read.
Hi, everybody. I use the CCID driver for STM32F072RB, converted to the Hal library. There was a need to make a multi-slot Smart Card Reader (specifically - there will be 3 slots for smart card). In the process, I would like to be able to dynamically switch between them. And that's the main thing. In the "usbd_ccid_core file.c" there is a set of bytes of the General information of the reader USBD_CCID_CfgDesc[SMARTCARD_SIZ_CONFIG_DESC] (line 82). It has the property "bMaxSlotIndex :highest available slot on this device", which I set to two (bMaxSlotIndex = 0x02).Also, in the file usbd_ccid_cmd.c (line 939) is the RDR_to_PC_NotifySlotChange method. The description of the CCID Protocol specifies that the response to the "RDR_to_PC_NotifySlotChange" command that this method sends a response to should be the number of slot States (www.usb.org/sites/default/files/DWG_Smart-Card_CCID_Rev110.pdf page. 56).I forcibly send the answer allegedly Card Reader has 3 slots and in each card is inserted
This is my main program: int main(void) { HAL_Init(); /* USER CODE BEGIN Init */ TaskHandle_t task1_handler; TaskHandle_t task2_handler; BaseType_t status; /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); MX_GPIO_Init(); MX_RTC_Init(); //MX_USART2_UART_Init(); /* USER CODE BEGIN 2 */ status = xTaskCreate(task1_handler,"Task1",150,"Hello world From task1",2,&task1_handler); configASSERT( status == pdPASS); status = xTaskCreate(task2_handler,"Task2",150,"Hello world From task2",2,&task2_handler); configASSERT( status == pdPASS); vTaskStartScheduler(); /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { } /* USER CODE END 3 */ } And this is my tasks' code: static void task1_handler(void * parameters) { while(1) { GPIOC->BSRR |= (uint32_t)1<<13; //vTaskDelay(pdMS_TO_TICKS(100)); taskYIELD(); } } static void task2_handler(void * parameters) { while(1) {
HelloI am working a project that implements CDC_ACM and MSC devices in a composite device.Device Manager displays these as USB Serial Device (Com35 , works) and STM Product USB Device (Mass Storage Device). But Disk Drive does not appear in Explorer of PC (BTW it appears in Explorer after too long time ... 10 min or so as Disk Drive , without size and Windows does not ask to format at all)? What i am missing or what i do wrong , please help?Regards
hi, I'm using STM32H735G-DK. I coded audio output with sine wave while referencing to the example code(\STM32CubeIDE\STM32CubeH7-master\Projects\STM32H735G-DK\Examples\SAI\SAI_AudioPlay). When I start audio, line out could output the sine wave correctly. But the touch panel screen shows strange behavior. 1. screen goes strange in the moment (like out of sync.) 2. continued from above, screen shows strange circle mark at the position around the connector connecting LCD and CPU board. circle mark isn't cleared by stopping DMA sending with HAL_SAI_DMAPause(&hsai_BlockB1). So I guess this is not the electrical noise but something relating to software. This can be cleared only when reset button is pushed. How could I solve this problem? Or, could you provide the sample code of audio play with showing some screen?
I am trying to fire the PendSV interrupt from within SysTick. I was trying to use HAL_NVIC_SetPending() but discovered that this function ignores interrupt IDs of 0 or less. I am looking for an alternative.
After poking around a bit more in the STM32CubeIDE code, I'm seeing a pattern of issues that indicate a serious lack of understanding on the part of the authors of the shipping BSP code. This code was written several years ago, but it is the shipping version and suffers from serious performance problems due entirely to the inexperience of the authors. A good example: Taken from (STM32Cube_FW_F7_V1.17.1/Drivers/BSP/Components/st7735) In the st7735_WritePixel() function below, the author is creating 2 unique SPI transactions to send the 16 bits of the pixel color instead of sending a single 2 byte transaction. This wouldn't be such a big deal except that other graphics primitives depend on this function (e.g. DrawVLine() below).The DrawVLine() function takes 2 orders or magnitude longer than needed simply because the author doesn't understand how Sitronix LCD controllers use memory windows to control the write pointer. It naively calls the WritePixel function and comp
Hai All, I am facing an issue on USB File system accessing. Here I am using ULPI protocol for accessing the USB Drive via USB3300 IC.Here I am using an Interrupt method for detecting the USB drive. When we connect, interrupt is happening and File directory is loading.After few seconds or any other operation, if we try to access the file system in USB DISK ERROR is coming.Files are accessing using FatFs and the same FatFs is using for SD crad.Here using SPI protocol and no issues are facing. After analyzing the ff.c file which is generated by Cube IDE, I am getting the macro SS(fr) ( Sector Size ) as Zero. This is the reason that File directory is unable to fetch.But this problem is not in SD crad .How to rectify this issue.
Hi All,I'm new to the STM32 community. I've been sharing a lot of my open source imaging code with the Arduino community for the last few years. Much of the code can run within the CubeIDE without modification.My first test was to get my JPEG and GIF decoders running on an old STM32F723 Discovery board. The built-in LCD didn't work, so I connected an external 280x240 ST7789 LCD to SPI1. Before porting my ST7789 code, I tried to use the library offered by the examples in the latest STM32CubeIDE libraries (st7789h2 written by the MCD Application team). After looking through the code, I noticed some problems in the approach and a noteworthy bug (see below):First of all, who is the "MCD Application Team"? Are they interested in feedback? Bug fixes? Better code to replace these libraries?Besides the error above, the overall approach to communication with the LCD is wrong in that it will make every operation much slower than necessary. What's the right approach to share fixes and new code wi
Hello,I have developed a code in FreeRTOS mode that contains two main tasks. The first one check if I have received an RX buffer on the I2C bus, and the second one manage the data that has been received.However, after receiving the first buffer, I am getting HAL_I2C_STATE_BUSY_RX, and I cannot transmit a response to the master device but I'm able to receive another RX buffer . Can anyone please help me? I'm using I2C in DMA normal mode.32-> HAL_I2C_STATE_READY34-> HAL_I2C_STATE_BUSY_RX
Hi,I am using STM32F091VC based custom board. and our application is Multi thread with the FreeRTOS. On I2C1 line three device are connected. all the device are accessed from the different thread. to prevent the simultaneous access we have used Mutex. so, at a time only one device can be accessed. also we have configured I2C communication with the DMA(interrupt based). but some time application execution stuck in HAL layer's I2C ISR relted Api. this might be because of simultaneous access.For your refer i am attaching my I2C code, Please suggest that Is our implementation is correct or not. also give some light to implement code to access multiple device on same I2C line.
Hello,I am using the STM32H747I-DISCO board for prototyping. I was able to load up the "Tutti Frutti" game demo on the board to verify the hardware. In my own application I was able to store a small 320 x 240 image in the internal flash of the STM32H747XIH6 device on the discovery board. I understand how that works.I have my image data as a C array of uint32_t data formatted as ARGB8888.My questions are:1. How do I compile/build/assemble that data into a .bin or .hex file to load into the external Quad SPI flash available on the discovery board? I just want the image data stored there, not the entire application.2. What tools do I need besides what comes with STM32CubeMX, STM32CubeIDE, and STM32CubeProg? 3. If the QSPI flash stores the data as bytes, do I have to do bit shifting conversion as I read the bytes out? What I mean is do I read 4 bytes and shift them into a uint32_t variable or can I just move the bytes from the QSPI to SDRAM (where my frame buffer is stored) and
Hello everyone, I need your help for configuring PWM dead time, I have configured below configuration but I received dead time as 5uS. I need 200uS dead Time. Could you please help me.
Hello everyone,I am trying to get the Ethernet interface on the STM32H753ZIT up and running using CubeMX. The goal is that I can ping the µC. It is not an Evalboard but a self developed board. Unfortunately I don't have the schematic.I have already searched very intensive the internet and worked through different tutorials but I always have the same error: during the initialization of the lwip stack at the following position in the stm32h7xx_hal_eth.c a timeout is triggered:/* 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; } }In different forums the above mentioned problem was solved by changing theAPB4 frequency was changed. I have also tried various frequencies, unfortunately without success.
Hello,I would like to implement IEEE-488. on stm32.In order to connect send commands and download data from old digital equipment.Does someone familiar with GPIB library code implementation?
Hello All I am using zephyr RTOS on NUCLEO-F767ZI board. I am considering using the NUCLEO-F767ZI board to use GNSS data. Is there a Zephyr driver for X-NUCLEO-GNSS2A1? Regards TaeHo
Hi, I wonder if someone can tell me about the most recent lwip api for stm32 as follows: 1. Where can I download it (ported lwip) from the stm32 website2. Is there any serious issue related to udp and tcp (client/server) usage of the api?3. Is it possible to partially use HAL api that is related only to the lwip in my application (udp + tcp server/client) as I intended to write code mostly bare metal (registers level programming) - [NO or REDUCE HAL API + NO RTOS] 4. Please help me point out to the most recent works. Thank youMy embedded profile will be:MCU: STM32H563ZIT6 or STM32F427VGT6ETH IC: LAN8742A (RMII)System clock: configure to 50 MHz (using external xtal of 8 MHz)SAM
Posted on March 18, 2018 at 16:44Hi guys, i'm looking to get signal from ♯ FSR sensors with my STM32F4-Discovery. I set PA1 as ADC1_IN1 and after i associated DMA (with STM32CubeMX, HAL driver). So i generated the project and edited with System Workbench for STM32, added an int variable (fsrValue[1]) and in main, i started HAL_ADC_Start_DMA(&hadc1, fsrValue, 1);. It works fine but now i don't know how implement this for 2 or more FSR sensor, i tried to set PA2 with ADC1_IN2 and with ADC2_IN1 but without any results (only signal noise, tested with STM32 Studio, even if i don't touch the second FSR). Is possible to have an example? Thanks!PS: i used this video as tutorial: https://www.youtube.com/watch?v=Q2McPYfevwo See the attachment for the full project#hal-adc #fsr-sensor #stm32f4discovery
Hi In previous posts, I encountered the similar problem, but I did not find an accurate answer.Please advice me on this issue.
I have tried every solution mentioned here. I have also contacted my friends and family members whom have tried to download this software and other libraries (CubeIDE, CubeMX, F1, F4, F7 and H7 Libraries). Same issues I need help urgently as I need to set software up as I have shifted to a new PC.
Hi, I am trying to use STUSB1600 as a front end interface to my USB Type-C connector and interface it with STM32L4R9 series microcontroller. It is a dual role type application but with no power delivery. Unable to understand why VDD of STUSB1600 is connected between source of two PMOS as shown in the figure below (snippet taken from STUSB1600 datasheet).Why not simply connect it to VBUS path directly. Was there any specific reason behind doing this? Also, under power supplies section it is mentioned that if both VDD and VSYS are present then the precedence is given to VSYS provided it is greater than 3.1V. Does that mean if we are connecting both VDD (as VBUS) and VSYS (say of 3.3V) as shown in figure 1, then STUSB1600 will never take power from VDD but always from VSYS? Can someone please help me figure this outThanks.
Hi all,We are using an STM32H730IBK6Q.PA10 is not configured and STM32CubeMx generates code that initializes the pin as "Analog" as expected.Now if we enable USB (specifically, when setting `USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN;`), that pin goes high, which is to me unexpected since AF10 (OTG_HS_ID) is not configured.Is there any way to tell the USB PHY not to attach a pull-up to that pin? It seems like it gets hijacked even if not configured. In the block diagram in the reference manual, that pin is mentioned, but I was under the assumption that if it is not configured as OTG_HS_ID in CubeMX, it would not be touched: As a workaround, I have configured it as GPIO output and set it to RESET, and that works, the pin stays low and USB communication is operational. Do you see any drawbacks with that? We operate as a USB device (not host) at all times.Thank you and best regards!
Hi guys, I have a nucleo-l073rz and am developing software for it with iar ewarm. So far everything is working well (programming and flashing via the st-link programmer). In the future, however, I would like to do firmware updates via the serial interface. After connecting the boot0 pin to VCC, I was able to send boot commands. Is it generally possible to use the "write memory command" to write a binary (which I created with ewarm) to a specific address and tadaaaa: "the firmware has been updated". Or is that completely utopian? If not, what do I need to bear in mind? I don't want to use any tools from ST, but rather create all the UART commands myself.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.