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
Hi,I managed to successfully incorporate a webserver into our project with the following details:- STM32H753- Azure RTOS + NetX- 32Mb QSPI NOR flash (8Mb for webserver purpose, 8Mb for File system, some part will be for product use)- provision for SD card What I can do so far:1. Managed to display images from my file system on NOR flash2. Managed to post an encrypted binary file for firmware updates3. Show a basic web page with a select-send firmware file4. Running on HTTP for now (later HTTPS)These are all ok. I am at the point where I want to display web pages. What will be a good direction to achieve rendering web pages with probably 10 tabs (maybe similar to router setup and status)? Not sure if this is the correct forum for this. Apologies if not. I am a beginner in HTML. Rendering on my own is quite tedious because you have to consider member placement relative to screen size, tabs, text properties, etc. - I read about HTML drag-and-drop editors and converting to HTML c
Hi, I am having problems connecting my f429 board (nucleo 144) through ethernet with TCP. I followed several threads that i lost the link to, but here are my settings. and of course the LWIP configuration (everything not shown was left by default)i al turned on LWIP_BROADCAST_PING and LWIP_MULTICAST_PINGIPv6 and HTTPD are disabledand here for the PHY i tried with both, and none worked.also increased the heap sizeIn the code, on the main while(1) function, i have the: MX_LWIP_Process()The problem is that i try to ping the board, and i get timeout, never an answer.Can anyone se any problems or has any idea why?
Hello. Try to start ETH on STM32H733. ETH_DMAMR_SWR setted by HAL in HAL_ETH_Init() but do not reset by device during timeout 500ms and even 2000ms. The same code run over STM32H723 perfect. I am try this https://community.st.com/s/question/0D53W000003xOGUSA2/stmh7-ethdmamrswr-fails but still no work
Hi everyone!I'm experiencing on ethernet communications using a NUCLEO-H755 board.I already configured the LWIP stack on the M4 core and it seems work.Now I'm trying to make it work on the M7 core following this guide:https://community.st.com/t5/stm32-mcus/how-to-create-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308 Compared to the guide, in my project thereare some differences:1) Memory mapping2) I've integrated the MX_LWIP_Process function in the main() infinite loop (instead of the udp message test).By this way, LwIP stack seems to work also on M7: I'm able to ping my board.But if I try to ad some more code to the infinite loop, it results in an LwIP assertion failure with this message:"Assertion "pc->custom_free_function != NULL" failed at line 767 in C:/Users/PF5766/Documents/REPO/NucleoH755ZI/H755lwipTest/Middlewares/Third_Party/LwIP/src/core/pbuf.c"then the board enters in Hard-fault./* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER COD
I'm trying to build a Custom HID project to mimic a certain device. I've prepared the description bytes packages and everything is working fine as long as I continuously send data. When I stop sending, device goes to LP and SUSPEND mode. I couldn't find the way to resume again. Please guide me throughUsing HAL Libraries FW_F1 V1.8.4Best regardsZeki
We use STM32CubeMX and STM32U5. STM32U5 supports linked list DMA transfers. But HAL_ADC_Start_DMA() will not do a transfer larger than 64k. It only creates the first element in the list and exits. In addition, HAL_ADC_Start_DMA() doesn't give an error when Length > 64k, instead it trucates the uint32_t to 16-bits silently.
Hi ST Team,We are planning to use the STUSB4500 in one of our projects. For testing we are using the EVAL board, We are facing some difficulty understanding PDO,s Register bits while programming to the controller and we have few more questions listed below.What is the role of the PDO Register bits from B23-B31 (as mentioned below attached image)? Need full description and how it works on PDO power negotiation B31:30 - Fixed supply B29 - Dual-role power B28 - Higher capability B27 - Unconstrained power B26 - USB communication capable B25 - Dual-role data B24:B23 - Fast role swap required USB-Type-C current What are the procedures to save the value in the NVM register after configuration?How to Program between flexible current values and predefined values, is there any flag r register to set, and how the current selection happened by the controller between flexible current values and Predefined values?
Hi, I have to write the value ADC_CONFIG_REG = 0x9FFF in a register with dimension of 16 bit. I write the following line of code but I receive a warning because the fuction want an uint8_t pointer but in my case the register and the &ADC_CONFIG_REG is 16 bit. Can I ignore the warning or I have to modify my code? Moreover can I read a register with the function HAL_I2C_Mem_Read or there are best function to use?HAL_I2C_Mem_Write(&hi2c1, addr_dut1_V, ADDR_ADC_CONFIG_REG, I2C_MEMADD_SIZE_8BIT, &ADC_CONFIG_REG, sizeof(ADC_CONFIG_REG), HAL_MAX_DELAY);
Can anyone please tell me? how can I separate gpio s which can be operated with 5v and 3v.
Hi Community, I am trying to define a custom Hardfault_Handler definition in the assembly to overwrite the default template given in the stm32xxxx_it.c in the STM32CubeIDE generated code. When the definition is put under custom.s and added to the assembly include path in the IDE it compiles without any warning or error but when in a debug session it is found that it jumps to the default Hardfault_Handler implementation instead of the custom. The default one is suppressed by defining __weak attribute to use the custom definition. What might go wrong? Any hints to solve this will be helpful.
HiiI'm interfacing External adc with stm32f429I want to read 16-bit parallel data from ADC and connected16 lines from ADC to GPIOA GPIOA->IDRhow the data is stored in IDR and how to access the input data register continuously for every sample. Thank you.
Hi, I have an STM32H723ZG and I want to transmit a matrix in which I stored some measured data on a CAN bus. I can use the following function only writing the pointer to the matrix in "pTxData" or I have to segment the matrix?HAL_FDCAN_AddMessageToTxFifoQ (FDCAN_HandleTypeDef * hfdcan,FDCAN_TxHeaderTypeDef * pTxHeader, uint8_t * pTxData)Moreover, I have to define manually the "pTxHeader" or is it created automatically by the STM32CubeMX?
Hello,I want to use the SensorTile.box to collect IMU data over BLE. I tried modifying the BLESensors source code to suit my requirements (by increasing the characteristic size etc.). But the ST BLE Sensor app doesn't seem to support this. I only receive one sample at a time. Is there any way to do this? Code Snippet 1:#define BUFFER_SIZE ( 32 )if (InertialFeaturesEnabled.AccIsEnable == 1U){for(int i = 0; i < BUFFER_SIZE; i++){STORE_LE_16(buff + BuffPos, ((uint16_t)Acc[i].Axis_x));BuffPos += 2U;STORE_LE_16(buff + BuffPos, ((uint16_t)Acc[i].Axis_y));BuffPos += 2U;STORE_LE_16(buff + BuffPos, ((uint16_t)Acc[i].Axis_z));BuffPos += 2U;}} if (InertialFeaturesEnabled.GyroIsEnable == 1U){for(int i = 0; i < BUFFER_SIZE; i++){STORE_LE_16(buff + BuffPos, ((uint16_t)Gyro[i].Axis_x));BuffPos += 2U;STORE_LE_16(buff + BuffPos, ((uint16_t)Gyro[i].Axis_y));BuffPos += 2U;STORE_LE_16(buff + BuffPos, ((uint16_t)Gyro[i].Axis_z));BuffPos += 2U;}} ret = ACI_GATT
I have a stm32f407vg development board. I want to make a pedometer project with the lis3dsh sensor on this development board. I couldn't find enough resources and examples. I need to make this project in C.Can you help me please?
Hi, I would like using SD card with FATFS and read/write to SD card.If i have bare-metal FW without DMA template enable it is work.But if I enable DMA template f_mount, f_open return FR_OK but f_write, f_read Disc_error.I setted in CubeMX SDMMC1- SD 1bit.In DMA window added shared DMA channel (RX/TX SDMMC)In Fatfs enabled dma template.But doesnt work.If in FatFS disable dma template, read/write is work propertly.I using STM32L496RGCubeMX 6.1.1FW package 1.16.0Please help.thank you
I am facing a issue as follows " I am currently working on a project that involves integrating USB functionality for data transfer and data logging on an STM32F407VG micro-controller. Specifically, I want to log data files on an SD card and enable the user to download these logged files from the SD card via USB. Additionally, I'd like to allow users to copy files from their PC to the SD card via USB, all through the STM32F407VG using the SDIO communication protocol.I'm facing a challenge in making the USB_OTG_FS (On-The-Go Full Speed USB) and the SD card (using FatFS) work together seamlessly. I would greatly appreciate your guidance and any insights you might have on how to achieve this integration." Here is my sample code:#include "usbd_storage_if.h"extern SD_HandleTypeDef hsd;#define STORAGE_LUN_NBR 1#define STORAGE_BLK_NBR 0x10000#define STORAGE_BLK_SIZ 0x200const int8_t STORAGE_Inquirydata_FS[] = {0x00,0x80,0x02,0x02,(STANDARD_INQUIRY_DATA_LEN - 5),0x00,0x00,0x00,'
Hi STM team,I am using the STM32WL55CCU6 MCU on a custom PCB project. I actually have two of these. One is working as a master, while the other operates as a slave. My slave device is working properly, but the master is not. Problem Statement: When debugging, a tab appears with the information: "Reset_Handler() at 0x80021e0". Attached is a screenshot. I am not sure what is causing this, but I think it is blocking my code from executing properly because when I place breakpoints at the printf() and APP_LOG() debugging statements, these do not execute, and no output is shown on the terminal. Note: under Properties > C/C++ Build > Settings MCU GCC Assembler > Debugging I have set to maximum (-g3). Under MCU GCC Compiler > Optimization I have set to None (-O0). When I change these configurations to default (-g) and optimize for Debug (-Og) respectively, the warning tab that appears changes to: "main() at 0x8000a94". Attached is a 2nd screenshot depicting this.&nbs
Greetings,trying to get a setup with stm32h753 running FreeRTOS and LwIP. One attempt in this journey was to take the example: How to create project for STM32H7 with Ethernet an... - STMicroelectronics CommunityUsing the example code, I see one issue with the core lock - if the breakpoint in ethernetif.c line 987 is enabled I see the code suspends in places one would not expect it to suspend such as: If I disable the breakpoint, ping works ok.However even with this example the code quite often (if not always) gets stuck to Ethernet output, it seems that a packet comes down to ethernet low_level_output function, but never gets out to the cable. Suspecting it is a DMA issue, but had no luck locating the issue yet. Any ideas?Thanks!
Hi,I've been using an STM32L151 for a number of years...long enough ago that the firmware I wrote uses the SPL, not HAL, and I'm really not interested in re-writing the firmware!My problem is that a new I2c device I am connecting requires a RESTART between writing a command and reading the data. I have seen this problem from HAL users, and they are told to use the memory access routines rather than the standard routines. There are no such things in the SPL.I have removed the call to I2C_GenerateSTOP following the transmission of the command, but now I get an interrupt that says there was no ACK.Can anyone either make a suggestion, or point me to some example code? I guess I should say that I am using a real-time OS with devices working with interrupts, so code or suggestions that say "loop until bit x is set" don't help too much unless bit x being set can generate an interrupt.Thanks!P.S. I have had an account and conversations in the forum over several years, but app
Hello Team,Finding difficult to configure ethernet as MII without RTOS in STM32H745I DISCOVER BOARD.In command prompt when command PING IP address of board is entered every time it shows timeout. Find images enclosed. Kindly guide me. Best Regards,Gagan Gowda
I have used several different STM32 devices over the years, but never experienced this problem. It´s simple: I cannot get the ADC´s on th H5 series to work. Is there anyone who can suggest (low level without STCubeMX etc.) the following two functions for STM32H562 ?"void ADC1_init(void) {}" and"unsigned short read_ADC1(char) {}"regardsRolf Myhrer-my@online.no
Hi, We are using STM32H7, and we found that the following instruction doesn't work: /* Test if user code is programmed starting from address 0x08020000 */ if (((*(__IO uint32_t *) USBD_DFU_APP_DEFAULT_ADD) & 0x2FFC0000) == 0x20000000) <--- It is always FALSE. Despite there is user code! { /* Jump to user application */ JumpAddress = *(__IO uint32_t *) (USBD_DFU_APP_DEFAULT_ADD + 4); JumpToApplication = (pFunction) JumpAddress; /* Initialize user application's Stack Pointer */ __set_MSP(*(__IO uint32_t *) USBD_DFU_APP_DEFAULT_ADD); JumpToApplication(); } We've tried with the mask: & 0x2FFC0000 and & 0x2FFE0000What could be the issue? Another mask is needed for stm32H7?Thank you BR
Hi,I tried to interface a STM32F107 and a 5 port ethernet switch KSZ8895RQXIA with the RMII interface.I'm not sure about the configuration (strap resistor) on the ksz.I configure it as SW5-RMII MAC to MAC Conneciton (PHY mode) :Pin 91 : PD / 86:PD / 87: PU (floating) with external 50Mhz oscillator (Pin 101: PD)and I connected all RMII signals as p34 said.The switch is workin on all 4 port, but i have no connection with my STM32.I'm using HAL library and LwIP.It fails to do HAL_ETH_Init();On cubeMX i set the ethernet configuration as if i have a lan8742A. The thing is that I don't have a PHY, but a mac. Is that configuration can work ? Can i Use HAL and lwip ?Do i Have to add a PHY between the STM and KSZ (I did that previously and it's working, but I wanted to get rif of the lan8742A to simplify the board)
..
Hello Everyone!!i am using HAL_UART_RxCpltCallback function in my program, whenever i receive 9 bytes of data via uart an interrupt will trigger and the above mentioned function will get called and execute but the issue is if i sent a 9 bytes command for the very first time then it is not responding to that command and from 2nd time onwards it is working properly. may i know the reason why the callback function not working for the very first time when cmd is sent and y it is working properly from the next time onwards. here are few pics about my code.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.