Searching \ for '[TECH] Trouble programming for a STM32 ARM MCU' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devprogs.htm?key=programming
Search entire site for: 'Trouble programming for a STM32 ARM MCU'.

Exact match. Not showing close matches.
PICList Thread
'[TECH] Trouble programming for a STM32 ARM MCU'
2012\03\03@173732 by Jason White

picon face
Hello, I have an stm32 arm MCU from ST. I am using the gcc compiler
[0] [1] and have gotten the sample firmware to compile. However
nothing I compile, like the "IO toggle" demo  seems to run on the MCU.
I am using the serial bootloader to program it and I have the BOOTx
prins pulled low during "operation". The MCU came preprogrammed with a
demo that blinked the onboard LEDs, with my programs -it simply plays
dead.

Does anyone have any suggestions as to what could be wrong and how to
get it running ?


Source code and binary is at (Its .zip uploaded to google docs, If you
have trouble with it let me know !):
https://docs.google.com/open?id=0BwP0qhqyaTIIcktzWVcxS0JRNEM0Z1BhS0tlT0pyZw


[0] the "arm-linux-gnueabi-" package in the ubuntu repository
[1] being compiled for cortex-m3 , thumb instruction set
-- Jason Whit

2012\03\08@010609 by William \Chops\ Westfield

face picon face

On Mar 3, 2012, at 2:37 PM, Jason White wrote:

> the "arm-linux-gnueabi-" package in the ubuntu repository

Isn't that the compiler for running binaries on an ARM linux system?  It compiles with unix libraries and startup code and etc.

For an MCU configuration, you'd need something like "arm-elf", with a set of libraries and definition files for your particular chip (getting these libraries is the tough part.)

BillW

2012\03\09@081502 by Jason White

picon face
As a result of post several places (which is frowned upon) I have
basically everything to get it running (correct compiler, libraries,
linker scripts; though it still isn't running). Thanks anyways.

On Thu, Mar 8, 2012 at 1:04 AM, William "Chops" Westfield
<spam_OUTwestfwTakeThisOuTspammac.com> wrote:
{Quote hidden}

>

2012\03\09@085001 by Michael Rigby-Jones

flavicon
face


> -----Original Message-----
> From: .....piclist-bouncesKILLspamspam@spam@mit.edu [piclist-bouncesspamKILLspammit.edu] On Behalf
> Of Jason White
> Sent: 09 March 2012 13:15
> To: Microcontroller discussion list - Public.
> Subject: Re: [TECH] Trouble programming for a STM32 ARM MCU
>
> As a result of post several places (which is frowned upon) I have
> basically everything to get it running (correct compiler, libraries,
> linker scripts; though it still isn't running). Thanks anyways.

You might have fixed this already, but in the code you posted on google you are not calling SystemInit() from main().  This function not called from the startup_stm32f10x_xx.s module as the comment in the code suggests (unless you have modified the startup code to do this).

Check the example projects that come with the STM32 library - the first function to be called in main is always RCC_Configuration() which calls SystemInit().

Mike

=======================================================================
This e-mail is intended for the person it is addressed to only. The
information contained in it may be confidential and/or protected by
law. If you are not the intended recipient of this message, you must
not make any use of this information, or copy or show it to any
person. Please contact us immediately to tell us that you have
received this e-mail, and return the original to us. Any use,
forwarding, printing or copying of this message is strictly prohibited.
No part of this message can be considered a request for goods or
services.
=======================================================================

More... (looser matching)
- Last day of these posts
- In 2012 , 2013 only
- Today
- New search...