-
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/
-
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 `_
-
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
. > will it link with latest version of library ? I don't know your library. And Idon't know STM or ARM. It's just the general scheme how gcc works. If GCC and Binutils and the libraries are configured and built correctly, it will work.
-
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
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
-
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
DMA_InitStructure.DMA_Channel = DMA_Channel_0; DMA_InitStructure.DMA_Memory0BaseAddr = (uint32_t) &RawADCData.adcRaw1; DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t) ADC_CCR_ADDRESS; DMA_InitStructure.DMA_DIR = DMA_DIR_PeripheralToMemory; DMA_InitStructure.DMA_BufferSize
-
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
work, I got "bootstart = 0x20000804" and "bootend = 0xaf00b580", superfluouses to mention, that the STM doesn't have so much memory. [code] SECTIONS { . = 0x08000000; bootstart = . ; .text : { ... ... [/code] It's amazing, that the code generated with these linker-scripts
-
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
try*/ /* 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
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
-
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
of the macros in a header-file which is included by all USB-codes. IRC there is such a file in the 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
-
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
flash upgrade functionality on optimized code. To allow for future growth I have upgraded to an STM32F103xG, which has 1M of flash configured in two banks. I have been able to continue debugging, and I can run the flash upgrade into either bank when in debug mode. However, if I build the code at
-
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<
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 .
-
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
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
1 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).
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.
-
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
Which ARM Chip? for Autopilot Hardware
STM32F4
Devkit1270, sounds be based on STSTM32F207IGT6, it is based on ARM-Cortex M3 processor. may be help you.
-
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
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