On 12/03/2012 16:57, salvador wrote: > > If we agree with the settings in that example, let me move the settings, > step by step, so you can tell me what i am doing wrong: > > 1.- > > Copy from the example to the config file: > > # BMXDKPBA: > mww 0xbf882010 0x2000 > # BMXDUDBA: > mww 0xbf882020 BMXDRMSZ > # BMXDUPBA: > mww 0xbf882030 BMXDRMSZ > > 2.- > > We don't need 8K of data Ram in kernel space, but we need to set it at > least to 2k. This value is defined in the config file as > _PIC32MX_DATASIZE. So we get: > > > # BMXDKPBA: > mww 0xbf882010 $_PIC32MX_DATASIZE > # BMXDUDBA: > mww 0xbf882020 BMXDRMSZ > # BMXDUPBA: > mww 0xbf882030 BMXDRMSZ > > > 3.- > > BMXDRMSZ is the size of the physical random access memory: RAM, SRAM, or > DRM in the data sheet. > This size is defined in the config file as : _WORKAREASIZE. > So if BMXDRMSZ = _WORKAREASIZE, we end up with: > > # BMXDKPBA: > mww 0xbf882010 $_PIC32MX_DATASIZE > # BMXDUDBA: > mww 0xbf882020 $_WORKAREASIZE > # BMXDUPBA: > mww 0xbf882030 $_WORKAREASIZE > > > Why do you think this settings are wrong? Where is the mistake? > > (Put "global _WORKAREASIZE" where needed) > > > I have tested this again and again in my PIC32mx220 and if i run "reset > init" with the actual settings i can say bye-bye to the last 2k of ram > in kernel space. > Perhaps i am going crazy, but my chip? >
ah i see what you mean now, no you are not going crazy :) Yes the cfg is incorrect and is should use the $_WORKAREASIZE variable. I have uploaded an updated patch (not tested yet): http://openocd.zylin.com/508 Cheers Spen ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel