[Openocd-development] [PATCH] olimex_stm32_h103.cfg: Add reset_config for shorted RST-TRST

2010-12-20 Thread Tormod Volden
From: Tormod Volden On these boards (Olimex, IAR) an R-T jumper shorting RST and TRST is soldered from the factory, see the pictures at: http://www.micromouseonline.com/blog/2008/08/05/stm32-and-the-seggeriar-j-link/ Add reset_config trst_and_srst to make reset work out of the box. --- Sorry fo

[Openocd-development] [PATCH] olimex_stm32_h103.cfg: Add reset_config for shorted RST-TRST

2010-12-20 Thread Tormod Volden
From: Tormod Volden On these boards (Olimex, IAR) an R-T jumper shorting RST and TRST is soldered from the factory. Add reset_config trst_and_srst to make reset work out of the box. --- Hi, I did not get any response on my two questions, but here is the patch that I would suggest. It has been

Re: [Openocd-development] Problem loading to CFI flash

2010-12-20 Thread Jonathan dumaresq
openocd-development-boun...@lists.berlios.de wrote: > On Sun, Dec 19, 2010 at 3:56 AM, Michael Schwingen > wrote: >> I think it is time to re-factor that target-algorithm code and pull >> the target dependencies out of the CFI code, but that would be a >> separate step. > > Fully agree! +1 Jon

Re: [Openocd-development] Problem loading to CFI flash

2010-12-20 Thread Jonathan dumaresq
andr...@fritiofson.net wrote: > On Fri, Dec 17, 2010 at 4:36 PM, Jonathan dumaresq > wrote: >> Hi all, >> >> Here my first patches to be able to use the CFI driver on cortex M3 >> with the helper code on target. This is probably not the better way >> of >> doing it, but at least it's work. This

Re: [Openocd-development] Help needed for SAM3S4C

2010-12-20 Thread Michael Trensch
On 20.12.2010 15:58, Kenan Özdemir wrote: > > Hi, > > I already turned off the optimization, and there is no return in my main. > > my code looks like this: > ** Any function will return if it reaches the end of scope, with or without return. The only difference is a compiler warning if a r

Re: [Openocd-development] Help needed for SAM3S4C

2010-12-20 Thread Freddie Chopin
On 2010-12-20 15:58, Kenan Özdemir wrote: I already turned off the optimization, and there is no return in my main. my code looks like this: ... I reduced it a lot to find the error, but it always jumps to the same address. So as you can see I dont return from main... Show the whole disassem

Re: [Openocd-development] Help needed for SAM3S4C

2010-12-20 Thread Kenan Özdemir
Hi, I already turned off the optimization, and there is no return in my main. my code looks like this: int main(void) { int a = 1; int i = 1; vTask1(a); vTask2(i); } void vTask1 (int x){ int i; for(i = 0; i<10;i++) x++; } void vTask2 (int x){ int i; wh

Re: [Openocd-development] Help needed for SAM3S4C

2010-12-20 Thread Michael Schwingen
Am 12/20/2010 02:32 PM, schrieb Kenan Özdemir: > > Hi, > > somehow my code is not working. Recently I tried to figure out, why > there are these unexpected jumps in my programcode. After a look at > the Disassembly, I found something strange.. > > My first lines in main are these: > > int a =

[Openocd-development] Help needed for SAM3S4C

2010-12-20 Thread Kenan Özdemir
Hi, somehow my code is not working. Recently I tried to figure out, why there are these unexpected jumps in my programcode. After a look at the Disassembly, I found something strange.. My first lines in main are these: int a = 1; int i = 1; and the Disassembly says for these two lines: