All Questions
4,627 questions
0
votes
1
answer
10k
views
STM32F4 Discovery board and HC-SR04
I've connected the sensor this way, from Sensor to Board:
VCC -> 5V
GND -> GND
Trigger -> PD15 ( same as blue led )
Echo -> PA0 ( same as user button )
My C program send the trigger, reads the ...
8
votes
4
answers
17k
views
ST-LINK is serial communication possible?
I am using STM32F4 discovery board and Atollic TrueStudio for ARM Lite 3
I would like to pass some debugging data to PC using printf and I can't find a way to do it through STLink. Is it even ...
4
votes
3
answers
15k
views
Basic timings with an STM32
I am looking to make very basic timings on an STM32. For example, I would like to program my STM32 to output bytes on the UART for 1 minute. What clock/timer should I use?
Looking through the ...
0
votes
1
answer
1k
views
Testing an Ethernet peripheral
I have an Ethernet peripheral (manual here) controlled by an STM32. I have to test that the Ethernet peripheral works correctly right after the board is manufactured. Conveniently, there are three "...
28
votes
1
answer
25k
views
What is the STM32 event EVENTOUT?
In the manual of my STM32, one of the GPIO Alternate Functions (namely AF15, see page 138) is called EVENTOUT. At no point is the event defined, or a use case given.
What is the EVENTOUT alternate ...
4
votes
2
answers
14k
views
SIM card communication protocol
My board contains an STM32 (manual here) and a SIM card reader (manual here). I need to write drivers to test that the SIM reader is working an properly communicating with the STM32. However, looking ...
0
votes
1
answer
2k
views
Hardware breakpoints on the STM32
How can I set/unset hardware breakpoints on my STM32F2 (reference manual here)? A search for breakpoint in the reference manual is less than helpful. This document ...
1
vote
2
answers
1k
views
Crash when reaching the end of executable
I have an executable that crashes after main has finished all its instructions, and the last assembler instruction is executed. Just before the program crashes, I ...
0
votes
1
answer
4k
views
Hard resetting an STM32
My STM32 is behaving weirdly, to say the least. What is the best way to "hard reset" an STM32? I've tried pressing the "reset" button, and unplugging/replugging everything, but it seems like the ...
2
votes
1
answer
2k
views
Porting a linker script from STM32F1 to STM32F2
I am trying to port PyMite from STM32F1 to STM32F2. One of the files that I am assuming must be changed is called stm32f10x.ld. I have looked around for an ...
7
votes
3
answers
17k
views
Restart execution from the start without having to reload
I am using GDB to load and debug my executable. At the moment, each time I want to run my program I first have to load it, and then ...
1
vote
3
answers
3k
views
Measuring the HSE frequency of an STM32F2
I am programming an STM32F2 (manual here). I am having clock problems and would like to check every clock using an oscilloscope. The first clock I want to check is HSE, which stands for: High Speed ...
1
vote
1
answer
3k
views
Setting the HSE clock frequency of an STM32
I am programming an STM32 (manual here). Page 83 has a diagram indicating that the HSE Clock frequency is between 4 and 26 MHz.
The paragraph on HSE clocks starts on page 84, but does not give any ...
3
votes
1
answer
752
views
Which startup file should I use?
Bundled with "Standard peripheral library" for my STM32F2 chip, are "startup" files startup_stm32f2xx.s. There is actually 5 different startup files, in five ...
5
votes
2
answers
8k
views
Why is the USART receiver pin configured as "input floating"?
Reading through this good tutorial on setting up the USART on an STM32, the Bus Setup paragraph says that the receiver pin (Rx) should be set as input floating.
I would have thought that because the ...
4
votes
2
answers
4k
views
TXE bit not reset in USART communication
I am programming an STM32F2 Cortex M3 chip (reference manual here). Specifically, I want to transmit bits through the USART. Reading pages 620 and following, I understand that the ...
7
votes
2
answers
9k
views
Is it possible to have 16 simultaneous PWM outputs on a 64-pin STM32F4 device?
From the STM32F405xx/STM32F407xx datasheet, I read that (at least) TIM2, TIM3, TIM4, and TIM5 have output compare units that can be configured to produce PWM signals on 4 channels each. If one ...
-1
votes
0
answers
312
views
STM32 and embedded linux? [duplicate]
Possible Duplicate:
Linux on ARM Cortex-M3 series
Friends,
Any ideas on how to use embedded linux into STM32 system ?
Any shares or experiences will be very appreciated,
Thanks
4
votes
3
answers
13k
views
STM32, Keil and *** error 65: access violation at 0x60000000 : no 'write' permission
I tried to run LCD software in Keil for STM32, but I got
*** error 65: access violation at 0x60000000 : no 'write' permission
Do you know how to solve that error ...
4
votes
2
answers
14k
views
Writing Flash on STM32
I am implementing an emulated EEPROM in flash memory on a STM32 microprocessor, mostly based on the Application Note by ST (AN2594 - EEPROM emulation in STM32F10x microcontrollers).
The basics ...
1
vote
1
answer
2k
views
How to properly connect to a RN-171 Roving Network's WiFly module?
I have this WiFly device and I can't seem to make it work correctly. I've connected both available interfaces (UART and SPI) to my microcontroller (STM32F107). For now, just the UART interface would ...
4
votes
2
answers
6k
views
STM32F103 ADC Noise
I am new to this forum. I have read the questions and answers in this forum on the similar topics but that one was for STM32F2 CPU. I am using STM32F103 and I have similar problem.
Similar to the ...
18
votes
3
answers
37k
views
How to program STM32 Development Board
I'm a total beginner with programming ARM microcontrollers, but I do have experience with AVR and PIC microcontrollers.
A few days back I have purchased a STM32F103VET6 development board from eBay. I'...
10
votes
4
answers
14k
views
STM32 ADC Noise 2
I have just tested my second design with STM32F2, now it is STM32F207ZFT6, the ADC behaviour is the same as in my first application - strong noise in ADC.
Noise of current input without any ...
16
votes
3
answers
11k
views
Recommendation for default settings for unused pins on an STM32 (ARM Cortex M3) - pull up/pull down?
We are currently using various variants of the STM32 microcontroller family. I would like to know the following:
What are the recommended default settings for pins of the microcontrollers in general ...
1
vote
3
answers
1k
views
Is is OK to drive AD620 with +-5V and expecting the output range up to 3.3V?
I'm using AD620 with STM32. So I want AD620 output up to be 3.3V. As 5V is easy to obtain, I want to drive AD620 with +-5V. Is that OK? Could a 5.5V driven AD620 generate 3.3V output? What about ...
4
votes
1
answer
2k
views
Examples of schemes for Microcontrollers STM32
On the Internet a lot of tutorials on AVR microcontrollers, but very few examples for novice developers to STM32.
Who can give a link to educational materials for STM32? Interested in the scheme ...