Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
Hi, I am compiling the STM32U0 HAL library and I get errors like this one:/Users/kiwanda/techniek/swexternals/STM32/HAL/Libraries/STM32U0xx_HAL_Driver/Inc/stm32u0xx_ll_comp.h: In function 'uint32_t LL_COMP_GetCommonWindowMode(const COMP_Common_TypeDef*)': /Users/kiwanda/techniek/swexternals/STM32/HAL/Libraries/STM32U0xx_HAL_Driver/Inc/stm32u0xx_ll_comp.h:391:27: error: ISO C++17 does not allow 'register' storage class specifier [-Werror=register] 391 | register const uint32_t window_mode_comp_odd = (uint32_t)READ_BIT(COMPxy_COMMON->CSR_ODD, COMP_CSR_WINMODE);I am using a C++ compiler and since C++14 the keyword register has been declared obsolete and useless. I fully agree with this step, all the more since we are writing SW here on ARM Cortex:When writing software for ARM Cortex, which is a Load/Store architecture RISC processor, EVERYTHING goes through a register. The register keyword is therefore completely meaningless, useless and superfluous in this context.I would l
Hello everyone, I’m looking for some help getting an Ethernet TCP server running using LwIP with FreeRTOS on an STM32. Current status: Hardware: NUCLEO-H723ZG Stack: LwIP + FreeRTOS Development Environment: STM32CubeMX and STM32CubeIDE TCP client/monitor: Hercules v3.2.8 I can ping the board successfully every time (with Windows terminal and Hercules) However, I cannot establish a TCP connection when FreeRTOS is enabled What’s confusing me is that: If I disable FreeRTOS, I can successfully establish a TCP connection using the CubeMX example LwIP_TCP_Echo_Server Once FreeRTOS is enabled, the TCP connection attempt from Hercules fails (no connection established) What I’ve tried so far: Multiple CubeMX LwIP + FreeRTOS example configurations Both Netconn and Socket-style APIs Adjusting task priorities and stack sizes Verifying IP address, subnet, gateway, and port settings Confirmed Ethernet link is up and LwIP responds to ping At this point, it feels like I’m
Hi!We are working on product that needs to count people on the range of 3-4 meters. We designed dev.board for sths34pf80 and tetsted it with UNICO-GUI. The max range that we are getting is around two meters and therefore it looks that we need to use additional lens to extend the range. I found one of your documentation " New industrial sensors:anomaly detection and presence" where you have descibed it working together with a lens. So we bought the same lens IML-0687 and tested it, but we are not reproduce the same results. With a lens the range is even less than without it. I played with different settings, but no success. There also should be document AN5983, that describes the work with lens, but looks like its not created yet. Have you got any suggestions for us, to get it work?
Hi,is there a 64Kb drop-in replacement for the STM32C031G6U6 (which is only 32kb)?We need to find a part where - ideally - we just use the same code without any mods, this is the most important part.And is there perhaps a tool that helps with that? Or at least allows us to make an accurate comparison check between two parts?We just use GPIOs and 1 x RS232 and 1 x I2C in their default pin locations.Thank you
Hello,I was using STM32CubeMX, but starting two days ago, when I launch the program, only the splash screen appears and the STM32CubeMX does not proceed any further.1. I have tried deleting the program, restarting the computer, reinstalling it, and running it again.2. Adding a new user is not possible; the user creation permission is restricted to the company's IT administrator.I would appreciate any suggestions on additional steps I could take to resolve this issue.
I recently upgraded my IDE to version 2.0. I cannot start a project from the board view; where you select the board type and configure the settings. It would then create the c++ project code for you. The new version doesn't have anything to help you select the board and it cannot even open up the board configuration editor when you click on the .ioc file. Is there. a way to revert back to the previous editor version - I think it was version 1.x.18?
I am using the Stm32wb09kev6tr ic for the ble.I am not able to update the fus or wireless stack from the st link? is there anything i am doing wrong? is there any documents regarding this which will helpfull?
Hii Community member,I need technical help from someone who had faced this issue earlier described as below:I am currently working on STM32H723ZG mcu in which i had interfaced NAND flash of MX30LF4G28AC using FMC peripheral.As per our hardware test routine, I am checking flash test in which first a block gets erased and then each page is verify whether it is erased or not. Then a dummy buffer of 4096 get writes in a page and then read back into another buffer and comparing them. During comparison, my test passes for some pages and fails for some pages within block. When checked for failed pages, it is found that only last byte i.e. 4095th byte is differing. Although i had done configuration for 4Gbit model in cubeMx, my test routine is working for 2Gbit model.I would welcome any suggestion or some guidance point to resolve my issue.If any code snippet required, i will share on this chat.@TDK
What is the P variant of STDRIVE102 and how does it vary from the STDRIVE102H?I can find datasheets for STDRIVE102H/STDRIVE102BH - with the BH variant having 3 Shunts(OpAmps) vs the standard H having 1 Shunt(OpAmp).The boards manager in ST Motor Control Workbench has the EVLDRIVE102P & EVLDRIVE102BP Evaluation Boards that point to the following (broken) links:https://www.st.com/en/product/EVLDRIVE102Phttps://www.st.com/resource/en/data_brief/EVLDRIVE102P.pdfI see Digikey and Mouser have stock of STDRIVE102P.
When I Debug cmwx1zzabz_0xx, I get a hard fault somewhere near a call to HAL_PWR_EnterSLEEPMode(). It happens just after all the init code, somewhere in the first call to MX_LoRaWAN_Process(). If I step into MX_LoRaWAN_Process() and continue stepping, there is no fault.Note that I commented out the calls to DBG_Disable() and DBG_ProbesInit() in SystemApp_Init() since they drop the ST-Link connection over USB.
Hello! I'm just getting started with an STM32MP257F-DK and B-CAMS-IMX module. I've followed the instructions for connecting the B-CAMS-IMX and have populated SD cards for booting with both optee and extensible layouts, but I am having an issue getting the camera module up and going. Instructions in the Wiki made it seem like this module is supported out of the box, but I am getting "imx335 0-001a: failed to find sensor: -6" at boot with both SD card images. Looking at the stm32mp257f-dk dts, it seems that the other components of the B-CAMS-IMX (ToF and IMU) are not defined as well.Am I missing something? Do I need to create a custom dts to bring up this module? Thanks for any help.
I have designed a custom board based on the STM32F767ZI MCU. To enable Ethernet connectivity, I integrated the KSZ8081RND PHY, along with the necessary magnetics and an RJ45 connector. You can find the full schematics in the attached PDF.On the hardware side, everything appears to be functional. I can confirm the presence of the 50MHz clock signal feeding both the PHY and the MAC. I have trace-matched the signals to this clock, and the MDI signals also look correct (including route matching). I can observe the TX_EN line going high (3.3V) during activity, as well as movement on the other lines. Just to clarify, I am using the RMII interface.The MDIO and MDC signals seem fine, as I am able to successfully read the PHY registers. For instance, reading register 0x02 on the KSZ8081RND correctly returns the ID 0x0022. I also see activity blinking on the RJ45 LED.During debugging, it seems I can receive ping requests on the board; I can inspect the memory and see my Host's MAC address and th
Hello, I have tried a number of I2C slave tutorials found on YouTube with no success, but none are specifically for the STM32G03 series. Also I am getting a very strange phenomenon. In CubeMX for I2C2 I set the first slave address to 0x012. On my PC I am using python with a USB adapter to scan() the bus. I have an EEprom on the same bus an the scan address is correct but for the MCU it returns 0x13?Has anyone encountered this address shift?Is there ANY WORKING examples for this MCU series? This is my first post on this community.
Hi, HAL_LIN_SendBreak seems to be blocking CPU, is there a way to bring UART TX pin down then wait for timer and bring it up? I have done it making GPIO pin GPIO_MODE_OUTPUT_PP then back to GPIO_MODE_AF_PP but init after takes long time. I was wondering is it possible to do it within UART without changing pin mode? Or reducing the time pin mode init is required? void LIN_SendFrame_IT(void) { __HAL_UART_DISABLE(&huart2); GPIO_InitTypeDef g = {0}; g.Pin = LIN_TX_Pin; g.Mode = GPIO_MODE_OUTPUT_PP; g.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(LIN_TX_GPIO_Port, &g); HAL_GPIO_WritePin(LIN_TX_GPIO_Port, LIN_TX_Pin, GPIO_PIN_RESET); TIM2->ARR = 900; // 900us break TIM2->CNT = 0; TIM2->CR1 |= TIM_CR1_OPM; HAL_TIM_Base_Start_IT(&htim2); } void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { if (htim != &htim2) return; HAL_GPIO_WritePin(LIN_TX_GPIO_Port, LIN_TX_Pin, GPIO_PIN_SET); GPIO_InitTypeDef g = {0}; g.Pin = LIN_TX_
This thread is the follow-up to this thread Hi, is clear that uart pins are connected , the counter of received bytes is a real value. I try this one: 1. Stop RTOEN interrupt 2. And get interrupt from DMA when buffer is HALF and FULL : and I have data in DMA buffer: huart2.Instance->RTOR = 100; // __HAL_UART_ENABLE_IT(&huart2, UART_IT_RTO); // huart2.Instance->CR2 |= USART_CR2_RTOEN; HAL_NVIC_SetPriority(USART2_IRQn, 0, 0); HAL_NVIC_EnableIRQ(USART2_IRQn); this is in : static void MX_USART2_UART_Init(void) and : void DMA1_Stream0_IRQHandler(void) { /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */ HAL_UART_Transmit( &huart1, dma_buf ,DMA_BUFFER_SIZE , HAL_MAX_DELAY); /* USER CODE END DMA1_Stream0_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart2_rx); /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */ HAL_UART_Receive_DMA(&huart2, dma_buf, DMA_BUFFER_SIZE); /* USER CODE END DMA1_Stream0_IRQn 1 */ } this is on DMA interrupt. Then we have data:
Hello, Is there an official source listing all evaluation, discovery, or development boards based on STM32H5 MCUs? Thanks,Aymen
Greetings, I know how to solve it , but I do want to reseach on this issue. I use a nucleo's stlink (nucleo F070RB) to program a stm32g030k8tx. However, the target is only detected and, therefore programmed, when the external mcu is not on standby mode. Could it be becasue I do not use the NRST on the SWD? I just use Software Reset, instead. Thanks.
Hi allI'm pretty sure this was already a topic, but i haven't found a solution yet. Since i'm a beginner i definitely need some help here.I'm sending UDP data with LWIP and FreeRTOS. It works, but after some (random) time the code gets stuck at configASSERT( pxQueue->uxItemSize == 0 ); I tried some settings but nothing helps. It is stopping even if I do not send data . Any ideas? Cheers
Hi,I am in the middle of the project development based on STM32MP257FAK CPU. Originally we were using 8Gbit Micron chip (MT53E256M32D1) which became obsolete in the middle of the development, it even seems that most of the 8Gbit Micron chips are now obsolete. Now would like to understand why all the validated LPDDR4 memories in the wiki list are 2133MHz while the operating memory speed for STM32MP257 is 1200MHz?Are there any know issues with this memory for example from ISSI: IS43LQ32256A-062BLI? This is 1600MHz memory. Thanks!Alexey.
I have a Discovery board B-L072Z-LRWAN1 and I am trying to set up a project using CubeIDE but get the following, So I check to see if the L0 & LRWAN packages are in the repository, Yes, they're there. I click OK & Cube carries on setting itself up & up pops the ioc window. I press configure & generate & get some C code but the build option is greyed out. What am I missing here?
Hello! I am using an STM32U545 and VS Code for programming. I am experiencing the following issue: I am working with STOP mode, and once the MCU enters this state, I can no longer reprogram it. When using STM32CubeIDE, I did not encounter this problem (I believe this is related to the connect-under-reset feature, which VS Code seems to lack when programming).Is there anything I can do to avoid this issue, other than using STM32CubeProgrammer to erase the memory or adding a delay at the start of the program to give myself time to program the device after a manual reset?
We have a board with a stm32u5. were VDDIO are connected to 1.8 V and the I2C bus have pullup to 3.0 V. Some I2C devices uses 3.0 V logic levels and som 1.8 V. Between which voltage levels shall i measure the rise and falltime that i enter in cubemx. 30%->70% of 1.8 V or 3.0 V .We have possibility to turn off and on some devices on the bus that changes the rise and falltime on the bus. Shall then the longer or shorter rise/falltimes be used?One reason we are asking is that our design engineers wonder why the signal of the clock never is piece wise equal in on and off timing as it is the case with other I2C masters
Hi After the latest update, I can't download C Code from Edge Ai Developer Cloud, there are no boards in the list. fv
I have been working with a custom board using the STM32U073 for while, and have made a program that can active the USB system memory DFU. After this I suddenly cannot program the board anymore using the STM32CubeProgrammer.I can read all the flash memory, but cannot program the flash anymore.... Debugger connected Waiting for debugger connection... vchg_ctrl_run (duration_ms=16174368) at xxx/vchg_ctrl.c:108 108 setVchg(vchg_state); // Set the charger state based on the conditions connected to remote target localhost:61234 Note: automatically using hardware breakpoints for read-only addresses. load "xxx/build/Debug/hp2_charger_stm32_new.elf" Loading section .isr_vector, size 0xc0 lma 0x8000000 Loading section .text, size 0x10318 lma 0x80000c0 Loading section .rodata, size 0x754 lma 0x80103d8 Loading section .ARM, size 0x8 lma 0x8010b2c Loading section .init_array, size 0x4 lma 0x8010b34 Loading section .fini_array, size 0x4 lma 0x8010b38 Loading section .data, size 0x138 lma 0x8010b3c
I updated CubeIDE to 2.0.0 (now CubeMX is separated) on MacOS. I started new project and want to set semihosting for debug. I did the configuration as I used to do in previous projects, but now when I try to run, I receive following error:Info : [STM32WB5MMGHx.cpu] Cortex-M4 r0p1 processor detectedInfo : [STM32WB5MMGHx.cpu] target has 6 breakpoints, 4 watchpointsInfo : [STM32WB5MMGHx.cpu] Examination succeedInfo : starting gdb server for STM32WB5MMGHx.cpu on 3333Info : Listening on port 3333 for gdb connectionssemihosting is enabledsemihosting fileio is enabledError: The 'gdb_report_data_abort' command must be used before 'init'.Below my configuration of OpenOCD: Where should I put the gdb_report_data_abort command?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.