<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to create the image file of an application code?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/34088/how-to-create-the-image-file-of-an-application-code</link><description> 
Hey guys , I&amp;#39;m using the dual-core NXP chip , I do not know
exactly how to generate the image file for the slave core to be used
by the master core. 
I want the image to be a .c or .h file which contains an array of the
application code and I read the</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: How to create the image file of an application code?</title><link>https://community.arm.com/thread/83489?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 13:03:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3830acf4-d8b6-4506-bc6f-1ed690f4018e</guid><dc:creator>Algorithm M</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thx for ur reply , the problem is to create the binary image
itself , not reading it .&lt;br /&gt;
The example is the NXP dual-core MCU provided by KEIL&lt;br /&gt;
&lt;a href="https://www.lpcware.com/content/project/lpc43xx-dual-core-examples"&gt;www.lpcware.com/.../lpc43xx-dual-core-examples&lt;/a&gt;&lt;br /&gt;

The example outputs an image file from the Cortex-M0 project in the
form of a C file that includes constant array which holds the
app.&lt;br /&gt;
The file is then included in the second project (the Cortex-M4).&lt;br /&gt;
The array is like that&lt;br /&gt;
unsigned char LR0[] = {
0x18,0x84,0x00,0x00,0xD5,0x00,0x00,0x00,0xD9,0x00,0x00,0x00,0xDB,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xDF,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE3,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xEB,0x00,0x00,0x00,0x15,0x01,0x00,0x00,0xEB,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xEB,0x00,0x00,0x00,0xEB,0x00,0x00,0x00,0xEB,0x00,0x00,0x00,0xEB,0x00,0x00,0x00,
0xEB,0x00,0x00,0x00,0xEB,0x00,0x00,0x00,0xEB,0x00,0x00,0x00,0xD1,0x01,0x00,0x00,
0xEB,0x00,0x00,0x00,0xEB,0x00,0x00,0x00,0xEB,0x00};&lt;br /&gt;
Im sure there is some command in the user menu in the target options
that generates the image file , but i do not understand it .&lt;br /&gt;
Any ideas?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create the image file of an application code?</title><link>https://community.arm.com/thread/69763?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 13:01:51 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2ad3e8a5-9594-4c41-8436-439c5040fcd7</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Surely, this must be a fundamental requirement for working with
this chip - so &lt;b&gt;NXP&lt;/b&gt; must have documentation and examples for
this ... ?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create the image file of an application code?</title><link>https://community.arm.com/thread/65267?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 08:41:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:648be754-7217-4753-9b34-2b04728a8877</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Could you cite the web pages or documentation you don&amp;#39;t
understand?&lt;/p&gt;

&lt;p&gt;
Generating .C or .H arrays of hex bytes using simple fopen, fseek,
fread, fclose, and printf from an binary image isn&amp;#39;t exactly a
complicated task, someone with basic C competence should be able to
code an app to do that.&lt;/p&gt;

&lt;p&gt;
Converting to .BIN, or .HEX you might want to look at Keil&amp;#39;s
FROMELF utility&lt;/p&gt;

&lt;p&gt;
Does the linker need to place the array into a specific load
region?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>