Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #25304

Re: How do I get rid of a memory hole(in cortexm0plus)?

From David Brown <david.brown@hesbynett.no>
Newsgroups comp.arch.embedded
Subject Re: How do I get rid of a memory hole(in cortexm0plus)?
Date 2016-10-31 11:12 +0100
Organization A noiseless patient Spider
Message-ID <nv75dc$lh9$2@dont-email.me> (permalink)
References <nv4b16$j9n$1@gioia.aioe.org> <87b467f0-170c-4289-9c92-e250b57c562a@googlegroups.com> <nv72j0$cog$1@dont-email.me> <e6dfb86c-3eb6-40ee-8917-eeb4ebe6a310@googlegroups.com>

Show all headers | View raw


On 31/10/16 10:43, Jack wrote:
> Il giorno lunedì 31 ottobre 2016 10:24:15 UTC+1, David Brown ha scritto:
> 
>> The "fconf" section here must be at that specific address.  Although the
>> OP doesn't say so, I expect this is a Freescale/NXP Kinetis
>> microcontroller.  The microcontroller uses the configuration at that
>> specific address to determine things like flash security.
> 
> I supposed so.
> But if I remember correctly the place is not fixed and can be changed.
> 
> you should be able to to something like:
> 
> __start_fconf = .; #this is the address where fconf begins
> KEEP(*(.fconf)) 
> __end_fconf = .;   #this is the address after the end of fconf
> 
> maybe some ALIGN() before or after is needed.
> And use __start_fconf as address in C code to access the needed bytes.
> 
> For more info (for example):
> <http://www.nxp.com/files/soft_dev_tools/doc/app_note/AN4498.pdf?fasp=1&WT_TYPE=Application%20Notes&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=pdf&WT_ASSET=Documentation&fileExt=.pdf>
> 
> Bye Jack
> 

Certainly you can use the linker file to place the flash configuration
segment somewhere else.  But then it will not work as the flash
configuration - because the Kinetis reads the values are addresses 0x400
to 0x40f at reset, with a total disregard for whatever linker file you
use.  The issue is the Kinetis hardware, not the linker file.

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How do I get rid of a memory hole(in cortexm0plus)? Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-10-30 09:29 +0100
  Re: How do I get rid of a memory hole(in cortexm0plus)? David Brown <david.brown@hesbynett.no> - 2016-10-30 16:50 +0100
  Re: How do I get rid of a memory hole(in cortexm0plus)? Jack <jack4747@gmail.com> - 2016-10-31 01:16 -0700
    Re: How do I get rid of a memory hole(in cortexm0plus)? David Brown <david.brown@hesbynett.no> - 2016-10-31 10:24 +0100
      Re: How do I get rid of a memory hole(in cortexm0plus)? Jack <jack4747@gmail.com> - 2016-10-31 02:43 -0700
        Re: How do I get rid of a memory hole(in cortexm0plus)? David Brown <david.brown@hesbynett.no> - 2016-10-31 11:12 +0100
          Re: How do I get rid of a memory hole(in cortexm0plus)? Jack <jack4747@gmail.com> - 2016-10-31 05:11 -0700
            Re: How do I get rid of a memory hole(in cortexm0plus)? Jack <jack4747@gmail.com> - 2016-10-31 05:23 -0700
              Re: How do I get rid of a memory hole(in cortexm0plus)? David Brown <david.brown@hesbynett.no> - 2016-10-31 14:24 +0100

csiph-web