-
Thread
STM32F051 I2C slave problem
Hi, I have in a STM32F051k project a problem with the I2C as Slave. I send from an AVR: Start/address Wr/command/repStart/address RD/ ... read information / Stop) The read information is command/count/data. Exact
-
Article
Benutzer:Mtothea
/ Mein erstes Mainfile // Mit der conf-Datei beherrschen und steuern wir // die gesammte include "stm32f4xx_conf.h" include "stm32f4xx.h" void RCC_init(void){ // ueber die RCC werden die diversen Peripherie-Einheiten eingeschaltet // (durch konfiguration der RCC) RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD
/ Mein erstes Mainfile // Mit der conf-Datei beherrschen und steuern wir // die gesammte include "stm32f4xx_conf.h" include "stm32f4xx.h" void RCC_init(void){ // ueber die RCC werden die diversen Peripherie-Einheiten eingeschaltet // (durch konfiguration der RCC) RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD
-
Article
Datenuebertragung-STM32F4
Datenübertragung über 4 Datenleitungen. Zwei STM32F4 Discovery Boards sollen durch 4 parallele Datenleitungen und eine Steuerleitung, ähnlich der LCD-Implementierung, miteinander kommunizieren. An einem Board werden über eine PS/2 Tastatur Zeichen
-
Thread
SPI communication between two microcontrollers
Hello everyone, I am trying to make communication between an STM32F3 microcontroller and a custom board baser on PIC microcontroller using SPI protocol. The STM32F3 acts as a Slave and the custom board as a Master. The clock is set to 10 MHz. I’m using NSS hardware
-
Thread
nsec-resolution time measurement with MSP430 or alternatives ?
While the STM32F334 has a timer with 217 ps resolution, it is a pity that this resolution is only for output, not for capture, as the poster asked. The Infineon Cortex Parts also have sub-nanosecond timers, but
capture. And datasheet download still requires a NDA! You can get about 5 ns resolution with the STM32F405 and bigger parts, running the timer at 168/180 MHz or LPC43xx at 204 MHz.
-
Thread
USART1 issue with a STM32F030R8 Nucleo Board
MAIN_H /* Includes ------------------------------------------------------------------*/ #include "stm32f0xx.h" #include "stm32f0xx_rcc.h" #include "stm32f0xx_it.h" #include "stm32f0xx_gpio.h" #include "stm32f0xx_rtc.h" #include "stm32f0xx_nucleo.h" #include "stm32f0xx_conf.h" #include "stm32f0xx_usart.h
Hey, Benoit wrote in post #3658640: > GPIO_PinAFConfig(GPIOA, GPIO_Pin_2, GPIO_AF_0); STM32F030R8 hasn't mapped USART1 on PA2, please read the datasheet page 31. USART1 is available on STM32F030x6 and STM32F030x4 devices only. Benoit wrote in post #3658640: > GPIO_PinAFConfig(GPIOA,
-
Thread
[Solved] STM32F0 Discovery Board: Connect faild, check config and cable connection
Hi I bougth the Stm32F0 Discovery to get into microcontrollers. I have only knowlegth about c# and java programming. I followed this tutorial (video http://www.youtube.com/watch?v=nP6TR6NAZTQ) Downlaoding coocox ide
/CoIDE/flash/STM32F05xx_64.elf" Error: Connect failed, check config and cable connection Program Download Failed ! I have no cloue what to change. Can anyone give me a hint? Do I Have to know anything else
-
Thread
SimpleSerialTerminal
during debugging of baud rate difficulties in a timer controlled bitbanging software serial of an STM32F103RBT ARM Cortex M3. If you wish a line feed carriage return in the monitor, your MIC has to send the #13 #10 chars. @Moby: which is the reason for better having a more condensed representation
-
Thread
Still missing crt0.o
I had the same problem wit trying to compile for STM32F4xx (Cortex M4). I ditched Yagarto and switched to using GNU Tools ARM Embedded - toolchain (4.8_2014q2): https://launchpad.net/gcc-arm-embedded Seems to work for me.
-
Thread
STM32F1xx EXTI problem to trigger interrupt by SWIER
Hallo, i have the following problem to solve: an interrupt should be triggered when the frame-signal of a SPI-interface changes from 0 to 1. If, at the time of enabling this interrupt, the frame-signal is already high, the interrupt should be triggered by software instead of the rising edge. I am using int-structures representing the register-bits of EXTI and other peripherals mapped to the according places within the bit-banding-area of the micro. These are name XXXbbbits. I am also using bit-structures which are representing the structures of their according registers to manipulate two
-
Thread
STM32F4 IMPRECISERR, trouble debugging
First off I did make a Debug Fault Handler, this is what I am getting r0 = 1200 0x000004B0 r1 = 0 0x00000000 r2 = 1200 0x000004B0 r3 = 1 0x00000001 r12 = 0 0x00000000 lr = 134228401 0x080029B1 pc = 134228410 0x080029BA psr = 553648128 0x21000000 OST = 536881104 0x200027D0 HFSR = 1073741824 0x40000000 CFSR = 1024 0x00000400 Showing BUSFAULT IMPRECISERR DFSR = 0 0x00000000 MMFAR = 3758157108 0xE000ED34 BFAR = 3758157112 0xE000ED38 AFSR = 0 0x00000000 PSP = 536881200 0x20002830 SHCSR = 0 0x00000000
-
Article
LPC1xxx für Umsteiger
diesem Artikel wird die 32-Bit Familie LPC1xxx von LPC kurz betrachtet. Die 32-Bit Controller der STM32-Familie werden in den Betrag STM32_für_Einsteiger und STM32 sehr schön vorgestellt, und sehr rudimentär mit dem LPC1xxx verglichen. Die aktuellen 32-Bit Controller (zumindest von LPC) kostet weniger
Installationsanleitung zur IDE LPC1xxx Codebase LPDXpresso Download (Kostenlos mit Debugger) LPCXpresso Homepage STM32 für Einsteiger
-
Thread
STM32F0 ADC input noise investigations
input voltage stable during this time. References ---------- [1]: RM0091: Reference Manual, STM32F05xxx/06xxx advanced ARM-based 32-bit MCUs (http://www.st.com/web/en/resource/technical/document/reference_manual/DM00031936.pdf) [2] STM32F051x4 STM32F051x6 STM32F051x8: Data sheet (http://www.st.com/web/en/resource/technical/document/datasheet/DM00039193.pdf) [3] UM1525: User Manual, STM32F0DISCOVERY, Discovery kit for STM32 F0 microcontrollers (http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00050135.pdf)
-
Thread
ARM Integrator/CP and general portability
actual, instead of a virtual, prototype with a lean, cheap and also modern eval board such as the STM32F4 Discovery Board (Cortex-M4F, ARMv7M, ~15€) while encapsulating the hardware accesses into an exchangeable hardware access layer? This allows you to use the modern ARMv7M architecture, gets rid of
-
Thread
STM32F429 Discovery Sega Master System emulator
Hi all, To test the new ST discovery kit I made a minimal SMS emulator running on it. The code is released as Open Source and it is avaliable on http://www.codeforge.com/article/218395 A small demo video is on http://www.youtube.com/watch?v=qtNLctyoxU8 The project is developed using Keil MDK (evaluation version) so everyone can test and enhance it.
-
Thread
[STM32] Crossreference ChipID - Device (EN / DE)
people! Having had some trouble finding a decent source of information regarding the Chip ID on STM32 µCs and the Flash/Sram size, here's an appeal to gather known and tested information you all might have come across. As an example for what information should be in, at the end there's a snippet of
Morgen! Da ich auf wenig Information bezüglich CHIP_ID und deren Flash/Sram Speichergröße für die STM32 µCs im Internet gefunden habe, hier eine Bitte diese Information zu sammeln. Es sollten Daten sein die Ihr schon ausprobiert habt und getestet wurden. Als Beispiel am Ende ein Schnippsel der .xml Datei
-
Thread
GNU issues for cpp
GCC issue 1: We are working on the STM32F0 series, where the src code is in C++ and the compiler used is the GCC ARM (version 4.4.1) which compiles fine. However when we changed the GCC compiler to 4.7.3 we are observing linker issues as
Cortex M0 and wrking on STM32F051.
-
Thread
First try STM32F4-Discovery
./cmsis/device/system_stm32f4xx.c.bak ./src/syscalls.c.bak ./src/main.c.ba k rm -f ./cmsis/device/system_stm32f4xx.lst ./src/syscalls.lst ./src/main.lst rm -f ./cmsis/device/startup_stm32f4xx.s.bak rm -f ./cmsis/device/startup_stm32f4xx.lst
n-sections -fdata-sections -Wa,-ahlms=cmsis/device/system_stm32f4xx.lst -DRUN_ FROM_FLASH=0 -DVECT_TAB_SRAM -MD -MP -MF .dep/system_stm32f4xx.o.d -I . -I./inc -I./cmsis/core -I./cmsis/device cmsis/device/system_stm32f4xx.c -o cmsis/device/ system_stm32f4xx.o
-
Thread
Control ARM prologue/epilogue assembly code emission
an other mikrocontroller? Maybe that one is defect... This should definitely work (it does on my STM32F4 which is a Cortex-M4, too - i.e. has exactly the same core). I don't think GCC can be stopped from generating the "PUSH" instruction because it should work.
-
Thread
malloc, strncpy on STM32F4 not working
Hi, I am trying to get strncpy working. At the moment I know that it has something to do with the newlib. I am using coocox with https://launchpad.net/gcc-arm-embedded/ How do I include the newlib into my toolchain? Or am I wrong with newlib an the problem lies somewhere else? I included the syscalls from the repository: "The component implement the minimal functionality required to allow libc to link." I also included libc in the "linked libraries section". But it seems as if behind strncpy is only a declaration: "char *_EXFUN(strncpy,(char *, const char *, size_t));" I do not have
-
Article
Cortex M3 OCM3U
auf dem Board integriert. Aus Platzgründen habe ich auch den JTAG weggelassen, da der verwendete STM32F101 mit integriertem Bootloader daher kommt und sich über RS232 programmieren lässt, was für den Anfang reichen sollte. Zudem habe ich auch auf Sachen wie Spannungsregler und co. verzichtet, da hier
:OCM3U-rev-1.0.tar.gz UPDATE: 07.11.2008 Siehe auch. Diskussion zu diesem Projekt: NA Artikel zum STM32. Installation und Downlaods sind hier beschrieben. Links. ST(DB,Software,Exampels......): Examples: Infos und Architektur: Compiler von CodeSourcery: (EABI)
-
Article
STM32 F3 Discovery unter Linux
startup_stm32f30x.s von stmfw/stm32f3xx/Libraries/CMSIS/Device/ST/STM32F30x/Source/Templates/TrueSTUDIO nach stm32f3demo/ kopieren File editieren und die beiden Zeilen "bl SystemInit" und "bl __libc_init_array" in LoopFillZerobss auskommentieren. stm32f30x.h (aus stmfw/stm32f3xx/Libraries/CMSIS/Device/ST/STM32F30x/Include) nach stm32f3demo/fw/ kopieren File editieren und am Ende vom File #include "stm32_config.h"einfügen system_stm32f30x.c (z.B.
-
Thread
Simulating an ARM code on x86 with qemu
I want to run a simple ARM cortex-M3 program (does nothing, just initializes pins) meant for an STM32F4 on qemu I tried the following srinath@umdLenovoG570:~/qemu-1.4.1/arm-softmmu$ ./qemu-system-arm -cpu cortex-m3 -S -s -singlestep -nographic -m 513 -kernel ~/autoquad/autoquad-read-only/onboardCode
-
Thread
how can I read protect my STM32F4 with eclipse + openOCD JTAG ?
hello forum , I am using Eclipse + openOCD JTAG for downloading and debugging my aplication into STM32F4 after I finish my project I want read protect my code so that it is not stolen question : how can I read protect my STM32F4 with eclipse + openOCD JTAG thank you
Please have a look at this chapters in the reference manual of the stm32F4xxx microcontrollers (RM0090): 3.6.3 Read Protection (RDP) 3.6.1 Description of user option bytes 3.8.3 Flash option key register (FLASH_OPTKEYR) And after that you should read in the documentation
-
Thread
Atomic write - STM32
Hi, I'm currently working with a STM32F4 and try to implement atomic access to variables (e.g. mutexes). Currently, I disable all interrupts before accessing a mutex, and enable them afterwards. Now there exist the LDREX and STREX commands on the STM32, which seem to be perfect for my application. But how do I use them correctly? In the manual it says that an STREX *must* have the same address as the previous LDREX. So I still need to disable interrupts
-
Thread
how can I read protect my STM32F4 with eclipse + openOCD JTAG ?
attachment the screenshot of my Eclipse 1) how can I upgrade this to 0.7.0 ? 2) should I type "stm32f2x lock 0" in the console window ? 3) "power cycle may be required" - you mean power off and then on ? 4) I have stm32f4 - but your answer "stm32f2x" - is the command equal for both f2 and f4
"stm32f2x" - is the command equal > for both f2 and f4 ? > yes Spen
-
Thread
help Yagarto linking 32 bit arm code into CM4
hello forum, a simple math calculation caused my STM32F4 going into hardfault first I asked my problem at ST forum however it turned out that my eclipse + yagarto is the cause of the problem it is linking 32 bit ARM code instead of THUMB code for my STM32F4 uC please have a look at ; https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex%5fmx%5fstm32%2fSTM32F4%
-
Thread
Missing startup file crt0.o
crt0 or startup file for your project/hardware. In case of my examples you will find a startup_stm32f4xx.s in the M4 example. Best regards, Michael
-
Thread
unknown cpu 'cortex-m0'
Dear all, I have some serious issues with the GCC compiler when using a cortex-M0 (STM32F051) When compiling my code with GCC version 4.6.3, which should support cortex-M0 microcontrollers, I get next messages: Error: unknown cpu `cortex-m0' Error: unrecognized option -mcpu=cortex-m0
-
Thread
confused by various UDP checksum algorithms
hello forum, I am trying to send an UDP packet (contains only "TEST" string) from STM32 to VB6 winsock I can see packets going with wireshark software however winsock data_arrival subroutine never gets called ( if I send from laptop winsock to PC winsock or vice versa UDP packet
printscreen winsock cannot receive this packet I have an USRobotics adsl router between PC and STM32F4
-
Article
MP32F103-Stick: Ein Mini-Mikrocontroller-Board mit USB und bis zu 4MB Datenspeicher
nach Einarbeitung in diese Materie veröffentliche ich hier ein kleines Board mit dem Mikrocontroller STM32F103CBT6 von STMicroelectronics (www.st.com). Dieser Chip hat 128KB Flash, 20KB RAM, SPI, I2C, USART, USB, CAN, ADC und läuft bis 72 MHz. Das Board wird genauso aufgebaut sein wie mein MP2103-Stick:
gängigen Betriebssysteme vom Hersteller FTDI-Chip angeboten werden. Funktionsmodell. LINK: Datasheet vom STM32F103CBT6 LINK: st.com-Page vom STM32F103CBT6 LINK: Datasheet und Anwendung vom AT45DBxxx LINK: Datasheet vom TPS62203 Schaltplan. Herzstück des Boards ist der Mikrocontroller STM32F103CBT6 (IC1) mit
-
Thread
STM32L1xxx µC displaying memory contents
first of all would like to greet everyone from my side. I am working as an intern and working with STM32L152 EVAL board. I am supposed to take the digital values from the ADC converter from an analog input and save them for the first run. In the second run I have to save the second values and compare
-
Thread
Yagarto: Cortex-m3 linked ok, Cortex-m0 not
I have a lot of projects with stm32f1xx CPUs (cortex-m3), all is good with them. Now I decided to make project with stm32f051 (cortex-mo), and linker works with errors. I have several cpp files (task is to light-up LED), they are
done. I use Yagarto with GCC v.4.7.2. Here is output: arm-none-eabi-g++ -T"D:\Nute\_tmp_\f0test\STM32F051R8.ld" -Xlinker --gc-sections -Wl,-Map,f0test.map -mcpu=cortex-m0 -mthumb -o "f0test.elf" ./src/main.o ./lib/src/stm32f0xx_rcc.o ./lib/startup_stm32f0xx.o ./lib/system_stm32f0xx.o ./kl_lib/kl_lib_f0
-
Thread
help! memcpy causes hardfault on STM32F4 Locked
../ # Objects built from C source files C_OBJECTS = $(OBJ)/main.o C_OBJECTS += $(OBJ)/system_stm32f4xx.o C_OBJECTS += $(OBJ)/stm32f4xx_gpio.o C_OBJECTS += $(OBJ)/stm32f4xx_rcc.o C_OBJECTS += $(OBJ)/stm32f4xx_tim.o C_OBJECTS += $(OBJ)/stm32f4xx_it.o C_OBJECTS += $(OBJ)/stm32f4xx_syscfg.o C_OBJECTS
CFLAGS) -o $(OBJ)/syscall.o syscall.c @ echo ".compiling libraries" $(CC) $(CFLAGS) -o $(OBJ)/stm32f4xx_tim.o $(LIBRARYSRC)/stm32f4xx_tim.c $(CC) $(CFLAGS) -o $(OBJ)/stm32f4xx_gpio.o $(LIBRARYSRC)/stm32f4xx_gpio.c $(CC) $(CFLAGS) -o $(OBJ)/stm32f4xx_rcc.o $(LIBRARYSRC)/stm32f4xx_rcc.c
-
Thread
_sbrk error , how to solve for STM32F4 ?
I am trying to compile a C program for STM32F4 microcontroller with yagarto I have run into following error [c]c:/olimexods/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libg.a(lib_a-sbrkr.o): In function `_sbrk_r
-
Thread
"undefined reference to memcpy" error - please help!
hello dear forum , I am trying to compile a C program for STM32F407 microcontroller with OlimexODS ( Eclipse + yagarto compiler ) I get the error; "undefined reference to memcpy" error as you can see in the attached picture ---------------------- makefile
-
Thread
how can I get rid of impure_ptr ? Locked
hello dear forum , I am trying to compile a C program for STM32F407 microcontroller with OlimexODS ( Eclipse + yagarto compiler ) I get the error; undefined reference to `_impure_ptr' there is no function "impure_ptr" in my whole project the error pointer
-
Thread
eLua on STM32F4discovery
Hi, i'm trying to run eLua on a STM32F4discovery board. I downloaded and flashed this image successfully: http://dd.homeunix.com/home/space.php?uid=1&do=blog&id=90 http://dd.homeunix.com/home/attachment/public-File/elua_lua_stm32f407vg
Hi; Does this mean you have done a STM32F4 build of v0.8 that supports ROMFS? Would you be willing to post the binary? Thanks, CZ
-
Thread
STM32 Virtual COM Port driver
based on Windows XP. The driver (inf-file) described at: http://www.mikrocontroller.net/articles/STM32_USB-FS-Device_Lib and available at: http://www.mikrocontroller.net/articles/Datei:Stmcdc.inf works fine when the host is based on Windows 2000, but we can not find this inf-file on the ST web-pages