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 declared some test variable like,unsigned short *testvar= (unsigned short *)0x20020074;unsigned char *testvar1[4] = {(unsigned char *)0x20020076,(unsigned char *)0x20020077, (unsigned char *)0x20020078,(unsigned char*)0x20020079};but unfortunately in mid I left some part of the ram space and again declared a variable like,unsigned short *testvar2= (unsigned short *)0x20020092; I'm computing checksum from 0x20020074 to 0x20020092 and storing into flash , but 0x20020080 to 0x20020091 nowhere i'm declaring this space .is it create problem when i'm retrieving data from flash into ram?
Hi, i am trying to use USB VCP device on STM32F401. Is there a example available for this? Optimally, if it ends with something like the "Hello World" display in the terminal. My goal is to replace FTDI with internal USB in STM.Thanks
Posted on May 21, 2018 at 17:07I want to use the ETH port to communicate with other devices. I started by creating a project in CubeMX for the STM2F769I-Disc board. I simply added the LWIP and the ETH port (as RMII) and set a specific IP address (which was not already taken by any other device, my pc included). I'm using IAR to comile the project and everything is fine: I also added in the while(1) the function MX_LWIP_Process();My problem is that I don't reach the board at its specific address when I ping it.Where am I going wrong?Thank you!#stm32f7 #lwip #eth
Hello, I'm using the Evaluation board B-U585I-IOT02A for the STM32U585, and I'm playing around with the USB communication using the example "Ux_Device_HID_CDC_ACM". However, I'm not sure to fully understand the use of the middleware USBPD, which in my case I don't use (for my project I mean). Given that the VBus detection pin is not routed on the STM, am I right to assume the only purpose of the USBPB is to trigger the communication? Is there a way not to use the USBPD middleware? Thanks, Federico
B-L4S5I-IOT01 보드를 사용하고 있으며, AWS Iot에 연결하는 과정을 따라하고 있습니다. aws-demo 빌드시 오류가 발생하면 결함을 발견할 수 있는 방법이 도움이 되었습니까? 미리 감사드립니다. https://catalog.us-east-1.prod.workshops.aws/workshops/b5857416-f2f6-4188-8562-053ec5f983ef/en-US/lab-0 > 불러오기 링크 >오류가 발생한 화면 (x-cube-aws 파일을 받을 때 추가로 관련된 파일이 문제, 하지만 파일은 더 이상 사용할 수 없습니다) (AWS에서 제공한 파일로 종료하기)
Dear Friends, Edited:I have a bootloader that I made via I2C through the mailbox of an ST25DV04.The bootloader works fine, it is able to save in the flash the whole content of the hex file (valid data).I have added vector table remapping in my "blink" application as indicated in the following post:https://community.st.com/t5/embedded-software-mcus/how-to-boot-to-random-address-without-vect-tab-offset-stm32f072/m-p/170236#M10247 The problem is that when I go to launch the application the program goes to HardFault_Handler and I can't figure out why.The code I use to jump into my application: static void runApp() { typedef void (*pFunction)(void); pFunction Jump_To_Application; uint32_t JumpAddress; HAL_I2C_MspDeInit(&hi2c1); HAL_DeInit(); /* Jump to user application */ JumpAddress = *(__IO uint32_t*) (APP_START + 4); Jump_To_Application = (pFunction) JumpAddress; /* Initialize user application's Stack Pointer */ __set_MSP(*(__IO uint32_t*) APP_START); /
Alright, so I've been struggling quite a bit for the past week trying to get the X-CUBE-USB-AUDIO project working in STM32CUBEIDE on a STM32H745 MCU and looks like I have more or less everything up and running pretty good, at least in 16 bit mode. Problem is, when I set the recording resolution to 24 bits, Windows can no longer start a recording session. When enabling "Listen to this device", nothing happens, and when trying to record something with Audacity, it throws out "Error code -9999 Unanticipated host error".Since my knowledge about the USB audio class and USB in general for that matter, is rather limited, I have no idea where to even begin debugging this.I have verified that the MicStart callback isn't being called when starting recording.Has anyone run into similar issues or have any idea how to start poking at this issue?
Hi,I am going to be a part of a firmware development using STM32C0 series. Can I able to use ADC input which is input power supply as EXT Interrupt to wake up from sleep mode?How can be it assigned in ?Please Can anyone give an idea?
Posted on June 26, 2016 at 12:05hii am trying to send integer values from my nucleo board to my pc by using UART, i.e. you can take that sensor values. The UART example ''UART_TwoBoards_ComPolling'' in the stm32Cube that uses HAL libraries, only sends strings.data to send defined like this uint8_t aTxBuffer[] = '' ANIL TIRLIOGLU''; and function to send data is like this :HAL_UART_Transmit(&UartHandle, (uint8_t*)aTxBuffer, TXBUFFERSIZE, 5000);How can i send something like uint8_t TxBuffer = 111; #stm32 #adc #hal #hal #c-learning #uart-ft-serial-communications
Hi, I am new to STM32, I am trying the i2c communication between stm32 and esp32. I am using STM32 as slave and ESP32 as Master. I am using Arduino IDEI connected stm32 PB6-SCL, PB7-SDA to esp32 GPIO21-SDA, GPIO19-SCL.i was not getting any response in the output. Can anyone help me with it.Code is attached.Thanks
Hi,i working on USB protocol using STM32L496ZG Nucleo board.On board Vbus is showing 0v though i applied through the code.USB device(mouse interfacing) is not detecting from STM32L496ZG Nucleo board
I have generated C project with Tim2 interrupt configuration from CubeMX and converted into C++ project. when the project is in C timer2 is working. but when I changed it to C++ project, after interrupt enable function execution it stuck at Infinite Loop statement. why?can anyone help me out?after below mentioned statement execution,it's going to infinite loop statement.if (HAL_TIM_Base_Start_IT(&htim2) != HAL_OK){Error_Handler();} .section .text.Default_Handler,"ax",%progbitsDefault_Handler:Infinite_Loop:b Infinite_Loop.size Default_Handler, .-Default_Handler
Hi ST, we are looking for solutions to supply > 100W over the new USB-C PD 3.1 spec, but due to the (very) short time since the release it seems that no one has updated its specs yet.So I would like to know how and when is ST going to officially support it, and also how hard would it be to use one of the actual STUSB solutions + a microcontroller to support as a source the new 3.1 PD modes (28V, 36V, 48V), is it possible? Any information would be appreciated!ThanksGustavo
We are working on radio dongle application using STM32F411/13. We have mostly everything working, except for a lingering issue with USB. Details of the issue are as below:The radio dongle application enumerates as a CDC-ACM device as expected.And we can send/receive data over USB to the dongle using a host application.The host application sends the data to be transmitted to the radio dongle over USB.And the dongle application sends back received data to host app.And this is will be continuously repeated.But, after a while we see that USB OTG device device stops responding and on debugging further it was found that, it is stuck waiting for an IN transfer complete interrupt which seems to never fire.We also tried different ways of reproducing this issue, and the easiest way to do so was by closing the host application while the communication between USB host and device is ongoing. So, if i abruptly close the host application and if the OTGFS device happens to have started the IN transfer
Greetings,I've always programmed MCU's using USB connector (e.g., on Nucleo boards) or through JTAG (for custom boards). We are considering STM32G030Fx (TSSOP20 package) for sensor control - however, I need to figure out how to program the chip. From what I've read, I need to assert BOOT0, then use either I2C or UART to make the physical connection to the board; UART is my preferred interface.I imagine I would hook an FTDI board between my computer (i.e., USB) and the MCU UART TX/RX pins. What then? Select ST-Link in CubeIDE with SWD. Anything else? Is there a cheat-sheet available that describes the process?Any help would be greatly appreciated! Thanks much!! Rick
Hi, I am using STM32f429zi nucleo-144 board to configure Ethernet using LWIP and FreeRTOS. But my program doesn't execute after "MX_LWIP_Init();" in the StartDefaultTask. What could be the issue? It halts on the below function inside queue.c.Function:BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )Line :#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) {/*****Excecution waits here while debugging.****************/ configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); }Note: Ethernet works fine without using RTOS. I have tested UDP, TCP protocols.Thank you.
Dear ST experts: I am a beginner with ST RTOS. I need your help. We have a project using FW in AMICAM1\UltrasoundFFT based on NUCLEO-STM32L476RG . There two threads in the FW. one is AMICAM1_Thread and another is AMICAM1_Thread. The Ultrasound FFT FW can send the FFT data to PC when the EVB connecting USB cable to PC. Then the app of UltrasoundFFT.exe can show the FFT result as below. We would like to modify the algorithm flow to bypass usb send data function. It means that FW can continue to run without USB cable connecting PC. But we found the FW stop at osSemaphoreWait(fft_data_input_sem_id, osWaitForever) without trigger usb function. The FW will skip the function until the app start to run. Best Regards, ShengHua
The code in HAL_ETH_SetMDIOClockRange() function for H7 series, starting from HCLK frequency of 150 MHz and higher, sets the MDIO clock divider to 102. Per IEEE 802.3 specification the MDIO clock must not exceed 2,5 MHz, which means that it will be valid for HCLK up to 2,5 MHz * 102 = 255 MHz. But for H72x/H73x parts the maximum AHB frequency is 275 MHz and for H7Ax/H7Bx parts 280 MHz. Obviously the solution is to add a range with a divider 124, which will be valid up to 2,5 MHz * 124 = 310 MHz. The code for H5 series is correct, although ironically the maximum HCLK speed for those MCUs is 250 MHz anyway. Also the comment on the line 2405 incorrectly mentions 200 MHz instead of 250 MHz.In addition for HCLK frequencies below 20 MHz the code sets the divider to the highest value, which is the worst possible one. Instead it should set it to the appropriate or lowest possible value. For Fx series that means setting the divider to 16, but for Hx series the divider can be
Need help.I have a problem with the implementation of the tcp-client. I use STM32H7, FreeRTOS, LWIP (netconn). As a tcp- server - the Hercules terminal.Situation 1. The tcp-server (Hercules) is waiting for a connection. The tcp-client starts. The connection is made without problems (then you can exchange data, etc.).Situation 2. the tcp-server is not ready to connect (the Connect button in the terminal is not pressed). The tcp-client tries to connect to the server (sends SYN), but does not receive a response from it (SYN ACK).The client task is blocked waiting for a response (netconn_connect() function). But the response, even if the server is put into the Connect state, will never arrive (because the server has not actually received the SYN yet). The process is blocked because in the waiting state the client cannot send a new SYN packet and the timeout for the netconn_connect() function cannot be set.To unblock the process, I use a FreeRTOS timer that I start before calling netconn_co
Hello I am looking for information about the available Wi-Fi modules that I can use for an IoT application, with software support (software drivers & examples for easy integration). The main application is to be able to connect to an MQTT server. Looking at the development boards from ST, I have found the following: - ISM43362 on dev board B-L475E-IOT01A - EMW3080B on dev board B-U585I-IOT02A The above modules have software support and examples through X-CUBE-CLD-GEN Expansion Package and X-CUBE-AZURE Expansion Package. What are other possible Wi-Fi modules to choose for an IoT application? Thank you in advance
I have a question about SVC.I am currently implementing an OS service call using an SVC.When other interrupts and SVC interrupts occur at the same time and the other interrupts are executed first, it seems that the SVC interrupts are not pending.In other words, the SVC interrupt is not executed after the other interrupt.The situation is as follows.-------------------------------------------------Using board : nucleo l4r5ziUsing interrupts : SVC (priority 5, sub-priority 0) USART 2CH (priority 5, sub-priority 0)※ The code is simpler than it actually is. OS_service_call() __asm volatile(" SVC %0 \n" : : "I" (0)); __asm volatile(" NOP \n"); uint32_t g_icsr SVC_Handler() g_icsr = SCB->ICSR; ~~ USART_2CH_Handler() g_icsr = SCB->ICSR; if (g_icsr == 0x0x0000b836) { __asm volatile(" NOP \n"); } ~~ -------------------------------------
Hello, I'm working on a project related to SPWM modulation for inverters, I´m using two timers, TIM1(CH1,CH3) as a PWM signals and TIM2(CH1) as a trigger signal for the adc module, the sample frequency is set to 72kHz. I need to read 4 adc channels using DMA : IN1 (2 samples), IN10 (2 samples), IN14 (4 samples) and IN15 (2 samples). In addition, for the IN4 a 3 kHz sine wave is injected. However, I have a problem with the adc, when we are debugging the variable (adc_val [4]) with the values returned by the DMA I noticed that these values are constantly changing position, I mean, the values are stored as follows, adc_val[0] = measurement 1, adc_val[1] = measurement 2, adc_val[2] = measurement 3 and adc_val[3] = measurement 4, but when the program is running theses values can be stored in the next way, adc_val[0] = measurement 3, adc_val[1] = measurement 4, adc_val[2] = measurement 1 and adc_val[3] = measurement 2, I do not know how to solve this problem. Could someone help me to solve i
Affected driver libraries: STM32Cube_FW_U5_V1.3.0 and STM32Cube_FW_U5_V1.2.0, and presumably all earlier versionsFollowing defines are wrong:#define LL_PWR_LPM_SEC PWR_SECCFGR_WUP8SEC#define LL_PWR_VDM_SEC PWR_SECCFGR_WUP8SEC#define LL_PWR_VB_SEC PWR_SECCFGR_WUP8SEC#define LL_PWR_APC_SEC PWR_SECCFGR_WUP8SECInstead the defines should look like this:#define LL_PWR_LPM_SEC PWR_SECCFGR_LPMSEC#define LL_PWR_VDM_SEC PWR_SECCFGR_VDMSEC#define LL_PWR_VB_SEC PWR_SECCFGR_VBSEC#define LL_PWR_APC_SEC PWR_SECCFGR_APCSEC
Hi guys, My USB CDC code always work on STM32f407vgt discovery kit but it some times doesn't work (cannot connect to hterm) on my PCB (photo attached). Nevertheless, windows always recognize it by sound as well as in device manager even when it cannot connect to hterm. The discovery kit has 2 usb; one for supplying the power and the other one for CDC communication. In my PCB, there is a single usb to handle both. Since my PCB is USB-powered I tried to deactivate the vbus feature; but it couldn't solve the problem! Boot0 is also puled down while Boot1 is not even used!when my pcb cannot connect to hterm, it also cannot connect to putty and real term! But at the same time (when it cannot connect to hterm and without depluging the usb) it can connect to ardunio port and can communicate with pc!!!!!!!Just a few questions: 1) May the problem be the hterm itself? if so, is there any other similar program you can suggest me to test?2) Do you know the reason why sometimes it cannot connect to
Hello All,I have STM32u575I-EV evolution board and I want to use the board as USBFS Device and As Host.Can some please let me know the jumper settings which needs to be done for configuring the board for device & Host?Please let me know if you need more information.Thanks in advance!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.