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 have a STM32L431 that jumps to the bootloader using a software jump to 0x1FFF0000.I verified that the PB8 and PB9 pins are used on my system and I also have a 8MHz crystal soldered. I let the bootloader run then I send a 0x79 standard identifier with no data at 125kbps using a python script. I check with a logic analyser on both the Tx and Rx pin. I can see my message is being sent to the MCU, but then I get only NAK or even ERROR (series of dominant bit instead of acknowledge). I tried bombarding the MCU of message and then starting the bootloader, in this case I get a Tx glitch and only NAK on my message. THen the bootloader just restarts. It does not restarts if I do not send anything so it must be receiving it somehow it just does like it.
Hi,I'm using Custom HID class for sending MIDI messages by editing the descriptors. I am using sendReport function for sending MIDI messages, I want to receive MIDI messages as well. I was wondering whether there is any function to receive messages in custom HID files. I'm using STMH755ZI. Thanks,Kiran
Hello @STTwo-32 I would like to use FreeRTOS with TZ projects. In the case of X-CUBE-FREERTOS 1.1.0, I can select X-CUBE-FREERTOS with both Secure and Non-Secure. But, in the case of X-CUBE-FREERTOS 1.2.0, I cannot select X-CUBE-FREERTOS with both. Could you check this?Best regards, K.O.
Hi all,I need to perform a modular update in my f446 board for my project.The board is running a FreeRTOS, and the idea is to only modify the content of one task without affecting the content of other tasks. For doing this, every task calls its function, and these functions are defined in specific areas of memory defined in the linker file.Here is an example of a function:void __attribute__((section(".custom_section1"))) application1 (void){printf("in app 1 \r\n");} Here is a part of the linker file:...APPLICATION_1 (rx) : ORIGIN = 0x8010000, LENGTH = 64K /* Sector 3 */....custom_section1 :{*(.custom_section1)} > APPLICATION_1 And here is the task calling the application:void StartApp1(void *argument){for(;;){ application1();osDelay(1000); }/* USER CODE END StartApp1 */} Before performing the update everything works perfectly, the tasks call the functions and with CubeProgrammer I check that they are stored where we want them to be. &n
Hi Guys, I have been trying to download FP-AI-PDMWBSOC, I always get this message "This software is not available for download.". It is not only software that gives me this issue. Does anyone have a fix?
Hello @Imen.D, We still have this issue on certain custom boards designed in-house. We use KSZ8095 on some and KSZ8895 (5 port) on others with same base circuit over MII/MDIO. We have tested the clock signals and they seemed to meet the STM32H7 signal requirements per the datasheet . However we also tested that some clock rates greater than 2.5MHz didn't work more frequently than 2.5MHz. Also we follow the link you shared for initializing. What else can we look at? Thanks, Mayank.
Hi All, I have a STM32 Nucleo H723ZG development board and running CMSIS RTOS v2 and HTTP server with netconn on it. The project is an example provided by the ST and it is available in STCubeMX. everything works fine until I disconnect the Ethernet cable from the board. As soon ans the cable is unplugged the code jumps into the hard fault exception. I wonder if anyone else has seen this issue with this example and has a solution for it. many thanks for any help,
Hi all, I have a task of controlling Watts of USBPD by Uart data received . Help me to complete the task.I have no experience in the process help me to complete the code flow
we are using stm32f103c8t6 and stm32f407vet6 microcontrollers. we were able to communicate with sandisk and other brand sdcards but hp sdcard (Class 10, UHS-I, U1) is not communicating . hp sdcard working with card reader and we have formatted in FAT32 format in hp sdcard. please provide the solution for this issue. we are using stm32cube ide and hall library.
I need generate ethernet Mac address for my devices(STM32H7xx), and want to make those devices' Mac address NOT same. The first 3 byte of Mac address will use ST's, so only leave 3 bytes. We want to use the chip UID to generate the 3 bytes of the Mac address. What is the best way for us to generate them? I dont know what is the meaning of 3 parts(HAL_GetUIDw0/1/2) of UID, I found most parts of our chip's UID are same, just a few chars are different, dont know if we can ignore some of UID which are almost not changed.
Hello, I am trying to debug my vcp application (uses STM32F103CBT6), but when I start a debug session the COM port does not work. When not debugging, just uploading a new code, the cdc communication only works after a power reset. I modified my custom board: added transistors to the DP pull up resistor to be able to disconnect it from 3v3 with code, but it does work, it won't reenumerate the device.When debugging, CDC_Control_FS() never get called.the function looks like this: I tried everything i can foud on the internet, but nothing worked.I have also read this: https://community.st.com/t5/stm32-mcus-products/usb-cdc-dont-work-in-debug/m-p/464797The USB variables when the communication is not working:and the registers:
Hi!I'm working on a STM32H7 running with FreeRTOS.I'm facing a quite particular bug. One specific variable, which is basically a counter, sometimes get its value corrupted.This happens inside an specific task, which is actually quite simple, and overall looks something like: //Task initialization ... variable_of_interest = 0; //Task infinite loop while (1) { //do some simple stuff variable_of_interest++; } I see that (apparently randomly) variable_of_interest sometimes just goes back to value '1' and stays like that, even if going through the loop again.First I suspected about some overflow so I checked all memory definitions for the FreeRTOS tasks, as well as system stack, heap, everything. There seems to be no issue and actually all stacks and heaps are quite free.Then I defined the variable as volatile, suspecting that it might be some optimization issue. Didn't work either.I also disabled cache, also didn't help.I defined the variable statically, outside the
Hi Community,I encountered an interesting issue: I first generated multiple FreeRTOS threads (in which the first thread is the dummy thread) using STM32CubeIDE (CMSIS V1) and then copied them to a CMake project. It worked well I have added a few implementations and all were good until the time came to remove the dummy thread. When it is being removed, it goes to execute the first thread but then moves into an infinite loop (this is verified by debugging and single stepping), and because of the watchdog configured for 5 seconds, it resets. And it repeats.Has anyone encountered this issue?
I'm working on a custom STM32H743IIT6 based board, and I'm trying to get USB device working. I've had some experience with the ST USB middleware, and have successfully implemented several projects using it. This is the first time I've tried to use AzureRTOS. I've been able to get MSC host working on the HS port, but I can't get the device side to be recognized.To streamline debugging, I decided to start with the Ux_Device_HID_CDC_ACM example code. I have an H745 DISCO board, and I was able to get the example running on the DISCO. The only thing I had to do was switch it to use the USB FS port instead of the HS port (the example is meant to be used with the H747 DISCO board). When it's running, I can see the HID/CDC device using a USB probe app on my Mac.I then tried to run it on my H743 board. Since it's so simple, I figured that I should be able to run the example with a few modifications. My hardware, like the DISCO board, has a 25MHz oscillator, so I shouldn't even need to change an
HiI am trying to develop a board based on ethernet connection. I have bought a nucleo-h723z board to get started.I would like to have a ping example up and running, but I have not succeeded...I am using CUBEIDE V. 1.15.1 and CUBEMX V. 6.11.1.I have carefully followed the article of: https://community.st.com/t5/stm32-mcus/how-to-create-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308#memory-layout.However, I am not using RTOS, hence those parts are skipped. I am aware of the smaller D2 RAM capacity of the h723 chip.I have checked the pin generated by CubeMX with the nucleo schematic.Debugging reaches main-loop, but when pinging I get "destination host unreacheable". I am on the same subnet etc from my PC.my main file: /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ******************************************************************************
I'm having trouble using STM32 to bind to the Webserver via the AT Command command. Connecting to the Webserver is fine, but the problem is that the site only runs a few times, the AT+CIPSEND command has a problem, data sent to ESP is 1 character error causing the data response process to be ERROR. Everyone shows me how to fix it.This is the problem that I encountered, the webserver run a few times, the AT+CIPSEND sending process is faulty at the letter E. I don't know what the fault is
Hello everyone,I am using FreeRTOS but i am confuse about seting priority, Should I give same priority to every task or different priority to all task.And also what is different between them.
Hi Guys, I am working on STM32F446 MCU. Everything is running fine. I just want to implement firmware upgrade over UART. As we know UART bootloader is already available in system memory we just need to jump over there to run it. I Have used below code to do so. void JumpToBootloader (void) { uint32_t i=0; void (*SysMemBootJump)(void); /* Disable all interrupts */ __disable_irq(); /* Disable Systick timer */ SysTick->CTRL = 0; /* Set the clock to the default state */ HAL_RCC_DeInit(); /* Clear Interrupt Enable Register & Interrupt Pending Register */ for (i=0;i<5;i++) { NVIC->ICER[i]=0xFFFFFFFF; NVIC->ICPR[i]=0xFFFFFFFF; } /* Re-enable all interrupts */ /* Set up the jump to boot loader address + 4 */ SysMemBootJump = (void (*)(void)) (*((uint32_t *) ((BootAddr[MCU] + 4)))); /* Set the main stack pointer to the boot loader stack */ __set_MSP(*(uint32_t *)BootAddr[MCU]); __enable_irq(); /* Call the function to jump to
Posted on January 08, 2015 at 04:51I understand this question has been asked before. I searched the forum and view these three threads: ''How to program the application flash file (hex file) in chosen flash area by using ST-LINK for STM32F0''''Flash Address setting to write main program starting from specific address''''How start running STM32 firmware from IROM2 ?''However, I still have some doubts. For STM32F407, there are 12 flash sectors. If I define the IROM1 address to be 0x080E0000, which is the 12th sector, can I then store data in the first 11 sectors, including sector 0 starting from 0x08000000? From the threads, it seems that I can't because some vectors are located in sector 0. Does it mean I can only use sector 1~11? #know-your-tools #flash #boot #stm32f4
HiI want to debug my Display ST7735 (128 x 128 px). For that i wrote a code which sets the screen line by line into green color. When i flash the code it works fine. When i try to debug nothing happens on the display. What can i do that the display changes the color during debugging?Here you see the configuration of the debugger:Here you see a screenshot of the code where each pixel (x,y) is set to GREEN color with SPI. w and h are the width and height of the display in pixel. This Code is from the adafruit library ST7735. Thanks for your answer,Raphael
Hi,Recently, while reviewing the code for USART handling, I came across the function UART_CheckIdleState. It is called at the end of the peripheral initialization. The name suggests that it checks the IDLE state, but the implementation does something else (checking the TEACK and REACK flag states). I looked a bit deeper and, apart from some differences in implementation, this pattern is repeated across different families of microcontrollers. So why such a name for this function?Best,msemegen
I recently have been working on a custom board with the stm32f030f4p6 for a gas sensor project, I just got it to bootload successfully and blink some LEDs so now I'm using the ADC channel to read values from it and converting it to a voltage level for testing sake (the final code will convert the values in ppm). I've noticed almost a 30% error in the com port that I'm reading from an L476RG I have hooked up to via some external wires and I'm not exactly sure how to make it more accurate. For example, the current ADC voltage value I'm reading is 2.36 on PuTTY but on my multimeter, I only see 1.86 volts. Here is a picture of the schematic: And the layout: The ADC is set to a 12-bit resolution and the sample size is at 1.5 cycles, I tried increasing the sample size but this didn't seem to do much.Unfortunately, when I made this board I didn't realize I read the datasheet wrong and chose a UART IC when this MCU can only use USART, so I have no way of reading from t
Hi,I am facing a strange issue with the configurations of the SPI. I have an external module which I am communicating with that with SPI2. In order to read its ID I am driving the CS pin low send the command to the device receive the data and CS pin goes high again. If I use only this function to my main program the result is as expected, but if I try to send another command like reading the status of the external module then It does not work. However if I use only the read status function (CS goes low, ......send command......receive....data....., CS goes high) it works correctly. It seems like I am unable to do SPI transmits and receives. I use the debug view and I checked that the CS pin is working correctly while I have multiple module definitions in the main function and also the SPI registers are the same as I had configured them. Furthermore, the GPIO pins are correct. Did you face such problem before? Could be this an issue because I haven't enable FPU?This is how I am configur
Hello,I've been trying to write my own HAL to replace the STM32 HAL and recently I have been trying to write an LwIP interface, with guidance from this forum and the examples provided by ST and other users.My Individual files compile fine, including my ethernetif.c and lwip.c files.The included LwIP library files however are throwing errors during compilation (see screenshots). Can anyone advise? When I compare to a Cube generated project, my IAR is including extra header files, such as bpstruct.h as shown below. I'm wondering if this is a project configuration error, as opposed to a source code error?Grateful for any comments.
We have a STM32F7 with LAN9354 3-port switch on our board. I created a custom PHY driver for the LAN device based off a similar LAN chip. In general, networking works. We can setup static IP, ping both to and from the board, also UDP connection is good. We're using ThreadX and NetX Duo from https://github.com/STMicroelectronics/x-cube-azrtos-f7When I add a second IP instance using nx_ip_create, only the second IP address is accessible. If I swap the code around (create ip1 before ip0), then the second IP address is only available. When I say 'available', I mean through ping. If I use arp command on my Raspberry PI, I can see both IP addresses with the same MAC address. This is not the exact code, just a portion. The remainder of the code properly sets up pointer allocated from byte pool, enabled icmp for both instances, arp, etc. without errors. ret = nx_ip_create(&IpInstance0, "NetX IP Instance 0", IP_ADDR
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.