Unable to load my code in R5F21258SNFP through Renesas E8a deubgger -"Memory area error. It is outside the effective address range" warning is shown by emulator.

Specifications

  • Controller: R5F21258SNFP 
  • Debugger: Renesas E8a 
  • ToolChain : M16C
  • IDE         : HEW Version 4.08.00.011
  • Evaluation Version

Issue 

  •  When i try to load my code into controller. My  debugger is getting connected but when trying to load into the device, the emulator throws the following warning. "Memory area error. It is outside the effective address range".

 

  • For your kind reference the Memory details are below
    • DATA 0002757(00AC5H) Byte(s)
    • ROMDATA 0003776(00EC0H) Byte(s)
    • CODE 0053064(0CF48H) Byte(s)

Attachments

      Please find the attachments in the URL(Google Drive)

  • Files
    • Build Output Log file
    • Map File (File name Rest.map)
  • Images
    • Memory Area error warning message
    • Build Log
  • Related Files
    • ncrt0.a30
    • nc_define.inc 
    • sect30.inc

 

 

Parents
  • The debugger has information about the available memory range in the processor. It "knows" that program flash uses the address range 0x004000 - 0x13FFF. Your code goes far beyond this area. Please split your code to near code and far code areas.
  • Noted and Thanks. It was very helpful.

    Now i face a problem wherein my library files are creating a issue. sprintf,strncpy,strlen etc are not able to link properly. This causes my device to hang completely. I use nc30lib and have set CPU settings to R8C/2X series

    How to overcome this issue.
  • Sorry, a description "it does not work, why" does not give any hints as to what could be the problem.
    What gives you the idea that it is a library problem?
    I have never heard of a library problem crashing an application.
    To which addresses are your libraries linked?
    Have you checked the library calls in your application? Do they go to the correct addresses?
    Which CPU type do you select?
Reply
  • Sorry, a description "it does not work, why" does not give any hints as to what could be the problem.
    What gives you the idea that it is a library problem?
    I have never heard of a library problem crashing an application.
    To which addresses are your libraries linked?
    Have you checked the library calls in your application? Do they go to the correct addresses?
    Which CPU type do you select?
Children
No Data