-
Thread
Microcontroller for game controller
I have seen "simple" controllers with Chinese 8051 e.g. STC and complex ones usually ARM e.g. STM32: https://de.ifixit.com/Teardown/PlayStation+Move+Controller+Teardown/3596
-
Article
SportTracker
dafür selbstgemacht ;-)). Darüber hinaus ist das Projekt eine Spielwiese um verschiedene Dinge mit dem STM32 Controller auszuprobieren: Erste Erfahrungen mit einem RTOS (in meinem Fall µC/OS II) Speichern von Daten auf SD-Karte mit FAT Dateisystem Ansteuerung von TFT-Displays Auswertung von GPS-Daten Batteriebetrieb
GPX-Datei Entprellen von Tasten Hardware. Im Moment läuft alles noch auf einem Keil Starterkit mit STM32F103ZE Controller. D.h. ein Schaltplan mit Layout ist noch nicht erstellt. Controller Pinning. Der Controller des SportTrackers ist aktuell wie folgt beschaltet: Pin Nr. Pin Port Config Funktion 70
-
Article
Sensorlose BLDC Ansteuerung
machen, und die anderen drei Werte nur jede 5KHz/3. Bei einer nächsten Version würde ich wohl auf einen STM32F4 zurück greifen. Dessen ADC(s) sind viel schneller und auch komfortabler zu bediehnen. Der ADC des AVR wird von einem Timer automatisch gestartet (10KHz), welcher aber kurz vor Beginn des nächsten
schaltet bei hohen Drehzahlen in den Komparatormodus Anderer µC mit schnellerem ADC verweden z.B. STM32F4 - Derivat Lösung mit einem schnelleren Controller. Der Controller wurde durch einen STM32F050K6 ersetzt. Dieser sampelt nun im Center-Aligned PWM Mode in der Pulsmittte alle Werte und schaufelt
-
Article
UART auf USB
Implementierung von USB->UART Adaptern auf Basis USB-fähiger Mikrocontroller: Beispiel von W.S. im Forum Die STM32Cube-Bibliotheken für die STM32-Mikrocontroller enthalten USB-CDC-Beispiele. Tutorial zur Implementierung eines 3-Fach USB-Serial-Adapter mit STM32F103 und CDC sonstige/unbekannt. Das Nokia CA-42 USB
-
Thread
arm-elf-gcc path setting in eclipse
Hey, I am linux user. I am also getting the same error while configuring STM32 with Eclipse Classic /bin/sh: arm-elf-gcc: command not found make: *** [main.o] Error 127 Could you please let me know how to source the arm-elf-gcc compiler in linux -- Harsh
-
Thread
Faster microcontroller
microcontroller than the ATmega2560 to solve this? I'm embedding it into a 3D printed case. I thought about the STM32H7 (https://www.aliexpress.com/item/4000065515487.html). I'm not into PCB-designing, so it should be an development board, similar to the RobotDyn. I attached an image of my box. More about this
-
Thread
STM32-MAT/TARGET
Hi, I am trying to generate sine modulated PWM on STM32F401-Disco board using MATLAB. The desired freq of a sine wave is 50Hz and of the carrier wave is 20kHz. But I am not getting 50Hz freq. Please suggest a solution. I need sine modulated PWM
-
Thread
Hardware-independent µC core?
Hi, the problem: my code wants to run on a couple disparate microcontrollers (ESP8266, "small" STM32, AVR AtMega). Besides the usual digital I/O which e.g. Arduino supports cross-platform I need stuff like port interrupts, timer interrupts, and letting the controller sleep until something happens
-
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
-
Thread
USB to I2S adapter for audio transceiver
Moin, Nothing out-of-the-box, but it somehow looks for me like it might be doable with some STM32 µC e.g. by combining the Application Notes AN5027 and AN4711. Gruss WK
-
Thread
Cortex-M3 Fault Handlers
is helpful for you I guess: https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Hard%20Fault%20and%20stack%20pushing The guy who give the hint there has written a very good book, may be you know it already: The definitive guide to the ARM Cortex-M3 I can suggest this book
-
Thread
Image sensor. high data rate
sensor, is sending it data on 4 Output with 720Mbps. As far as I know, typical microcontroller, example STM32F334R8, aren't fast enought to receive the data. I have the possibility to save the raw data first and work in a slower speed with the data later. My question is, does anybody have an idea how to
-
Thread
Geting PC register value
Hello, I use gcc to compile my code for STM32F407VGT6. I am trying to print the value of PC register and in order to do this I use this code: unsigned int pc_value; __asm__("mov %%R15,%0" : "=r" (pc_value)); My application crashes when
-
Thread
clear the receive buffer
I'm using the HAL_UART_Receive_IT function on stm32f303re to recieve data. After each use I want to delete the content of the receive buffer so that the next data that will arrive will start at the first index of the array. Is there a function to delete
-
Thread
Long longs with Yagarto
Hi, I am trying to use 64 bit maths on the STM32 compiled with Yagarto but get the link errors "undefined reference to `__exidx_start'" and "undefined reference to `__exidx_end'". I am using the linker script written by Martin Thomas for the
-
Thread
Hard Fault Error
Hello There, I'm currently trying to program an P-Nucleo-WB55MB1355C with the IDE STm32Cube. Now I've ran a few examples and they all worked fine but when I try to create my own projekt and debug it. The program immediately jumps into the Hard Fault Handler, it doesn't even get to the
-
Thread
Do we still need to write "efficient" C-code targeting ARM? Or does compilers do the job?
experience practical issues with certain compilers (I prefer to switch of optimisatons on IAR for the STM-ARMS). And furthermore I found that many (partly very experienced programmers like Karl Heinz, which you may meet quite often here) who state, that a program must function as well with and without optmizations
-
Thread
Micros that ship with boot loaders and flash serially
Many STM32 devices can be programmed via CAN. All of them can be programmed via UART (as far as I know).
-
Article
Bootloader
a free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers, including ST STM32, Toshiba TX03, Atmel SAM3U, NXP LPC1000 and others. Simple AT91SAM Bootloader von Jonathan Westhues (AT91SAM). uCLinux MMC Bootloader + Kernel für ARM LPC2294 von Ulrich Radig (MMC, uCLinux, LPC2000). "USB Firmware Upgrader" für NXP LPC214x stm32bootloader for stm32 with USB IAP. sam7dfu USB DFU implementation for at91sam7 openBLTfür STM32. (Freier open source bootloader. Habe den DEMO für ATOLLIC adaptiert und werde es bald hier bereit stellen
-
Thread
Troubles hunting down a Hard Fault Exception
Hi, I am having trouble finding the reason for a hard fault exception on my cortex-M3 (STM32F107). I have implemented the exception handler according to the book "The definiteve guide to the ARM Cortex-M3". The assembler part: [code] __asm void HardFault_Handler(void) { IMPORT hard_fault_handler_c
-
Thread
-
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
[HOW TO] Interface an SD XC 64GB Card Class 10 Locked
FAT32 filesystem you could look into FatFS by Elm Chan, which is available to AVR controllers and the STM32 series of MC. Its probably easy to port to other architectures: http://elm-chan.org/fsw/ff/00index_e.html
-
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
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
-
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
Strange GDB behaviour with Cortex-M3
Now I encounter the same problem with STM32F107. I cope with this problem by removing breakpoint after reach these particular breakpoint, but this is not solution.
-
Thread
Arm STM32F0 Discovery PORT C Problem
Hallo Gurus, Ich versuche mein Glueck mit dem STM32F0 Discovery board. Fuer ein project brauche ich den Port C die unteren 8 bits. Aus irgendwelchen Gruenden kann ich die bits PC1 and PC2 nicht zum gehen bekommen. Alle anderen Bits arbeiten so wie
-
Thread
General Questions
into your controller datasheet. E.g. the RM0008 Reference manual explains such things for the STM32. HTH, Registereqw
-
Thread
Port U-Boot to STM3210E-LK together
I want to port uboot to my STM3210E-LK board. and i looking for some one who wants to do it together. :) toolchain: arm-...-gcc host: Linux
-
Thread
Yagarto GCC and Cortex M3
Wno-cast-qual -Wno-missing-prototypes -Wno-strict-prototypes -Wno-missing-declarations L_FLAGS = -T stm32f10x_md.ld \ -nostartfiles -Wl,--gc-sections \ -lc -lm -lgcc \ -mfpu=vfp -msoft-float [/code] As you can see, I tried -mfpu=vfp -msoft-float, but it did not work