-
Thread
GNU Toolchain: Program working in simulation, but not on target
target, the entry address (PC after reset) and the stackpointer are completely wrong. I am using a STM32F107VC (Cortex-M3). Here is the output of readelf: [code] $ arm-none-eabi-readelf.exe -S project.elf There are 18 section headers, starting at offset 0x3884c: Section Headers: [Nr] Name
Try do transfer the code with the STM32 bootloader, for example with the flash loader demonstrator available from st.com. If it works there is a problem with the programming-settings in the IDE (model, flash-programming-algorithm, memory-regions
-
Thread
STM3210E-OpenOCD-Olimex ARM-USB-OCD Debugging Issues.
Hi, I am working on a STM3210E board. I recently got a Olimex ARM-USB-OCD JTAG and set up OpenOCD 0.4.0. I am able to connect to the board using the JTAG fine. I am able to flash the board. But after it finishes loading the
-
Thread
Relative Jumps Only
impossible. If any questions are left, feel free to ask. Greetings, Lasse PS: Cortex-M3, STM32F103, Codesourcery GCC
-
Thread
How to stop breaking at reset
I am developing a number of projects for STM32 processors using Eclipse, gcc, gdb and an Olimex ARM-USB-OCD jTag dongle. All works well, but every time I relaunch the project in debug mode the code stops at address 0x08000000. The debug window
this always happens. Furthermore I suspect it is using up one of the 6 breakpoints provided by the STM32, which restricts debugging. I launch gdb with the following commands: target remote localhost:3333 monitor reset init load monitor reset init break main The first breakpoint it should
-
Thread
Firmware self-update
the new firmware (address 0) or a reset or ..... I'm not sure if this is also possible with the STM32 but I think so. I guess you will find also hints on the STM website for this theme. Just my 2 cents 900ss
new firmware (address 0) or a reset or ..... > > I'm not sure if this is also possible with the STM32 but I think so. I > guess you will find also hints on the STM website for this theme. > > Just my 2 cents > 900ss I should note that this is not for STM32, as I didn't mention the micro.
-
Thread
how can i debug code in ram ?
to use the method intended by the STM library-developers until everything starts up as expected. - I did not check every line in the linker-script for RAM but it looks o.k. - Since the .data output-section is already at the correct
I did test with STM32F103C8T6 ($3 chinese board, known as blue pill). The only thing I had to do is to write my linker script to put everything in RAM, then: 1. Put the jumpers at BOOT0 & BOOT1 pins to boot from RAM.
-
Thread
need help with debugging Cortex M3 (STM32) using Eclipse, YAGARTO and J-Link
Hi, I'm trying to set up a development environmet for ARM Cortex M3 (STM32F107) on windows XP. I'm using Eclipse (with Zylin plugin), YAGARTO, gdb and J-Link debugging hw. All of these are new to me and I'm bit confused with all the script and config files. Getting freeRTOS
deasserted during "monitor reset" the clock will be the default clock after reset as mentioned see STM32 reference-guide.
-
Thread
ARM fixed point vs. floating point
Hi, I'm creating application on ARM STM32F103VE. I have to multiply several matrix in very short time. I'm thinking about using Fixed Point, to speed up my calculations. So that I wrote union: typedef union fxpntu{ int full;
-
Thread
Matrix/vector operations on a Cortex™-M3
Hello everybody! I am using a Cortex™-M3 based MCU (STM32F103VET6) and the gcc arm compiler for some project. As there will a lot of matrix/vector operations come along the way I would like to know if anybody has experience with maybe existing libraries
-
Thread
STM32F107 USART Init --> Rubbish Output
Hi, While configuring my STM32F107's USART, there is a random byte outputted on the tx-pin. A modem that is connected to the serial port gets confused by this random byte and refuses to work. Here's the initialization code:
-
Thread
problem using adapter Olimex tiny-h with OpenOCD v0.4
Hi, I'm trying to get a fresh ARM-USB-Tiny-H adapter to program and debug my STM32-P103 board via OpenOCD v0.4 under Ubuntu 10.04. The configuration works fine with my older ARM-USB-OCD but with the Tiny-H, I always get this error: "Error: unable to set latency timer: 17"
10.04 on Asus Eee PC (1Gig RAM, BNL Single Core) Interface: Olimex ARM-USB-TINY-H Target: Olimex STM32-P103 Evalboard Any clue what I might be missing? Gregor -- If its not playing with Tux, it's worth nothing.
-
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
Eclipse & OpenOCD: AHBAP; Sticky und Mem Read Error
Hi everyone, I'm using the STM32-P103 board with Eclipse and oocd 0.2.0. my problem is that I can't use debugging. I use this for OpenOCD: gdb_port 3333 # Work-area size (RAM size) = 20kB for STM32F103RB device set
You can look here: http://www.mikrocontroller.net/articles/STM32#Demo-Projekte There is a link to "ChaN's FAT-Module with STM32 SPI" In this project is a complete Eclipse configurationwhere is working fine.
-
Article
Datei:ARM USB Test.zip
Beispiel für die Nutzung des USB-Ports an einem STM32F103 als Virtual COM Port
-
Article
Datei:STM8S Discovery.jpg
Selbstgemachtes Bild vom STM8S Discovery
-
Article
Datei:Timer2 STM32F103 1.0.rar
(Beispiel Projekt für die verwendung von Timer 2 mit Interrupt)
-
Thread
Get Binary-Data from Wav-File Locked
, they acquired this business-section from Sharp). Check Microchip's AppNotes, ST Microelectronics STM32, STR7, STR9 AppNotes...
-
Thread
Layered OS: DMA Transfer into Filesystem
, of which one is to learn PS: even though this question is more a theoretical one, I use C on an STM32 --- German: Hallo, ich programmiere ein Betriebssystem* für mein aktuelles Projekt und hab jetzt ein kleines Problem. Das OS ist "layered", also mit Schichten aufgebaut. Es gibt ein HAL
lernen möchte. PS: Auch wenn das eher eine theoretische Frage ist: Ich programmiere in C für einen STM32
-
Thread
RTEMS or FreeRTOS on STR712FR (ARM7 TDMI)
uClinux and RTMS offer a lot of more functions and drivers. But it's not that difficult to extend the STM STR7-StdPerphLib with synchronisation-code (e.g. mutexes) in case different tasks/threads access the same peripheral. Using the STM-STR7-Library as base should save some time.
-
Thread
startup_lpc17xx.s GNU
for you: http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/arm_memcards/index.html#chanfat_stm32 It's for another controller also with Cortex-M3 core and it should be rather easy to port the linker-script and startup-code to LPC17xx. Decide yourself if it's "simple" enough Maybe someone else
-
Thread
Device drivers and ARM learning
cores are embedded in micros from various manufacturers, like Atmel (AT91SAM, AT92RM), NXP (LPC2xxx), STM (STR9, STM32) and others. On the smaller, ARM7-based variants a full OS can not be run due to memory restrictions mostly. But they are cheap and easily available if you can live with using a RTOS,
-
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
hardfault when using snprintf
snprintf(buffer, sizeof(buffer), "%i", n); and it doesnt work. I end up with hardfault on the stm32 that im using. If i use the below statement it works fine snprintf(buf, sizeof(buf), "hello %s", wld); Im quite new to programing so what could i have missed /Dennis
I tryed you project and i got it built, but i get in to problems when trying to get it in to my stm32. I will try some more on. So please have a look on my files. (propobly its in the .ld file) /Dennis
-
Article
Datei:BusAnalyzer.zip
STM32 BusAnalyzer Source Code
-
Thread
usbprog as OpenOCD-adapter
Hi, I'm going to buy a STM32-Devboard. But I'm still looking out for an JTAG-Adapter, something cheap that'll work with OpenOCD / GDB. I've got an usbprog already (used for AVR-programming). Can I use that with the firmware
-
Thread
Using C++ Exceptions on Winarm 20080331 STM32 Target
HI All, I have recently installed WinARM 20080331 and created a test build for the STM32F103ZE target device. I am able to compile, link, and execute all 'C' code and some 'C++' code correctly. The problem appears when I attempt to use the C++ exception handling mechanism. I have
thinks terminate is called recursively? Here is the code for the library functions: #include <stm32f10x_lib.h> #include <sys/stat.h> //--------------------------------------------------------------------------// char * _sbrk_r (void * reent , unsigned incr) { static char heap_mem
-
Thread
Linking order and startup files
linker script that works fine now, but I needed a little tweak: The startup code I use is startup_stm32f10x_md.s, taken 100% from the STM Standard Peripherial Lib. As I said, it works fine, but I had to edit the isr_vector section: [code] .section .isr_vector,"a",%progbits .type g_pfnVectors,
O0 -gdwarf-2 LFLAGS = -T simple.ld -Wl,--gc-sections all: arm-elf-gcc -c $(AFLAGS) startup_stm32f10x_md.s arm-elf-gcc -c $(CFLAGS) main.c arm-elf-gcc $(CFLAGS) startup_stm32f10x_md.o main.o $(LFLAGS) [/code]
-
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
-
Thread
OpenOCD load and debug fails sometimes
show openocd.cfg. You may also just try: [code] openocd -f interface/<yourinterface> -f target/stm32 init [/code] which will use files from the "target library". I have used them in my STM32 projects with success.
2 set BSTAPID 0x16410041 set WORKAREASIZE 0x5000 source "C:/program files/openocd/target/stm32.cfg" [/code] Openocd recognizes the target as stm32. I use the yagarto toolchain with eclipse.
-
Thread
Creating blank new C-Project with Yagarto chain for ARM7
tested tool after tool (open source and commercial) to find something to start work with cortexM3 (STM32F10x) immediately. No chance. The reasons: no install package, no documentation, missing scripts for my device, no debug, no linker, no thumb2-compiler, specific debug-tools, expensiv, only 30 days
, and, and. Then I found lots of simple example projects of different users here: http://www.stm32circle.com/projects/index.php I installed Ride7 and within one day my own test board was blinking. Next day I tested debug on the primer2 - OK. Ride supports most ARM7 and cortexM3 from NXP
-
Thread
arm-none-eabi-ld problem (resulting main.bin is 400MB)
MeasureMod.o I2CCom.o USARTCom.o stm32f10x_it.o stm32.a LIBOBJECTS = core_cm3.o stm32f10x_adc.o stm32f10x_dma.o stm32f10x_i2c.o stm32f10x_iwdg.o stm32f10x_pwr.o stm32f10x_tim.o stm32f10x_exti.o stm32f10x_gpio.o misc.o stm32f10x_rcc.o stm32f10x_usart.o stm32_eval.o system_stm32f10x.o LIBPATH = C:/gccfd/CodeSourcery/arm-none-eabi/lib/thumb CMDFILE = stm3210e_eval_flash.cmd STARTUP_FILE = startup_stm32f10x_ld-Mod > And here is the
-
Thread
GDB issue (cortex-M3)
Hello everybody, I am working on a STM3210E-EVAL board for 2 weeks now and there are some odd things happening when I use the GDB provided with WinARM(gdb version 6.4.50.20060226-cvs). I use Eclipse as a IDE, everything seems to be
, FTDI-drivers and STM32F103CB for the tests. Debugging from Eclipse works as expected (well, at least what I expected/needed). A little bit of additional information can be found in the readme.txt.
-
Thread
trouble with printf on Cortex-M3 (STM32)
Hi, I am trying to use yagarto (arm-elf-gcc 4.3.3) for STM32. Everything works ok if I don't use printf. But I need to use printf, so #included <stdio.h>. It produced error: [pre] In file included from main.c:31: C:\SCARM\GNUARM\arm-elf\include/stdio.h
without errors, but linker produced many errors of this type: [pre] ../arm-elf/bin/ld.exe: ERROR: stm32f10x_gpio.o uses FPA instructions, whereas Hello.elf does not [/pre] Does it mean that the newlib that came with yagarto is compiled using FPA? Does it mean it can not be used for Cortex-M3? Is
-
Thread
ST sensor LIS3LV02DL
same type of modification has to be applied in the read function. I'm using this method with a STM32 and it works fine (I have a SPI clock around 200KHz). Regards, Arnaud.
-
Thread
Atmel announces ARM Cortex-M3 based Controllers
different manufacturers have differences, take the frequency for example, nxp lpc1700 is up to 100MHz, ST STM32F103ZE is 72MHz and Atmel AT91SAM3U is 96MHz. Meanwhile, they incorporate various peripherals, although most of them are the same. Before you choose these processors for your project, you shall evaluate
-
Thread
putting newlibs stub into a static library
When i do that, i get the typical undefined references. My link order is arm-none-eabi-g++ -T"../stm32-128k-20k.ld" {lots of object files} -o"output.elf" -lstm32-md No other librarys are getting linked in.
-
Thread
GCC compiles fuctions without return instruction
Hello. I´m using an ARM from OLIMEX, the STM32-P103 with a Cortex-M3. I use eclipse to write my code in C, arm-none-eabi-gcc to compile, arm-none-eabi-gdb to debug and OpenOCD to interface the microcontroller trough an ARM-USB-OCD(based on FT2232L
-
Thread
embedding C source in the disassembler window
Anglia Electronics kindly sent me an Eclipse version of the STM32demo project. It includes a custom makefile, so it doesn't use any outside resource such as Solaris to create the makefile. I am trying to create my own project to emulate this with good success
system, because it now fails at the end of compilation with the message 'cannot open map file obj\stm32demo.map' I am now getting extremely frustrated with Eclipse. I want to use it as a tool for developing a project to run on embedded hardware, but I am spending more time trying to fix the tool
-
Thread
GCC won't allow me to pulse flags
I am developing for a project an STM32 Cortex processor, using gcc on Eclipse. Initially I am working with the ST Electronics STM32F10x-128K-EVAL demo board, which included an LCD display and a joystick. I need to reset the backup domain
-
Thread
New Luminary Stellaris microcontrollers (ARM Cortex-M3)
Well, there is a solution for the MP3 approach. The STM32 Primer2 comes with an MP3 player implemented, this time however tied to the Raisonance tools, which are great for the STM32 but not available (yet?) for Luminary. btw. I would agree that the old
am getting at. The new Stellaris joins the NXP1700 in the 100 MHz Cortex-M3 performance level, the STM32 is sort of close but right now not there. On the other hand, the STM32 is real, can be purchased through distribution, the Stellaris and the LPC1700 are real in the lab of Luminary and NXP but can