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 followed your videos where the implementation of the USB HOST HID is explained. However, the development board I am using is different from the one shown in all the videos. So the VBUS control circuitry does not exist in the STM32F446RE nucleo documentation.As it does not exist, an error is generated when generating the code.How is the MXCube configuration made for the STM32F446RE nucleo development board? How is the VBUS pin activated?
Both example and KB article depends on FreeRTOS. Is there any real need to use FreeRTOS? In past I used LwIP without FreeRTOS just calling MX_LWIP_Process(). What do I need to do to get rid of FreeRTOS, is it enough to just disable it in STM32CubeMX and disable Ethernet Global Interript? I am afraid I run into some kind of Ethernet driver hidden problem.
..
So I Am trying to use the dual regular simultaneous mode with DMA transfer, I tried to use one ADC with the DMA transfer and It works fine but with 2 ADCs I use the function HAL_ADCEx_MultiModeStart_DMA() but the called back function is not actually called so the HAL_ADC_ConvCpltCallback() is not called which means no conversion is happening also the buffer is empty does anyone have any idea how to fix that?here is my main.c code:https://drive.google.com/file/d/1ve5XwGVgaSBvuDYn4lMT79EXxj1-ykCd/view?usp=sharing
I have read the datasheet where this part of ethernet is explained. But I have not clear of all taking it to a practical case. Case: Client is sending constantly requests to the stm32f207 HAL based with Lwip stack and no RTOS udp server. Client requests has between 2 and 20 bytes of data payload. Every request payload is put in a frame. Every frame has its overload bytes due to MAC, ip and udp headers. I'm wondering what happens with those frames when they achieve MAC controller and the follwing blocks: FIFO and DMA, since FIFO has 2Kbytes, and MAC sends the frame to the DMA by a frame descriptor (struct type). But FIFO are in the middle of these two blocks and I don't know what FIFO does with the DMA descriptor. So please, let me know if something that I'm go to say is wrong:As the payload are very short I guess that received frame will be treated being not truncated. It is only one ethernet dma descriptor object for allocating received data from remote hosts. (not an array of descrip
Each time I call SET_BIT to set a bit the register value remains at 0. All registers are 0 even after writing, as though they are read-only. For example, the following does not set the bit:DMA2_Stream0->CR |= ((uint32_t)1);What am I missing?Thank you!
hi there,we have done project on stm32h743, having USB MSC. i have tested 5 board out if which three board showing file in Fatfs Using USB MSC and remaining are not showing anything though it it has file in it. I don't know how come this happening.what is the possibility of bug in my code, please guide me.
Has anyone tried to get ethernet over PMOD or perhaps with Arduino working on the STM32747i discovery board? I need ethernet but modifying the solder bridges is not something I can do.Maybe I could use the STMod+ expansion board and try the mikroBus connector? Thanks.-bill
I have two STM32F7 processors set up in SPI Master/Slave configuration. When the slave wants to transmit data to the master, it issues an interrupt and the master reads 4 bytes. The first two are the number of data bytes to read, the second two is a command code. The master waits for a go-ahead interrupt, then reads the rest of the bytes.At times, I'm seeing the first byte of the 4-byte transfer duplicated in the data transfer - thus shifting the bytes by one, and adding one byte to the transfer. This may make more sense by looking at the captures from the logic analyzer. I am using HAL_SPI_Transmit_IT to the master, and HAL_SPI_Receive_IT on the master side to receive the bytes.The transfer rate is 14 MHz. Slowing the clock down makes no difference. Using SPI_NSS_PULSE_DISABLE or SPI_NSS_PULSE_ENABLE does not helpOn the Master side, using SPI_NSS_HARD_OUTPUT or generating the NSS signal manually makes no difference.The only thing that seems to help is enforcing a minimum transfer rate
Hello All,MCU - STM32G0B0RET6 supports USB bootloader.When I first connect my USB to my PC, it is recognised as "DFU in FS Mode". Then I flashed a simple GPIO control application code (*.elf) through USB, and after restarting the board, my PC no longer detects USB.Is it necessary to include USB support in the application code to make the USB bootloader to work?I have no idea what I am missing! Please advise.Thanks & Regards,VM
Discovery STM32F407 USB Disk driver creates two files, details.txt and mbed.htm, I've searched for strings with these names but they must be encoded.Anyone know how to remove them?
Im using stm32f207 HAL library, LwIP stack with RAW api, no RTOS for an UDP server implementation. Server is receiving frames by polling way because of client nature demands. Client is constantly asking server for reading mcu inputs and asking for writing mcu outputs. Data payload per request from client to the server and data payload per answer from the server to the client are less than 20 bytes. Minimum one could be 2 bytes. According some statistics his communication reaches 900Kb/sec but Ethernet is configured for 100Mb/sec. It seems to be a great margin and not seems to be too much stressed. Digital IO reads/writes probably are the most speedy hw operations in therms of CPU processing.Server could be working and attending 1, 2, 3 even 4 python clients during 12 hours even bit more and sometimes only for 1 hour. Suddenly client stops receiving answers from server.using breakpoints we can see that server has no more reception requestsHAL_ETH_GetReceivedFrame (&heth) call is not
I am using Nucleo F411RE dev borad. When I using the FreeRTOS, I found that the xTaskNotifyFromISR always stuck.my handler function as below and I can enter it normally.the program stop at --------------------------------------------------------------------------- /* USER CODE BEGIN 4 */ void button_interrupt_handler(void) { SEGGER_SYSVIEW_PrintfTarget("button_interrupt_handler\n"); BaseType_t pxHigherPriorityTaskWoken; pxHigherPriorityTaskWoken = pdFALSE; traceISR_ENTER(); SEGGER_SYSVIEW_PrintfTarget("next_task_handle %X\n",next_task_handle); SEGGER_SYSVIEW_PrintfTarget("eNoAction %X\n",eNoAction); SEGGER_SYSVIEW_PrintfTarget("pxHigherPriorityTaskWoken %X\n",pxHigherPriorityTaskWoken); xTaskNotifyFromISR(next_task_handle, 0, eNoAction, &pxHigherPriorityTaskWoken); //xTaskNotify(task2_handle, 0, eNoAction); /* once the ISR exits, the below macro makes hi
Hi allCurrently, I am working on a project in which I have to design an application in such a way that it should support DHCP and static IP mode based on user choice. And this would be in FREERTOS. Users can back and forth between static and DHCP modes. Should it be possible?If possible please suggest me a way.@Piranha could you please help me?
I'm trying to understand the documents (having in mind this stm32 document: AN3384), stm32 examples and comments on some source files from this stack in order to choose the correct options for my application.According to the literature I see there are 3 types of pbuf: ROM, RAM and POOL. Some authors say that: PBUF_POOL can be managed as a pools of dynamic memory (heap) that can be freed after being used. But it can also be used as static memory pools. But reading literature "pbuf allocation is performed from a pool of statically pre-allocated pbufs". The way for having static or dynamic pbufs is enabling one of this two options: MEM_USE_POOLS or MEMP_MEM_MALLOC. Source code comment says about PBUF_POOL: "pbuf payload refers to RAM. This one comes from a pool and should be used for RX... Don't use this for TX with TCP packets".PBUF_ROM is for constant data payload that doesn't change. PBUF_RAM only can be used as a dynamic ram memory. Only MEMP_MEM_MALLOC.Regarding point 1: Are the
I want to perform a bulk transfer from the STM32 device to my host device. Is stm32 USB stack support it support.
Issue is with STM32G071KBU. We are using PA8 as a PWM output and the internal 5.1k pull-down for USB-C charging features is causing problem. We would like the output to be "hi-z" when the power is removed like the other gpio.During the run-time, PA8 is in push-pull mode and we can easily disable the internal 5.1k pull-down. However, we want this pull-down to stay disabled when the chip's VCC is removed. We have an external pull-up on that pin for a gate driver to stay ON when we loose the 3.3V of the micrcontroller, but the internal 5.1k is put back when the power is removed, hence pulling the voltage low. The only way to disable the PA8 internal PD we found is to put a pull-down resistor on PA9 , which we cannot do because it is use in a similar fashion with another PWM output.
I have SPI set in Master Receive Mode Only and my code does work when not passing data to DMA.
I'm working with stm32f207zg ethernet based project with LWIP stack, no RTOS and using HAL library. I have an udp server application implemented and running over there. It's talking with a python udp client. Not much data bytes on the udp transmitted packets.Server is working under stress test: 1) Every client sends the same command in a infinite loop, waiting for answers, in a constantly way (same ratio). 2) Clients sends data request to the server and the server sends to them 16 payload data bytes. The question is that after some working hours under stress test the server stops. Connection is lost because server stops receiving any frame. After this, when client try to send frames, I can see how descriptor STATUS register has not set any error bit, but OWN bit is set for ever. DMA descriptor is not passing to the MAC core any more. So I decided to use HAL_ETH_ErrorCallback() in order to get new information about possible errors that triggers this callback call. Questions:But I would
Hi,My Controller is STM32G473RE . Sample rate is each 2.8 ms .I have created a filter with mathlab which presented me with plain C code.This code does exactly what i want and gives the expected results.int16_t input[3100]={4582,4581,4573,.... double b[60] = {0.00124338459832230, 0.00125334840954137, 0.00128321129425865, 0.00133289003835827,.... void inputdata() { for (int i = 0; i < L; i++) { x[i]=input[i]; } for (int i = 0; i < M + M; i++) { _x[i] = 0; } for (int i = 0; i < L; i++) { _x[i + M + M] = x[i]; } } void filter() { for (int n = M + M - 1; n < L; n++) // loop over data samples { double sum_b = 0; // sum of b[k]*x[n-k] for (int k = 0, p1 = n, p2 = n-M-M+1; k < M; k++, p1--, p2++) // loop over b coefficients { sum_b += b[k]*(_x[p1]+_x[p2]); // update sum_b } testBuffer[n - M - M + 1] = sum_b; // compute output sample } } void fir_task() { // Process the filtered output as needed // ... inputdata();
I have a custom board here using the STM32G0B1CBT6 MCU. After generating a project with CubeMX (6.8.1) the USB device mode isn't recognized by the OS. Neither CDC nor HID. But as soon as I have it jump to the bootloader the DFU USB device shows up just fine (no reboot, just deconfig & jump). The clock is set to use HSI48 so that can't be it?
I am trying to develop simple HTTP Web Server using NUCLEO-H745-ZIQ board.The idea is to have file system to store our HTML web pages.Do you have an example code to achieve this ? Or else please suggest us a way to have file system to load our html pages using NUCLEO-H745-ZIQ board.
Hi amazing community.. I am searching a repo for testing the usb reading function (usb host) for my new evaluation board stm32F429disco1 (the new version with display) .I have just found examples for the older version of the evaluation board. Can you provide a link or exact website with this example ? Thanks
Hello,I am trying to make MQTTS connection by W5500 chip. I am using STM32F411 and generating code with STM32CubeMX and compiling with Makefile. I’m unable to find any sample code that works for this, Please share if anyone have any idea how can i make this possible. I alredy tried and I have MQTT working with this setup but unable to find any example showing how would i proceed with certificates and key while connecting MQTT over secure port.I tried with paho-mqtt-embedded-c libarary but in that I was not able to find a way of working with certificates.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.