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
Posted on June 11, 2018 at 08:33 Hello, I am using STM32L476RE MCU for one of my application which publishes some data to server using MQTT and my wifi module communicates with MCU with USART2.I am using atollic truestudio to write a code and debug it.I am using ST LINK V2 as my debugger.Now the problem that i am facing is that when i flash a code to MCU and debugger is connected then it runs fine but as soon as i remove debugger and turn off power and again power up the circuit then it doesnt work.I wrote a simple code for GPIO toggling it runs fine without debugger connected.I have attached the code that i have wrote.Same code works absolutely fine with STM32F401RE.Please help as soon as possible. Regards, Pradeep Choudhary #stlink-v2 #stm32l4 #por-issue Note: this post was migrated and contained many threaded conversations, some content may be missing.
Looking for a bit of advice.I'm developing a full speed USB audio class device using USBX and ThreadX. So far, I've successfully rebuilt the provided example written for the H743 eval board on an F407 Discovery board. The device enumerates correctly and can successfully playback audio (albeit with some expected pops due to lack of asynchronous feedback).I'm now faced with an issue where playback doesn't always start. The Audio_ReadChange() function is always called with the correct alternate setting (0/1) but when the _ux_device_class_audio_read_thread_entry() thread is resumed, the loop often breaks and suspends after checking the return status of the _ux_device_stack_transfer_request() function, which returns UX_TRANSFER_BUS_RESET rather than UX_SUCCESS.Can anyone verify if the same issue persists when running the example on the H743 board? I'm not sure if I've gone wrong somewhere when porting to the F407, or if the issue might lie within the DCD itself.Here's my current project if
I'm trying to build an audio project using STM32H747 MCU. I wish to configure the cortex M7 to process the audio in and out buffers. I'm trying to work with double buffers of input and output. the DMA should handle the transactions to and from the i2s peripheral. HAL_I2SEx_TransmitReceive_DMA(&hi2s2, (uint16_t*)&outBuffer[0][0], (uint16_t*)&inBuffer[0][0], AUDIO_BUFFER_U16_STREAMS/4); and the half & full complete callbacks are: void HAL_I2SEx_TxRxHalfCpltCallback (I2S_HandleTypeDef *hi2s) { pInBuffer = &inBuffer[0][0]; pOutBuffer = &outBuffer[0][0]; // SCB_CleanDCache(); // SCB_InvalidateDCache(); dataReadyFlag = true; } void HAL_I2SEx_TxRxCpltCallback (I2S_HandleTypeDef *hi2s) { pInBuffer = &inBuffer[1][0]; pOutBuffer = &outBuffer[1][0]; // SCB_CleanDCache(); // SCB_InvalidateDCache(); dataReadyFlag = true; } and all I'm doing in the super loop is to copy the input to the output when I have dataReadyFlag == true. I
..
Hi, after of much struggle in the programming, seeing the tutorial of controllers_tech, can create files and directories in usb memory. I had problems with these case, when insert the usb memory the flow of program enter in Application_Start but never went to Application_Ready. case HOST_USER_CONNECTION:Appli_state = APPLICATION_START;break;case HOST_USER_CLASS_ACTIVE:Appli_state = APPLICATION_READY;Mount_USB();...break;Then seeing some thereads about these problem, found that the file usbh_ctlreq.c have these lines:if (USBH_MAX_EP_PACKET_SIZE < (uint16_t)USBH_MAX_DATA_BUFFER){/* Make sure that maximum packet size (bits 0..10) does not exceed the max endpoint packet size */ep_descriptor->wMaxPacketSize &= ~0x7FFU;ep_descriptor->wMaxPacketSize |= MIN((uint16_t)(LE16(buf + 4) & 0x7FFU), (uint16_t)USBH_MAX_EP_PACKET_SIZE);}else{/* Make sure that maximum packet size (bits 0..10) does not exceed the total buffer length */ep_descriptor->wMaxPacketSize &= ~0x7FFU;
hi,I configure my micro to work on internal clock by cubemx - this is the clock configure://#############################################################################################################// Init Device: System Clock Configuration//#############################################################################################################static void IDM_Config_System_Clock(void){ RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_LSI1; RCC_OscInitStruct.HSIState = RCC_HSI_ON; RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; RCC_OscInitStruct.LSIS
I have a Nucleo G0B1RE board and I am trying to get the FDCan peripheral up and going. There is no sample application specific to this board so I have copied the initialization from the C1 eval board files. I am just trying to send classic frames (i.e. non FD), and using PCAN explorer to see the messages. PCAN explorer give me the BUS HEAVY indication and does not see any errors or messages. I have hooked up a logic analyzer to the Tx GPIO pin and the analyzer is able to recognize the messages as CAN traffic and decode the bits at the proper baud rate. The analyzer does report an error at the end of the transmission though (after the checksum), but does not tell me the actual problem- only 'error'. Baud rates and termination have been checked.I have attached the project I have in the hopes it is something simple in the configuration I have missed.Any help or insight is appreciated!
Hi People,I need to know what will happen when I forget to set the clock configuration by using system clock configuration function. Is there any default clock configuration will set in the microcontroller when I forget to set clock configuration?I'm raising this because I can able to feed the complied code which doesn't have a clock configuration. And still I can able to debug the uploaded code with stm32h7.
I have a payload that I am publishing and its length is 305 bytes. I have configure the file lwip_opts.h and more specifically the parameter which has to do with the length of the incoming data. /*** Number of bytes in receive buffer, must be at least the size of the longest incoming topic + 8* If one wants to avoid fragmented incoming publish, set length to max incoming topic length + max payload length + 8*/#ifndef MQTT_VAR_HEADER_BUFFER_LEN#define MQTT_VAR_HEADER_BUFFER_LEN 320#endifOpening debugger I noticed that in the callback function where the payload arrives, which is mqtt_incoming_data_cb(....., const u8_t *data, u16_t len, ...), the length of the payload topic was 305 bytes which is equal with the payload length that I am sending through MQTT-Explorer. However, the dataparameter does not store properly the contents of the payload. I noticed that the payload in data parameter has only a few contents of the data and also the contents are stored in the opposite side from r
Hi all ! I want to transmit 1 bit on the SPI1 of my STM32F7.I see that the minimum datasize to transmit is SPI_DATASIZE_4BIT. So I guess I can't send only 1 bit of data on my bus. I am wrong ? My final goal is just to have 1 clock period on the SPI bus. have you got any clue for that ?Thank you for your help.Best regards.Remi
https://www.youtube.com/watch?v=CKYWy7LKL68&list=PLnMKNibPkDnG9JRe2fbOOpVpWY7E4WbJ-&index=17 In the project mentioned in the video in question, a one-time loop is entered with a randomly sent hex message whose entered number value is not important. I am thinking of two scenarios to create;1. Entering the function conditionally using the variable that holds the value of the sent HEX message. I couldn't find the name of the variable that holds this value.2. A video or source with settings such as "I want to enter a loop with the sent HEX and exit this loop with the sent HEX" to ensure that the entered function rotates repeatedly and I can exit the function whenever I want.Thanks.
Hello, Could you please guide me in creating a custom template for STM32WB55 BLE? I am trying but I don't know why the Bluetooth is not starting or what. I am not able to detect device on the STBLE app.
NB: To view the kvdat files I have attached as part of this post use the KingstVIS Logic Analyser software. Freely availible from https://www.qdkingst.com/en/download . You will also need to decompress them using XZ and TarHi All,I'm trying to get a bootloader working over SPI to program an STM32WB55. I've been making some good progress with getting the bootloader up and running and I've been able to do some proofs of concepts to make sure that it's working. I have attached Logic Analyser traces of the "Good" behaviour as SPI Bootloader Good.kvdat . This probes the device and reads/writes some locations in SRAM without issue. So, I know I have the fundamental protocol working.However, when I try to erase the flash the device never returns an ACK to me. It also never returns a NACK, it just sits there sending me 0xA5 for infinity. I have attached this as SPI Bootloader Bad.kvdat . I know the trace I have attached only shows a second or so but I've tried it with multiple m
Hello everyone! I have been complaining about this for 1 week. I can't make "HAL_I2C_Slave_Seq_Transmit_IT" send data to the master, but Slave to master ACK works fine, does anyone have any advice to give me that can guide me a little? I am using the STM32F030. in another way i need the slave to respond to many ADDRESS for this i configure the mask to pass any address possible. Clock STRETCH or not dont affect this trouble. The interruptions in "NVIC settings" are activated (i2C global interrupt), the frequency is the maximum possible (64Mhz) and the master speed is 20Khz, I have also tried with 100,400,1000 Khz and nothing worked, the Slave ACK perfectly in any frequency. in another way if i use "HAL_I2C_Slave_Seq_Receive_IT" slave receives data perfectly. in another way when i try to transmit data to master, im getting in"HAL_I2C_GetError(hi2c);"the error code 0x0A.... what this mean? My code: #define RxSIZE 100 uint8_t RxData[RxSIZE]; uint8_t TxData[RxSIZE]; uin
The tutorial and transcript for STM32 FD CAN LOOPBACK MODE provide the partial code . Is there the entire code that I can download similar to that found for TUT_CAN_LOOPBACK code (link) in the STM32 CAN Loopback tutorial
Not sure this is the right label Is there a link where I can obtain the complete program code for STM32 FDCAN in NORMAL MODE for the STM32H745I-DISCO ( Tutorial ) similar to the entire code MULTI Can .zip that was found i the link for the STM32 Can with multiple perpherials
Hello,I am new to ST and I need some advice. I need to create two pwm signals that are synchronized. PWM A should go to a physical channel and PWM B which runs at half the frequency is supposed to trigger ADC conversion at falling edge. The signals are synchronized in such a way that the timer counters start counting from zero again at the same time every 100 us. I need to be able to change the duty cycle for both of them in HAL_ADC_ConvCpltCallback(). The reason for the needed synchronization here is that the ADC should not get triggered at the same time as the rising or falling edge of the physical pwm signal.1. What is the easiest way to achieve this? I am using a stm32G0B1RE and I have to use the HAL interface functions.2. If I understand the docs correctly I can only scan 8 ADC channels at a time on this MCU. My use case is that I need to scan CH0-CH7 every 100 us but sometimes I also need to scan CH9-CH10 in between. Is it possible to do that or does it get to
Hello,I have a new PC Windows and and I have this error when I start the software STM32 ST-LINK Utility (file in attachment)It misses dll file (mfc140.dll)And idea please?ThanksArnaud
Hello Everyone,I hope you are well.I'm working with an STM32F401 microcontroller (Nucleo-F401RE) and my goal would be to update the firmware via a standard USB stick.Is this possible with the above controller? If so, can you give me any examples? Thank you very much.
Hi Team, I this microcontroller power consumption is 240mA.But we need much less than current consumption Specification ETHERNET,SPI,EMI,RTC.Pls give some Low power consumption recommended IC List.And any Single core ARM CORTEX R Series available? Thanks and Regards,Aravind.SR
I'm try to develop encryption functionality. Two optionnal,1. stm32 lib "en.STM32CubeExpansion_Crypto"2. mbedtls So I have to question about it. 1. Does stm32F107 support "en.STM32CubeExpansion_Crypto".2. If were you, which option do you have?
I want to know my board(STM32H750)'s CPU usage when it is running. I used freeRTOS in my softwrae system.Is there any tools or any ways to get CPU usage during the system is running?
Hi,I have the STM32H745XI Discovery Kit and would like to get the source code for the firmware it is shipped with. Where can I find the source?8-Dale
I'm using STM32F407 and Marvel 88E6390X switch in our project. But we have some I2C problems so we added I2C recovery function using TIMER8. The ethernet ports doesn't work stable after this addition . When we removed the I2C function in the project , the problem doesn't appear yet . We want to learn where is the problem in the project.
Hello Everyone,I am using STM32F401CBU6 controller in my project and in this project it consists of 2 I2C slaves 1) Sensor 2) EEPROM.I2C1 is connected to slave and can able to communicate with the slave, later i have connected external EEPROM, started configuring and while configuring in CUBE IDE it is throwing warning as partly disabled conflict with I2C3 over RCC and SYS.have checked with clock configurations everything looks fine cant able to figure it out what might causing this issue.If i ignore and going forward means the sensor which i have connected cant able to receive the device id which is receiving in previous case.Help me if anyone know about it.Thank youANIL.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.