Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

All Questions

0
votes
0answers
26 views

Does the STM32F469I DISCOVERY board allows the user to perform Digital to Analog Conversion?

I have a question on DAC (Digital to Analog Conversion) capability of the STM32F496I DISCOVERY board, which uses the STM32F469NIH6 (216 pins) microcontroller. According to the microcontroller's user ...
0
votes
2answers
51 views

On-board st-link programmer on F411 Discovery board cannot connect

Backstory: I have STM32F411E-DISCO board which has on-board st-link which i used before without problems (also programming external stm's). Today i tried to program STM32F103C8T6 with SWD connector (...
1
vote
3answers
75 views

How to generate NACK on STM32F407

Is there a way to send a NACK on I2C on STM32F407? There is no way to do that using the HAL, and the datasheet says nothing about it.
1
vote
0answers
42 views

I2C get stuck on busy with DMA interrupt

I'm trying to interface with NXP device using I2C. I'm initializing it that way ...
0
votes
0answers
15 views

atcab_get_pubkey Blocks the code until break point is set

I'm using the cryptoauthentiction lib from microship, and I'm trying to get a public key from it using the function in the code listing below. atcab_get_pubkey https://github.com/ALLTERCO/mongoose-...
1
vote
1answer
54 views

Using the GPIOs of an STM32 Discovery board

I would like to start learning how to program an STM32, because of this I bought the STM32L152C Discovery board. It's a very nice board, full of goodies, but I would like to use just part of them: ...
0
votes
2answers
85 views

STM32F429 CANopen with or without transceiver

this might be a stupid question but i'm unable to clarify this by myself. So i'm working on a project with a STM32F429zit microcontroller. I would like to use CANopen in my project so i can ...
-1
votes
1answer
47 views

STM32F405 code compatibility with STM32F407

I have to do a project which will be based on STM32F405VG (100 Pin) but I don't have that MCU at the moment. Instead I have STM32F4-Discovery board which has STM32F407VG (100 Pin) on board. All the ...
0
votes
1answer
74 views

On-board ST-Link Firmware

There is an on-board ST-Link on STM32F4Discovery board based on STM32F103 MCU. If I have to use this circuit in my design then where could i get the ST-Link firmware for STM32F103 MCU?
0
votes
1answer
216 views

SWD vs ST-LINK on STM32F4 Discovery board

Why do we have 2 connectors namely CN2 (SWD) and CN3 (ST-LINK) on STM32F407 Discovery board? Are not they the same thing?
0
votes
0answers
105 views

STM32F407 - ADC in Scan mode setting overrun bit

I want to read 4 ADC channels in continuous scan mode. I am using adc interrupt to read from adc data register. Here is my initialization : ...
0
votes
1answer
90 views

CubeMX HAL Libraries state or stateless [closed]

I wonder if the STM32F4 CubeMX peripheral HAL libraries saves the internal state of the peripherals OR if they are stateless? I am concerned about this because I want to know the possibility and ...
-2
votes
1answer
78 views

STM32 GUI for Timers [closed]

The CubeMX for STM32 MCUs gives an easy graphical interface to configure the Clock tree. I wonder if there is similar GUI tool for configuring the peripherals specially the advance timers TIMER 1 and ...
-1
votes
2answers
233 views

STM32F407 discovery board jumpers

What is the usage of Jumper1(JP1), Jumper2(JP2) and Jumper3(JP3) on the STM32F407 discovery board?
0
votes
1answer
154 views

STM32F4-Discovery board RTC

RTC Crystal place is exposed on the STM32F4-Discovery board. So which kind of 32.768 KHz SMD Crystals is proper for that place? Could you give a part number or a link to buy?
1
vote
1answer
187 views

STM Studio C++ array content visibility

I have been writing software for the MCU STM32F417. I have been using the STM Studio for debugging purposes. Unfortunately I have found that I am not able to observe content of an byte array. I am ...
-2
votes
2answers
121 views

What purpose is to place pins at bottom on STM32 discovery boards [closed]

What is purpose to have pins (pin header) on STM32 development board places at bottom? Arduino and similar have pins at top so you see the top of board and connect external peripherals by connectors ...
0
votes
3answers
2k views

STM32F4 How are Preemption Priorities and Sub-Priorities used?

I have started working with ARM-based microcontrollers. I not understand subpriority and preeemptionpriority. For example: NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0x00; ...
0
votes
2answers
103 views

How to get sensor data at fixed time intervals

I am using a STM (stm32l432kb) microcontroller. In my application I need to get the data from the sensor at fixed interval(based on the selected Mode). Like I have to select the Modes:- Mode 1 : which ...
0
votes
2answers
694 views

STM32F4-Discovery GPIO Always High [closed]

I am doing some work with an STM32F4-Discovery board, and I am trying to get some simple usage out of the GPIO Pins. However there is a weird problem I am having, that I don't know how to fix. I am ...
0
votes
2answers
3k views

stm32f4 discovery user button debounce

I am still new to the stm32f4 discovery board. I was looking at the board's schematic to see how the user button is implemented on the board: Since C38 is not fitted, does that mean I have to resort ...
1
vote
1answer
54 views

Programming the STM32L152C8u6

I want to program the STM32L152C8u6 unit but i don't know how. Can I use the SWD interface on the STM32F4Discovery development board to program a STM32L152C8u6?
5
votes
1answer
904 views

STM32F4 How to stop triple interleaved mode?

I am using triple interleaved mode with DMA in STM32F429 and have problem stopping it. It should be stopped by HAL_ADCEx_MultiModeStop_DMA(&hadc1), but while ...
1
vote
1answer
3k views

Interfacing HC-SR04 Ultrasonic sensor with STM32L

I'm trying to control this HC-SR4 Ultrasonic sensor by simply ON an LED when an object closer than 100cm is detected. I'm using TIM2 for the trigger signal (Pin PB10), and TIM4 to receive Echo signal (...
0
votes
1answer
1k views

Program not running on STM32F4 after disconnect it from PC

I developed a program on STM32F4 using keil uV on windows 10, it works perfectly when the target is powered by the computer even after i stop the debugging. Normally after downloading the program in ...
0
votes
2answers
753 views

Using SPI to communicate between stm 32 f4 and stm32 f3

I want to use an SPI bus to transer a message between an STM32F4 discovery and a STM32F3 Discovery, using an half-duplex channel. Master is F4, slave is F3 and the communication is MOSI type. When I ...
0
votes
1answer
2k views

How to configure Multichannel ADC properly? Currently two different values stored in same variable

I want to use Multichannel ADC using the STM32F4 so I want to read two different AC signals on two different pins/channels. One AC signal value should be stored in ADCConvertedValue[0] and the other ...
0
votes
2answers
740 views

RTC (real-time clock) in STM32L4 series - date and time is not updating on the debugger variable

While using the RTC (real-time clock) in the STM32L4 series, but date and time is not updating on the variable in debugger mode. But when I stop the debugging, the variable gets updated instantly and ...
2
votes
2answers
2k views

How to configure STM32F4s TIM1 and 8 for PWM

I have configured timer 4 for PWM with following code and connected LED to the configured pin. It is working. ...
0
votes
1answer
473 views

Open Error on host while using VCP on STM32

I use STM32F407G-DISC1 board. I have run some examples with VCP based on STD library. Everything is OK. Then I have tried to generate code by CubeMX. And something interesting happens. If not to add ...
0
votes
1answer
303 views

Trouble interfacing NewHaven oled display with stm32f4

The last two days I've been trying to interface a NewHaven Dislpay with my stm32f4 discovery board with no result. The datasheet gives poor written examples as to how to initialize this display and ...
0
votes
2answers
731 views

Work with STM32F4 Timer

I'm working with STM32F411 Discovery board. I use Atollic TrueStudio and HAL Library. I'm trying to make a simple program that checks when Timer2 overflows and, when it happens, I toggle an LED. I ...
0
votes
2answers
3k views

STM32 HAL can't turn LED on

I am trying to advance my coding skills and venture into the world of high-end microcontrollers, coming mainly from a Java background (1 year of android developer as a daytime job plus a bit of C ...
1
vote
2answers
3k views

UART between STM32F4 and an Arduino Uno

I am able to successfully send strings and numbers between two STM32F407VG Discovery boards and between two Arduino Uno boards but I am unable to do it between an STM32F4 and an Arduino Uno. Here is ...
2
votes
1answer
858 views

STM32f4 Port to HAL : USB HID dropping packets

I am trying to port a working custom HID code from Standard peripheral to HAL.I am sending two consecutive reports in a single while loop. In Standard Peripheral code the following is called twice for ...
1
vote
2answers
1k views

SPI Transfer with STM32F4 board gets stuck on SPI_WaitTX

I am new to the whole embedded hardware thing, and I am getting stuck when trying to connect my STM32F4 Discovery board to a Bosch BMX_055 IMU unit. Here is a snippet of the code I am trying to run: ...
2
votes
2answers
614 views

Powering MCU from both USB or Battery

I am developing a board that will need both USB and battery power options, non switched. I put this schematic together that I think is right, but I want to make sure I'm not going to blow the chip. I'...
1
vote
4answers
3k views

STM32F407G-DISC1 not working if not connected to pc

I have a Discovery board DISC1 version (february 2016 revision). I had programmed a Discovery board before with no issues. The ones that I more recently bought, the DISC1 version, have a strange ...
2
votes
4answers
2k views

STM32 Audio class USB not recognized as audio device

I'm learning about USB classes using STM32F429ZI(on Discovery board). I already tried to implement Communications device class (CDC) and it worked well, now I tried to do some simple test with Audio ...
3
votes
1answer
7k views

Can´t erase data from flash memory (STM32)

I´m trying to save some data to flash memory on my STM32F407 board. Before I can save them, I need to erase a memory sector. I chose 16 Kbytes Sector1 starting with address 0x08004000 and chose ...