We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I am new in ARM programming using keil.I tried to debug a sample code in the keil compiler but I have this error when i pressed f7: Error 65: access violation at 0xFFFFFFF4.I saw the thread to solve this issue. some body said I should add following line to my ini file: MAP 0x40000000, 0x40001FFF Read Write
I have done it but the Error 65: access violation at 0xFFFFFFF4 is appeared again. which place i should be add above code to my ini file ? my ini code is like this: BREAKPOINTS] ShowInfoWin = 1 EnableFlashBP = 2 BPDuringExecution = 0 [CFI] CFISize = 0x00 CFIAddr = 0x00 [CPU] OverrideMemMap = 0 AllowSimulation = 1 ScriptFile="" MAP 0x40000000, 0x40001FFF Read Write [FLASH] MinNumBytesFlashDL = 0 SkipProgOnCRCMatch = 1 VerifyDownload = 1 AllowCaching = 1 EnableFlashDL = 2 Override = 0 Device="AD7160" [GENERAL] WorkRAMSize = 0x00 WorkRAMAddr = 0x00 [SWO] SWOLogFile="" [MEM] MAP 0x40000000, 0x40001FFF Read Write EXEC RdOverrideOrMask = 0x00 RdOverrideAndMask = 0xFFFFFFFF RdOverrideAddr = 0xFFFFFFFF WrOverrideOrMask = 0x00 WrOverrideAndMask = 0xFFFFFFFF WrOverrideAddr = 0xFFFFFFFF
What should i do to solve this problem .I would like to debug lines of my code step by step.
I would be grateful if you can answer this question
thanks Mohsen
I use lpc1768 from NXP product and in simulator mode ,I did what you offered that means I wrote -REMAP in cpu DLL Parameter text box and I added following line in the first line of ini file :
MAP 0x40000000,0x40001FFF Read Write
But in addition to prior error a new error occurred which name is error 10:syntax error as below:
Load "D:\\M.gholami\\ARM Projects\\Philips\\Keil\\Osciloscope(Programming whit USB bootloader)\\osciloscope.AXF" Include "D:\\M.gholami\\ARM Projects\\Philips\\Keil\\Osciloscope(Programming whit USB bootloader)\\JLinkSettings.ini" MAP 0x40000000, 0x40001FFF Read Write [BREAKPOINTS] ^ *** error 10: Syntax error *** error 65: access violation at 0xFFFFFFF4 : no 'write' permission my ini file is:
MAP 0x40000000, 0x40001FFF Read Write [BREAKPOINTS] ShowInfoWin = 1 EnableFlashBP = 2 BPDuringExecution = 0 [CFI] CFISize = 0x00 CFIAddr = 0x00 [CPU] OverrideMemMap = 0 AllowSimulation = 1 ScriptFile="" [FLASH] MinNumBytesFlashDL = 0 SkipProgOnCRCMatch = 1 VerifyDownload = 1 AllowCaching = 1 EnableFlashDL = 2 Override = 0 Device="AD7160" [GENERAL] WorkRAMSize = 0x00 WorkRAMAddr = 0x00 [SWO] SWOLogFile="" [MEM] RdOverrideOrMask = 0x00 RdOverrideAndMask = 0xFFFFFFFF RdOverrideAddr = 0xFFFFFFFF WrOverrideOrMask = 0x00 WrOverrideAndMask = 0xFFFFFFFF WrOverrideAddr = 0xFFFFFFFF
I can debug my codes simply with jlink but in simulator mode i have errors which i talked about.Please help me more.