Found it. In the armv7m target, no breakpoint have been set. I have added a soft break point and now it seem to work well. Huge performance increase
I try to get something in pathes.... Jonathan -----Message d'origine----- De : openocd-development-boun...@lists.berlios.de [mailto:openocd-development-boun...@lists.berlios.de] De la part de Jonathan dumaresq Envoyé : 14 décembre 2010 13:27 À : 'Spencer Oliver' Cc : openocd-development@lists.berlios.de Objet : Re: [Openocd-development] Problem loading to CFI flash Hi, I have pull the head branch of openocd and now I can write to the cfi at a slow speed. I want to modify openocd to use the asm code for the cortex. I have used the sample contrib file as starting point for the cortex. I have been able to translate (a little effort there) the code. Now the question: 1- I have modifer the cfi.c to use my new opcodes in the word_16_code array. 2- I have change armv4_5_info.common_magic for ARMV7M_COMMON_MAGIC Up to now, I get to the point that my new code is loaded to ram and executed. The problem, is that I always exit of the armv7m_run_algorithm with an timeout. The target is never halt. BUT, when I look at the PC I'm at the exit point of the code, and the value of R5 is 0x80. So From what I see, The flash have been writed correctly. When I double check with mdw 0x64000000 all the data is well written. I have no idea why or How the target will be halted. Does any one here can point me to the righ direction ? I attach the asm file for the spansion 16 bin interface with the cortex m3 Regards Jonathan Dumaresq -----Message d'origine----- De : openocd-development-boun...@lists.berlios.de [mailto:openocd-development-boun...@lists.berlios.de] De la part de Jonathan dumaresq Envoyé : 7 décembre 2010 11:25 À : 'Spencer Oliver' Cc : openocd-development@lists.berlios.de Objet : Re: [Openocd-development] Problem loading to CFI flash Hi Spen, I'm happy that i'm not the only one !!! Is it possible to send or put somewhere a windows version that works ? I have never compiled openocd so, if you can provide the binary file i'll be happy. If not I can try to compiled it too. Regards Jonathan Spencer Oliver wrote: > On 06/12/2010 14:42, Jonathan dumaresq wrote: >> >> Have you fond some time to test this ? >> > > I have run a quick test and it fails for me also. > As a quick test i commented out block writes (cfi_write_words) and it > works as expected - albeit even slower. > > Also found this patch where they have disabled buffer writes for the > M29W128. > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif f;h=504a3e72208fc6a65924426ff5693982590bccdc > > Investigating there seems to be stack corruption within openocd when > using block writes - the timeout param of > cfi_spansion_wait_status_busy gets clobbered somewhere. > > Cheers > Spen _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development