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 been using a stm32f051 as a slave on i2c1 without any problem. Then I started to use it as a master on i2c2 at the same time. This caused the communication on i2c1 to fail with varying frequency. I have been using the i2c drivers with interrupt from the HAL library. I connected a logic analyzer to the i2c lines and located where the error occurred. The first image shows how the part where the error occurs should look like, where the master wants to read from a specific address (0x10) from the slave (the stm32) using a repeated start.The last two images shows the same part of the communication on i2c1, only here is also communication on i2c2 (stm32 as master).For some reason the stm32 sends a NACK on i2c1. The error only occurs when the communication on i2c1 and i2c2 are aligned in a specific way, as can be seen in the above images, where there is a write on i2c1 at the same time as a read starts on i2c2.I couldn't find anything regarding this limitation in the reference manual.
Hi everybody,I am working with AZURE RTOS and I have implemented an HTTP web server application. I started from the example available in CubeIDE. Everything is working properly but now I need to modifiy the HTTP web page. For this, it is necessary to generate a .bin file from the .js, .css and .html files:Could somebody help me with this issue? I think it should exists a script or something like that for it.Thanks in advance.
I have ported the example code over to STM32H743i-Eval and have it compiling OK. But testing is another issue as there is little information to go on for how to set-up a client PC and connect to the ethernet port on the eval board. I am assuming that the webserver gets html pages off of the sd card and makes them available to what ever is connected to the network port but there is no detail regarding settings on the PC or an IP to browse, etc.Anyone have experience with this or know where some more detailed documentation might exist?
Dear everyone,I'm not able to know is it possible to add an external flash (SPI) to a MCU for saving data (FATFS) AND get the data available on USB Mass Storage.A lot of library exist for SPI flash, the most knowed >"https://github.com/nimaltd/w25qxx/blob/master/w25qxx.cBut... what about the Mass Storage ?
Hello,I have a board with STM32F407VET microcontroller, W25Q16 and microSD connector.Writing and reading information from W25Q16 without USB works (using library https://github.com/nimaltd/w25qxx).SD card via USB works (I found an example somewhere, I definitely couldn't do it myself).Can you advise what I am doing wrong in this project? There is nowhere else to go wrong, except "STORAGE_Read_FS" and "STORAGE_Write_FS", but what is wrong I can't understand.Maybe someone has an example of USB Mass Storage with a different SPI Flash?
I have been trying to debug my custom Azure RTOS NetXDuo application (which is based on the Nx_Tcp_Echo Server example code). My application gets stuck in a loop that it cannot return from after reading the socket_state of an established socket. The application runs correctly, but at some point (for some as-yet-unknown reason) the socket_state changes from NX_TCP_ESTABLISHED to either NX_NOT_CONNECTED, or NX_NOT_LISTEN_STATE. Based on the code of the example, the application interprets this as IDLE state, which is not correct. At this point a client can no longer connect to my server application.Here's the code.while(1) { ULONG socket_state; TX_MEMSET(data_buffer, '\0', sizeof(data_buffer)); /* get the socket state */ nx_tcp_socket_info_get(&TCPSocket, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &socket_state, NULL, NULL, NULL); /* if the connections is not established then accept new ones, otherwise start receiving data */ if(socket_state != NX_
I'm using ST's USBPD middleware library and have it successfully working as both a source and a sink. However, I have a use case where I will need to de-initialize the USBPD library and reset the state machine back to it's initial state. Ideally when this happens, the loadswitch opens and power to the accessory is killed. I can't find an easy way to fake a dettach event, or even to de-initialize the USBPD library and reset the internal state machine. Are there functions that support this?
Could someone please help me to convert My tested arduino code on STM32, now using HAL apis to drive same code :#include <Wire.h>int16_t X, Y, Z = 0;const uint8_t STK8321 = 0x0F;const uint8_t startRegister = 0x02;void printAcceleration() { byte acceleration[6]; Wire.beginTransmission(STK8321); Wire.write(startRegister); Wire.endTransmission(); Wire.requestFrom(STK8321, 6); uint16_t XL = Wire.read(); uint16_t XH = Wire.read(); X = (XH << 8) | XL; X = X >> 4; uint16_t YL = Wire.read(); uint16_t YH = Wire.read(); Y = (YH << 8) | YL; Y = Y >> 4; uint16_t ZL = Wire.read(); uint16_t ZH = Wire.read(); Z = (ZH << 8) | ZL; Z = Z >> 4; Serial.print(" X "); Serial.print(X); Serial.print("/"); Serial.print(" Y "); Serial.print(Y); &nbs
..
I'm trying to build a simple hello world program with STM32F103 board using SWD debugger and ITM feature. But when I plug my USB cable on my PC, I have my LD1 and LD3 always in red light. Is that a problem? If so, how to solve?
Howdy!I'm in the process of building a product with a USB class compliant audio building from of the sample at https://www.st.com/en/embedded-software/x-cube-usb-audio.html (thanks!).I've got the audio_10 class driver integrated with my application and starting to debug. Right now, when the target is connected to a Windows PC on the USB device port, USB handshaking begins, the PC assigns an address and interrogates for capabilities, and then sends a `IRP_MN_QUERY_DEVICE_RELATIONS` request for a `RemovalRelations` property. It looks like the library doesn't support this; my trace from USB Analyzer (Eltima Software) is reporting that the device is returning a `NOT_SUPPORTED` error.Immediately after returning `NOT_SUPPORTED`, the PC sends an `IRP_MN_SURPRISE_REMOVAL` to unmount the device, followed by a `IRP_MN_REMOVE_DEVICE`. I've got a STM32F769I-Discovery board on order to test this the sample unmodified, but I'd love to know if folks have any ideas while I'm waiting for delivery on th
Hi, I'm reading the AN5496 - Rev 3. I'm confused by equation (6) and (7). If all they are the transfer function of the closed-loop system, why there are different?Thanks.
Hello Support Team.Good Day.We are considering the dual-core MCU STM32H745 as per our product requirements. It contains two core Cortex®-M7 and Cortex®-M4 processors. As a result, we want to assign one core use as safety-critical (for metering/protection logic/relay driver) and the other core use as non-safety-critical (communication / led indication).When we will go to certification that time we will only certify the safety-critical code.We will provide CRC of safety-critical flash areas when we will go to certification. If I change the non-safety-critical code, this safety-critical flash area CRC must not change. Does the STM32H745 Series support this type of isolation? If you have any examples or documents, please share them with us.ThanksHiren R. Thumar
Hi, I am trying to use the new HAL Ethernet driver from STM32CubeIdeF7 v1.17.0. I tried to run STM32F7508-DISCO/Demonstrations/STemWin with IAR compiler but i received build errors, I tried also with GCC compiler but I have errors after I imported project in workspace I see (Orphaned toolchain fr.ac6.managedbuild.toolchain.gnu.cross.exe.debug.1488075826). Can you please share a working example with the new HAL Ethernet driver from STM32CubeIdeF7 v1.17.0, (I am using STM32F7508-DK board, STM32CubeIDE 1.9.0 and IAR Embedded Workbench IDE 8.50.4)?Thank you, Best regards,Alin
stm32G071 UCPD SINK code answers GOODCRC after received SRC_CAPABILITY,but USBPD_PE_SetDataInfo Funtion was not Execute after GOODCRC,why?
I can get the bootloader to work fine on USART1 but can't seem to get anything from USART2. Is there a trick to making the second USART port work? I have checked the output from my test serial port on the logic analyzer and it seems correct and is sending out the 0x7F to wake the chip up. No response from the chip.
My project uses stm32h753 and Azure (ThreadX and USBX), I want to have USBFS as CDC and USBHS for DFU. In CubeMX how do I specify which USB interface is for which device class, or it should be done in code?
I need help with an issue regarding STM32L462RE (B-L462E-CELL1).How do you connect the modem to a network?I have been trying to use X-CUBE-CELLULAR.I flashed the binaries and know I can get some info from the modem, however i can't connect to the networkIt keeps sending itself at commands and not connecting to the network.
I'm not able to create txt file, what issue , can you provide source code? please help me.
Hello, has anyone been able to use the Ble Module (SPBTLE-1S) of the STEVAL-MKSBOX1V1 (SensorTile.box) on the Zephyr RTOS?We are struggling trying to configure the DTS and CONF files to be able to run a simple Zephyr BLE example:https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/bluetooth/st_ble_sensorBelow we provide our tentative (not working) DTS and PROJ.Thanks in advance for any help.prj.conf:CONFIG_BT_SPI=yCONFIG_BT_HCI=yCONFIG_BT=yCONFIG_BT_DEBUG_LOG=yCONFIG_BT_PERIPHERAL=yCONFIG_BT_DEVICE_NAME="SPBTLE-1S"CONFIG_BT_GATT_CLIENT=yapp.overlay:/ { chosen { zephyr,bt-hci-spi = &zephyr_bt_hci_spi; zephyr,bt-hci-spi-slave = &zephyr_bt_hci_spi_slave; };};&spi2 { pinctrl-0 = <&spi2_nss_pd0 &spi2_sck_pd1 &spi2_miso_pd3 &spi2_mosi_pc3>; pinctrl-names = "default"; status = "okay"; cs-gpios = <&gpiod 0 GPI
Hello ST team,I am working on a project, for which Safety functionality to be implemented. We are making use of X-CUBE-STL package for following self-test,Arm core testInvariable memory test (Flash)Variable memory test (RAM)I understand that there is also one more package called X-CUBE-CLASSB which is freely available in ST website, which uses HAL libraries to achieve tests like RAM, FLASH Clock etc.But in the project which I am working on, doesn't use HAL libraries, instead we have developed our own Drivers for the peripherals like UART, SPI, CAN, TIM etc. In such case how can I use the X-CUBE-CLASSB package without having dependencies on HAL.Kindly give me inputs on this regard.RegardsAjeeth Kumar
Currently, I am working on creating a WiFi driver for EMW3080, which is integrated into the STM32U585I-IOT, for a commercial RTOS. Unfortunately, I have not been able to locate any programming guide or technical reference manual that would assist me in understanding how to communicate with the EMW3080 that is connected via the SPI bus.Upon reviewing the EMW3080 datasheet, it appears that AT commands are used to communicate with the WiFi module. However, I am still unable to locate any information regarding the specific commands or how to utilize them. I would greatly appreciate any guidance you can provide regarding where to find the documentation necessary to communicate with the firmware running on the EMW3080.Moreover, I can see that a TCP/ IP stack is running on EMW3080 which means that we get the processed packets from the stack. Is there any way we can get the raw packets so that we can use the native TCP/IP stack running inside Host OS?
I'am looking for a working example of using the legacy USB driver found here (https://github.com/STMicroelectronics/stm32u5-classic-coremw-apps) for the STM32u585 preferabley in the STM32CubeIDE. I'm not able to use USBPD which is found in the examples folder. Therefore i'am asking for a minimal working example for this. Thank you.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.