<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Processor Expert SoftwareのトピックRe: Processor expert CSTACK placement in icf file</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Processor-expert-CSTACK-placement-in-icf-file/m-p/344573#M2615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is know bug in PEx for KSDK 1.1.0. This issue has been already fixed in PEx for KSDK 1.2.0 - this version should be published in beginning of Q2 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are sorry for inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2015 11:32:45 GMT</pubDate>
    <dc:creator>vfilip</dc:creator>
    <dc:date>2015-03-02T11:32:45Z</dc:date>
    <item>
      <title>Processor expert CSTACK placement in icf file</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Processor-expert-CSTACK-placement-in-icf-file/m-p/344572#M2614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have generated a new project using Processor Expert using the KSDK 1.1. and I have added the MQX standard component plus others. I have then connected this to an IAR project and built it.&lt;/P&gt;&lt;P&gt;After getting what I believe are the correct pre-processor settings etc. have got it to compile but was getting random Hard fault interrupts.&lt;/P&gt;&lt;P&gt;Eventually I have tracked this down to the a bad heap settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In bsp_config.h there is the following:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;#define __HEAP_START Image$$ARM_LIB_HEAP$$Base&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;#define __HEAP_END Image$$ARM_LIB_STACK$$ZI$$Limit&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the icf file the following is generated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place in DATA_region { readwrite, block CSTACK, block HEAP};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means the heap end is before the heap start and the lwmem thinks the heap is huge and incorrectly placed so memory allocations overwrite the kernel_data. I have unchecked the option to generate the icf file and changed the line as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place in DATA_region { readwrite, block HEAP, block CSTACK };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the heap size and location is correct and all works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is a bug in the processor Expert but if anyone knows that I am doing something wrong then I would like to know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adrian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 17:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Processor-expert-CSTACK-placement-in-icf-file/m-p/344572#M2614</guid>
      <dc:creator>adyr</dc:creator>
      <dc:date>2015-02-27T17:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Processor expert CSTACK placement in icf file</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Processor-expert-CSTACK-placement-in-icf-file/m-p/344573#M2615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is know bug in PEx for KSDK 1.1.0. This issue has been already fixed in PEx for KSDK 1.2.0 - this version should be published in beginning of Q2 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are sorry for inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 11:32:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Processor-expert-CSTACK-placement-in-icf-file/m-p/344573#M2615</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2015-03-02T11:32:45Z</dc:date>
    </item>
  </channel>
</rss>

