-
Thread
ChibiOS on the STM32F4-Discovery
Hi, I got a STM32F4-Discovery board and wanted to test some ready to use code. I stumbled upon the ChibiOS and its STM32F4 support. I compiled the sources under macos x, with a self-built gcc, and flashed with a self-compiled
-
Thread
va_args, printf and DMA memory problems
past few days as I try to understand why and what is going on... So here it goes: Current config: stm32f407VG (same as stm32f4 discovery) I set up a project using the default linker and startup files from www.onarm.com. Init the ADC & DMA's [code] ADC_CommonInitStructure.ADC_Mode
-
Article
Benutzer Diskussion:Dualcorez80
meisten Beiträge durchforstet, doch keiner konnte mir helfen... Folgendes Problem: Ich verwende den STM32F107VC um mit einem ADXL345 Beschleunigungssensor und einem ITG3200 Gyrosensor zu kommunizieren. Beide mit I2C Schnittstelle. Diese möchte ich mit der I2C1 Schnittstelle des Cortex auslesen. Doch genau
-
Thread
launchpad gcc for ARM: Understanding linker scripts
Greetings to all, I want to run code from a ram-location on a STM32F407 (Cortex-M4) microcontroller, but before I can do this, I want to understand the linker-commands, and this seems to be a real challenge. At first, I want to find out where some code-fragments to
-
Thread
STM32F4xx: running code from ram
ST Microelectronics promotes the STM32F4 series with: "Based on CoreMark benchmark, the performance achieved thanks to the ART accelerator is equivalent to 0 wait state program execution from Flash memory at a CPU frequency up to 168 MHz
*/ /* second try: */ .text : { ..\obj\main.o *(.text); ..\obj\stm32f4xx_gpio.o *(.text); ..\obj\startup_stm32f4xx.o *(.text); ..\obj\stm32f4xx_rcc.o *(.text); ..\obj\system_stm32f4xx.o *(.text); *(.glue_7t) *(.glue_
-
Article
SportTracker
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
kurz oder lang auf ein Makefile umzusteigen und dann z.B. mit Yagarto GCC weiter zu arbeiten. Die STM32 Standard Peripheral Library wird aktuell bis auf wenige Funktionen (SDIO Interface) nicht verwendet. Hintergrund ist weniger es besser machen zu wollen als den Controller wirklich im Detail zu verstehen
-
Thread
Problems with Code sourcery G++ , audio playback file
Dear All, Greetings !!! I am trying to build a code example given with the STM32F4 discovery board and am getting the following problems in the console/ after build "D:/eclipse_indigo/stm32f4discovery_fw/STM32F4-Discovery_FW_V1.1.0/Project/Audio_playback_and_record/inc/usb_conf.h
STM library, somthing like usbconf.h. Further information should be available in the manual of the STM32F-USB-Library. The STM32-forum at st.com might be a better place to ask such target-specific questions. Hope this helps, Martin
-
Thread
STM32 GCC problem writing to flash bank 2
I am developing a project running on an STM32 target, using Eclipse, openOCD and CodeSourceryLite 2009q1-161. Part of the design is that the user should be able to upgrade the code in flash, so I partition it into a bootloader and two equal sectors
the code in the second sector. I was able to debug this code (using optimization level 0) on an STM32F103xD (which has 384K of flash) when unoptimized code was about 160K. However, the code has now grown to 220K unoptimized, 130K at optimization level 's'. Therefore I have been able to finish debugging
-
Thread
STM32 and Programming via Boundary Scan
Hello, im currently writing on my B.thesis about boundary scan and its implementation. I`ve found enough informations about the principle of boundary scan and how to test with BS. However, i didnt find a lot informations about using BS to program a µC. Can anyone provide my informations about programming with BS? How efficient is it? Another question that has to be answer is if BS is useful for our products. We have quite a lot analogue devices such as analogue control stages or other complex analogue components. In some cases, we only have 1-2 digital devices (µC,..) on the PCB. Is it useful
-
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
ARM linker fail
I'm trying to compile RTEMS for a STM32F4DISCOVERY board. Everything goes well until the linker tries to find the linker script linkcmds.armv7m. I searched for the file on my system and I found it some places. /opt/rtems-4.11/bin/ld/
DHAVE_UNISTD_H=1 -DHAVE_CSTDIO=1 -DHAVE_CSTDLIB=1 -DHAVE_IOSTREAM=1 -I./../bin/arm-rtemseabi4.11/stm32f4/lib/include -I./inc -g -Wstrict-prototypes -Wnested-externs ./obj/stm32f4_discovery.o ./obj/stm32f4xx_exti.o ./obj/init.o ./obj/stm32f4xx_rcc.o ./obj/misc.o ./obj/stm32f4xx_syscfg.o ./obj/apptask.o
-
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
Advantages of Hard/Soft FPU Compiler Settings
about the "overhead", maybe somebody else can. As far as I can see (I just made a few tests with STM32F4 Cortex M4 and GNU tools) the main advantage of the soft-abi is the possiblity to "mix" libraries which are only available as object code (archives/"a-files"). As long as the library has been compiled
-
Thread
C++ STL and STM32
Hi, I have a problem with the C++ STL on the STM32. The following code works as expected on my hardware (chinese board with STM32F103..) [c] int main(void) { char Line[512]; std::list<std::string> *pHistory; pHistory = new std::list<std
Hello Hase, I agree that I strain the stack a bit, but out of the 64k RAM in the STM32, I have less than 8k for .data and .bss sections. The remaining 56k are used for heap and stack. The initial stack pointer is set to the end of RAM and the heap grows upwards from the end of the .bss
-
Thread
_sbrk exists, linker can't find it
Hello, I'm trying to compile a program for a stm32f4-discovery board using code sourcery g++ lite and I'm having a peculiar problem. My program uses the "new operator" and I had to implement the _sbrk function. Here is the linker command: arm-none-eabi-g
-
Thread
Problem with gnu ld and STM32
Hello, I'm trying to make anSTM32F103 work with the Code Sourcery tool chain. Using the attached ld command file, I get these errors: Invoking: Cross GCC Linker gcc -L"/home/Tommi/workspace/FWLib/Release" -Wl,-T ../SRC/STM32_Lnk.cmd -o "LED01" ./SRC/core_cm3.o ./SRC/main.o ./SRC/startup_stm32f10x_hd.o ./SRC/stm32f10x_it.o -lFWLib collect2: ld terminated with signal 11 [Segmentation fault] /home/Tommi/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi
-
Thread
Changing return address of exception
I am using olimex stm32 board. It has cortex-m3 processor. For my project, I require to change return address when processor is executing exception. I know that it is stored in stack, But where in stack? It is always
solved. I am writing the code to change return address which worked for me. This code is for olimex stm32f107 board. asm( "TST LR, #4;" "ITE EQ;" "MRSEQ R0, MSP;" "MRSNE R0, PSP;" ); asm("mov %0, r0" : "=r"(lraddr)); nxaddr=lraddr[12]; lraddr[12]=NEW
-
Thread
STM32 and SMBus
Hello everyone, I am trying to communicate with a MAX11068 from a STM32F103 over SMBus, but it does not work as expected. Has anybody worked with the SMBus and would be so kind to provide sample code? Michael
-
Thread
General Questions
into your controller datasheet. E.g. the RM0008 Reference manual explains such things for the STM32. HTH, Registereqw
-
Article
Diskussion:STM32F4-Discovery
Da es bereits eine allgemeine STM32 Seite gibt ( würde ich hier spezielle Informationen zum STM32F4, nach dem Titel sogar spezielle Informationen zu dem Board erwarten. So aber lese ich vieles, sicher nützliches, was eigentlich auf die
bisher noch nichts mit GDB gemacht. Aber das wird schon werden. ---- Dann überarbeite doch die Seite (STM32_Eclipse_Installation). In Bezug auf die Seiten (STM32F4-Discovery) und (STM32) hast Du mich auch nicht überzeugt. Warum zwei Seiten nebeneinander die dann am Ende evtl. ineinander überführt werden
-
Article
Benutzer:Avr-frickler
Ubuntu - ARM-GCC Toolchain unter Ubuntu bauen. Utilities - Linux arm-utilities - Debug/Flash-Tools für STM32-Boards mit STLink z.B. STM32F4-Discovery. stm32flash - Flash-Tool für STM32-Boards mit Bootloader (serielle Schnittstelle z.B. ET-STM32F103. Eclipse Plugin - Eclipse Plugin für diverse Toolchains. Artikel auf µC.net STM32_Eclipse_Installation - STM32 Toolchain in Eclipse integrieren. (Windows) STM32F10x_Standard_Peripherals_Library - Einstieg in die Programmierung.
-
Article
BusAnalyzer
kBit up to 20 kBit) Project state. The project is still in its prototyping state. Used Hardware. STM32F103 ( FT2232H ( ARM-USB-OCD Debugger ( Why STM32? - Out of curiosity and because of the low cost DevKit and its good tool support (e.g. free tools, Standard Peripheral Library, CMSIS compliancy). Why
better. Maybe Qt should be considered as alternative. Hardware (Prototype). Interfacing FT2232H and STM32F103. Both devices are connected using their USART interfaces. A partly handshake is required because otherwise the FT2232H sporadically seems to loose some bytes. The STM32F103 provides 3 USARTs. The
-
Thread
confused by STM32F207IGT6
? The board is also different. Like Devkit1207 board basedon STM32F207IGT6 and Devkit8500D board based on TI DM3730, can you tell why one is only 120MHZ, and one is 1GHZ. Thank you in advance.
STM32F207IGT6 is from ST, it is ARM Cortex-M3 processor. DM3730 is from TI, it is ARM Cortex-A8 processor. They are different processors based on different ARM cores.
-
Thread
yagarto example project for STM32F100C4 chip
Hello, I'm new user of the yagarto tool-chain. The example project for STM32F103 works well for me. I'm going to move to simpler target chip STM32F100C4. It should be the Low density Value Line device (STM32F10X_LD_VL). I'm not sure how to setup-up project or how to modify linker script and start-up code for that chip. Please can someone send me a example project for STM32F100C4 for yagarto or any advice how to do it please?
-
Thread
-
Thread
Debugging cortex-m3 in GDB with J-Link causes SIGTRAPs
I had this same problem when moving from the integrated st-link debugger (on my STM32 G-Eval board) to using the J-Link cable Stuck at "SVC 0" I had the debugger configuration check boxes for "halt" and "reset and delay" checked and also had "monitor reset halt" in the initialzation
-
Thread
Helios GDB hardware debugging & JLink
7.0.0.201109151620 I try it with Segger J-Link, with gdb command arm-none-eabi-gdb from eclipse. I am building STM32Test from yagarto. I pasted scripts stm32_ram_jlink_[12].gdb into startup tab of Debug Configurations, but... When I start debugging, I get error dialog "Error in final launch sequence" with details
0xFFFFFFF8 (Data = 0xBF00E7FE) So gdb and segger jlink appears to work correctly. (the yagarto STM32Test.zip may not be perfect for my STM32F103RBT6) I think my problem is with helios to gdb interface.
-
Thread
HELP..lost datasheet!
I have bougt a stm32 card..yes, China! (the display has on board jtag develop interface), but I have lost data CD..so now I don't know anything about..drivers, schematics etc...there is someone may help me? Many thanks
-
Thread
Problem with stdint.h inclusion
my Mac with this tutorial: http://salvatoremenendez.blogspot.com/2011/08/mac-os-eclipse-openocd-stm32-arm-cortex.html which seems quite nice. Everything went fine, I installed Eclipse 3.7.0, OpenOCD 0.4 and yagarto 4.6 but one thing doesn't work. As the tutorial tells on page 3, i use a project
-
Article
Datei:Stm32F103xc.png
STM32F103xC-E
-
Thread
openocd target program issue
also watch/modify openOCD commands/responses by "telnet localhost 4444" command. For target chip STM32F103, for me works: target remote localhost:3333 monitor soft_reset_halt monitor soft_reset_halt monitor soft_reset_halt monitor reset halt load monitor soft_reset_halt break main continue
-
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
newlib behaviour no printf!
malloc_lock(reent_t *reent)". Any suggestion to fix this printf problem? Here is more information: - cpu STM32 - stack lenght 8k - Flags I used for building the newlib: ./configure --target=${TARGET} --prefix=${prefix} --enable-multilib \ --enable-target-optspace --disable-nls --enable-interwork \
-
Thread
Strange SPI-Interrupt behaviour with STM32F107
Hi, I am working on a spi-driver implementation for STM32F107. Things seem to work quite well, but I get sporadic interrupts on SPI with only the BSY-flag set. No other flags like TXE,RXNE, etc. are set. Here is my interrupt handler for spi(it is called
solved the problem that u had. Could u please provide me with the source code of the spi-driver for STM32F107. Thxxx a lot. Cheers, Angela
-
Thread
CooCox Tools
release CoIARPlugin V1.2.1, supported new adapters: NGX, PicoJTAG and KT-Link, supported new chips: ST: STM32F100series, STM32F101series, STM32F105series, Energy Micros: EFM32G2xx series, NXP: LPC1200series. For detail information, you can visit http://www.coocox.org
-
Thread
Problem with reset vector (Yagarto + STM32F107)
to understand how to use the yagarto tools (yagarto + eclipse + openocd + TinyUSB) with a Olimex's STM32F107 board. So far, using Olimex and yagarto examples, I have been able to compile the code. But the reset vector doesn't point to the correct part of the code. I have defined the vectors :
Hello, take a look at the STM32 examples here: http://www.yagarto.de/examples/index.html Perhaps this will help you. Regards, mifi
-
Thread
Networking Eclipse projects
Include' containing .c and .h files respectively. There is an additional file in 'Include' named stm32rom.ld which contains the processor characteristics needed by the linker. There is a third folder named 'obj' for the compiler and linker output files. The makefile on Server invokes the compiler
/stm32rom.ld: No such file or directory". I can't understand this, since the -T command format is exactly the same as the -I and compiler command formats, which are executed correctly. The makefile is
-
Thread
STM32 & ADC AD7699: fading SPI MISO level
Hey guys, I'm facing a problem working with an STM32F103RET6 and an ADC AD7699 (datasheet: http://www.analog.com/static/imported-files/data_sheets/AD7699.pdf). I thought maybe some of you might have similar experiences and could give me a hint. As