Evaluation board from STM. Based on the STM32F407VGT6, it includes an ST-LINK/V2 embedded debug tool, two ST MEMS, digital accelerometer and digital microphone, one audio DAC with integrated class D speaker driver, LEDs and push buttons and an USB OTG micro-AB connector.
Questions tagged [stm32f4discovery]
542 questions
1
vote
1 answer
I got "error #29 : expected an expression "while using inline assembly instructions in stm32f3. How can it be resolved?
I am trying to learn assembly coding for arm cortex m4.
__asm volatile (
" LDR r0,=MY_NUM \n" /* Restore the context. */
" \n"
".align 2 …

Tejal Bhardwaj
- 19
- 1
- 3
1
vote
1 answer
My Timer in STM32F4 doesn't perform the delay correctly
I'm using Timer to make the LED on/off for every 1 second (instead of using delay function). However, when I execute this code on IAR IDE, the LED on/off at about 2.5-3 second, not 1 second like I want. I wonder if there is any mistake in the code,…

Nguyễn Thanh Vũ
- 121
- 1
- 9
1
vote
1 answer
How to create a function for configuring defined ports on a stm32f4xx platform?
I am using stm32f4xx with HAL library and I have configured some ports like this:
#define Led1 GPIO_PIN_1
#define Led1_Port GPIOC
#define Led2 GPIO_PIN_2
#define Led2_PoRT GPIOE
GPIO_InitStruct.Pin = Led1;
GPIO_InitStruct.Mode =…

O.Blue
- 137
- 7
1
vote
1 answer
Running Gmp on Stm32f4 discovery board
I discover the stm32f4 discovery board.
For the moment I'm able to use leds, button, and to communicate through serial port.
I'm now trying to use the Gmp library on this board.
I build the arm-none-eabi toolchain following these instructions:…
1
vote
2 answers
Writing data to micro SD card from microcontroller STM32F401RET6
I am using the board Nucleo F401RE based on micro-controller STM32F401RET6. I connected to the board a Micro SD slot, and interested in writing data to the SD Card and read data from it. I used the software STM32CubeX to generate code and in…

Armand Chocron
- 149
- 1
- 4
- 14
1
vote
0 answers
Why is this DMA I2C transfer locking up execution?
I'm trying to change a library for STM32F407 to include DMA transfers when using I2C. I'm using it do drive an OLED screen. In its original form it is working w/o problems. In the comments, somebody added DMA, but also ported it to STM32F10 and I'm…

Terraviper-5
- 61
- 2
- 7
1
vote
0 answers
STM32F4-Discovery linking issue
I am trying to get some code up and running on a STM32F4-Discovery board (chip: STM32F407VGT6).
This tutorial explains the necessary code and steps required for compiling and linking for the Nucleo board (chip: STM32F401RE). I have tried to convert…

Henrik
- 405
- 1
- 8
- 19
1
vote
2 answers
HAL libraries doesn't work correctly with USB and CAN peripheral
i'm working on a project in which i have to use USB (Virtual COM Port) and CAN peripheral but when i run the code on STM32F4DISCOVERY, PC doesn't recognize the VCP correctly ("USB device not recognized", error code 43).
This is my main:
int…

Simone Sindaco
- 13
- 5
1
vote
1 answer
How do I get two VCPs with only one USB connector?
I've tried to emulate two virtual COM ports with only one USB connector (CN5 in the STM32F4 Discovery Board), but in vain.
I know that I have to configure the composite CDC class to have multiple interfaces using an ACM functional descriptor…

HASSAN
- 41
- 1
- 5
1
vote
0 answers
mbedOS Uvisor+LCD=program stops working, on STM32f429 discovery
I'm a beginner using mbed OS and Embedded programing in general, i want to become familiar with mbed OS and uvisor and my aim is to use the LCD screen to print or not the secret in the secured box.
so when i juste use mbed-library with uvisor…

abdou
- 11
- 1
1
vote
0 answers
Read of memory allocation returns spurious results if, following read, free() is called - why does this happen? (embedded)
Programming on a stm32f4 some strange behaviour is observed:
Data is allocated using realloc, which is called every second or so, as such; ptr = realloc(ptr, sizeof)
Values are read into the data - it has been confirmed that: A) The indexing of the…

user3235290
- 93
- 9
1
vote
0 answers
Parsing screen data
I am trying to develop my own USB DisplayLink device for Linux. My device comunicates and I constantly receive screen data. My problem is when i received green screen, data on LCD display are totally mixed. I know the structure of…

Shadow2334
- 111
- 1
- 1
- 6
1
vote
1 answer
How to transmit signed (int) values via SPI using HAL stm32 library?
I'm trying to get data from the lis3dsh accelerometer (STM32f4discovery board). I use HAL library. As far as I understood, the incoming data values from the accelerometer might be negative value (int type), but HAL library function operates with…

mkom
- 103
- 1
- 1
- 8
1
vote
0 answers
Re-running DMA transfer from ADC to memory on STM32F429
I have DMA2 stream 0 configured so that it transfers given number of samples from ADC3 (triggered by TIM2 rising edge) to memory, and after completing the transfer an interrupt happens in which I make calculations on the samples gathered.…

grodz11
- 11
- 2
1
vote
3 answers
STM32F429 External Interrupt Edge
I am using the STM32F429I-Discovery board, the board has a pushbutton connected to PA0, which in turn is connected to External Interrupt Line 0 (EXTI0).
Using the HAL Libraries, I can toggle a LED either on the Falling Edge or on the Rising edge…

AJBotha
- 129
- 2
- 7