Re: [OpenOCD-devel] OpenOCD v0.7 and error not sector-aligned

2013-10-07 Thread Andreas Fritiofson
On Mon, Oct 7, 2013 at 5:50 AM, Nader wrote: > Hi Guys, > > I was able to compile the latest dirty version, and just a feedback, > the errors still there for my case . > > I am willing to try anything you throw on me ... :) > Ok, lets try the following steps, is the >1MB file you're having

Re: [OpenOCD-devel] OpenOCD on MX51

2013-10-07 Thread Bojan
Paul Fertser writes: > > On Sun, Oct 06, 2013 at 04:16:42PM +, Bojan M. wrote: > > I am observing the same problems with iMX51 and openocd version 0.7.0. > > Was there any progress on this? I am using iMX51evk board. Any help will be > > appriciated! > > First thing, try current git HEAD an

Re: [OpenOCD-devel] OpenOCD on MX51

2013-10-07 Thread Bojan
log when I try to issue "reset init" command: Debug: 344 4446 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_reset init Debug: 345 4446 command.c:145 script_debug(): command - reset ocd_reset init Debug: 346 4446 cortex_a.c:845 cortex_a8_poll(): Unknown target state dscr

Re: [OpenOCD-devel] compilation

2013-10-07 Thread Jonathan Dumaresq
Hi Freddie, Freddie Chopin wrote: > Any luck with that? I was planinig to do another snapshot compilation > soon, but I guess it will be pretty hard this time... > > If I have the libs in right places, can I just provide some flags > externally to avoid all the hassle? sth like LDFLAGS="..." c

Re: [OpenOCD-devel] compilation

2013-10-07 Thread Freddie Chopin
I've taken a look at the script and it all seems nice, but I guess the problem would be with libusb-win32, which I cannot build "completely" - it fails after the DLLs and static libs are built, and I don't need anything more, so I wasn't fixing that... 4\/3!! --

Re: [OpenOCD-devel] OpenOCD v0.7 and error not sector-aligned

2013-10-07 Thread Nader
Hi Andreas, Thanks for your suggestions, we have good news and bad news. As you expected the real issue is in the sector erase at the boundary of the first 12 sectors (1024K total). Sorry for lengthy email, but i wanted to properly document the findings as my contribution as a user, so everyo

[OpenOCD-devel] [PATCH]: f895194 stm32f2x: Fix sector numbering for dual bank flash erase

2013-10-07 Thread gerrit
This is an automated email from Gerrit. Andreas Fritiofson (andreas.fritiof...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/1689 -- gerrit commit f895194472ada463b5987521aef093027ea71cd6 Author: Andreas Fritiofson Date: Mon Oct 7 20:56:16

Re: [OpenOCD-devel] OpenOCD v0.7 and error not sector-aligned

2013-10-07 Thread Andreas Fritiofson
On Mon, Oct 7, 2013 at 5:59 PM, Nader wrote: > > flash erase_sector 0 0 11 > erased sectors 0 through 11 on flash bank 0 in 17.206984s > > flash erase_sector 0 0 12 > stm32x device protected > failed erasing sectors 0 to 12 > Hi, I've located a bug and pushed a fix to Gerrit at http://openocd.zy

Re: [OpenOCD-devel] OpenOCD v0.7 and error not sector-aligned

2013-10-07 Thread Nader
Hi Guys, EUREKA! It worked like a charm :) Unfortunately not familiar how to fetch the patch by itself, so i went ahead carried the changes manually to my src/flash/nor/stm32f2x.c , compiled and built again my .exe and tried it out. All worked out fine (output below). I am afraid I have to

Re: [OpenOCD-devel] OpenOCD v0.7 and error not sector-aligned

2013-10-07 Thread Andreas Fritiofson
On Mon, Oct 7, 2013 at 11:51 PM, Nader wrote: > Hi Guys, > > EUREKA! It worked like a charm :) > I'm glad to hear! > Unfortunately not familiar how to fetch the patch by itself, so i went > ahead carried the changes manually to my src/flash/nor/stm32f2x.c , > compiled and built again my

Re: [OpenOCD-devel] compilation

2013-10-07 Thread Xiaofan Chen
On Mon, Oct 7, 2013 at 11:39 PM, Freddie Chopin wrote: > I've taken a look at the script and it all seems nice, but I guess the > problem would be with libusb-win32, which I cannot build "completely" - > it fails after the DLLs and static libs are built, and I don't need > anything more, so I wasn

Re: [OpenOCD-devel] OpenOCD v0.7 and error not sector-aligned

2013-10-07 Thread Nader
Hi Andreas and all, Thanks again, I will keep your notes handy. Cheers. On Mon, Oct 7, 2013 at 4:06 PM, Andreas Fritiofson < andreas.fritiof...@gmail.com> wrote: > > On Mon, Oct 7, 2013 at 11:51 PM, Nader wrote: > >> Hi Guys, >> >> EUREKA! It worked like a charm :) >> > > I'm glad