<?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>Errors L6366E &amp;amp; L62242E</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/48301/errors-l6366e-l62242e</link><description> I created a static library for the micro-ecc project using GNU Arm Embedded Toolchain : arm-none-eabi-gcc -Wall -c uECC.c and armar : armar -rcs libuECC.a uECC.o 
 I added the library file to my Keil Project and I get this error: 
 Build started: Project</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Errors L6366E &amp; L62242E</title><link>https://community.arm.com/thread/169267?ContentTypeID=1</link><pubDate>Sun, 20 Dec 2020 03:18:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d25f2a49-ce6c-4d65-a0e1-d537c9e09bec</guid><dc:creator>Anvi</dc:creator><description>&lt;p&gt;I see, I understand. I re-compiled using the following flags:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-gcc -Wall -O3 -fshort-wchar -mthumb -mcpu=cortex-m3 -mfix-cortex-m3-ldrd -c uECC.c &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m able to&amp;nbsp;link the resulting object into my project now. Thanks for you guidance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors L6366E &amp; L62242E</title><link>https://community.arm.com/thread/169241?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 21:25:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:194328a5-9ac3-462e-8f8d-dce118d50c8d</guid><dc:creator>Andy Neil</dc:creator><description>[quote userid="70088" url="~/developer/tools-software/tools/f/keil-forum/48301/errors-l6366e-l62242e/169234"]how to modify these attributes when compiling the library object. I can&amp;#39;t seem to find&amp;nbsp;anything explicit[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you read the &amp;#39;Compilation Notes&amp;#39; in the documentation on the Github page you linked?&lt;/p&gt;
&lt;p&gt;Have you tried contacting the author?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors L6366E &amp; L62242E</title><link>https://community.arm.com/thread/169240?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 21:23:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3f134244-507e-491e-bb60-e1015b3f454e</guid><dc:creator>Andy Neil</dc:creator><description>[quote userid="70088" url="~/developer/tools-software/tools/f/keil-forum/48301/errors-l6366e-l62242e/169235"]and I get this error: &lt;div class="evolution-code-editor theme-clouds"&gt;&lt;a href="#" class="fullscreen"&gt;&lt;/a&gt;&lt;/div&gt;[/quote]
&lt;p&gt;Well, you would: a Cortex-M3 indeed does not support ARM mode - it is Thumb only.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors L6366E &amp; L62242E</title><link>https://community.arm.com/thread/169235?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 15:44:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:66b8fb0c-f918-4d2a-aed4-0f83b29a0d36</guid><dc:creator>Anvi</dc:creator><description>&lt;p&gt;I attempted to re-compile using my target cpu name:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-gcc -Wall -O3 -mcpu=cortex-m3 -c uECC.c&lt;/pre&gt; and I get this error: &lt;pre class="ui-code" data-mode="text"&gt;error: target CPU does not support ARM mode&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors L6366E &amp; L62242E</title><link>https://community.arm.com/thread/169234?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 15:29:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2ff6c3ff-bf34-41eb-9610-e19d3313acb0</guid><dc:creator>Anvi</dc:creator><description>&lt;p&gt;I see, thank you for your response. I&amp;#39;m trying to find documentation for the GNU ARM Embedded Toolchain on how to modify these attributes when compiling the library object. I can&amp;#39;t seem to find&amp;nbsp;anything explicit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors L6366E &amp; L62242E</title><link>https://community.arm.com/thread/169231?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 15:00:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:437b7af3-13bd-429a-8bc6-06ea50e33563</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;Surely,&amp;nbsp;the&amp;nbsp; messages are telling you which parts are in conflict:&lt;/p&gt;
[quote userid="70088" url="~/developer/tools-software/tools/f/keil-forum/48301/errors-l6366e-l62242e"]Build Attributes that are incompatible with the CPU attributes.&lt;br /&gt;Tag_CPU_arch = ARM v4T (=2)&lt;br /&gt;Tag_THUMB_ISA_use = Thumb instructions were permitted to be used (=1)&lt;br /&gt;Tag_ARM_ISA_use = ARM instructions were permitted to be used (=1)[/quote]
&lt;p&gt;and&lt;/p&gt;
[quote userid="70088" url="~/developer/tools-software/tools/f/keil-forum/48301/errors-l6366e-l62242e"]&lt;strong&gt;attributes are incompatible with the image attributes.&lt;/strong&gt;&lt;br /&gt;... &lt;strong&gt;wchart-16 clashes with wchart-32.&lt;/strong&gt;&lt;br /&gt;... &lt;strong&gt;arm-isa clashes with m-profile.&lt;/strong&gt;[/quote]
&lt;p&gt;For a start, it looks like your project is Cortex-M, but the library is ARM7TDMI ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors L6366E &amp; L62242E</title><link>https://community.arm.com/thread/169228?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 14:35:04 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:697ad035-763c-4e68-9e65-076a38b184f1</guid><dc:creator>Anvi</dc:creator><description>&lt;p&gt;So, this is what I get as output from executing&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;fromelf.exe --decode_build_attributes libuECC.a&lt;/pre&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;** Section #8 &amp;#39;.ARM.attributes&amp;#39; (SHT_ARM_ATTRIBUTES)
    Size   : 48 bytes

    &amp;#39;aeabi&amp;#39; file build attributes:
    0x000000:   05 41 52 4d 37 54 44 4d 49 00 06 02 08 01 09 01    .ARM7TDMI.......
    0x000010:   12 04 14 01 15 01 17 03 18 01 19 01 1a 01 1e 02    ................
        Tag_CPU_name = &amp;quot;ARM7TDMI&amp;quot;
        Tag_CPU_arch = ARM v4T (=2)
        Tag_ARM_ISA_use = ARM instructions were permitted to be used (=1)
        Tag_THUMB_ISA_use = Thumb instructions were permitted to be used (=1)
        Tag_ABI_PCS_wchar_t = Size of wchar_t is 4 (=4)
        Tag_ABI_FP_denormal = This code was permitted to require IEEE 754 denormal numbers (=1)
        Tag_ABI_FP_exceptions = This code was permitted to check the IEEE 754 inexact exception (=1)
        Tag_ABI_FP_number_model = This code may use all the IEEE 754-defined FP encodings (=3)
        Tag_ABI_align8_needed = Code was permitted to depend on the 8-byte alignment of 8-byte data items (=1)
        Tag_ABI_align8_preserved = Code was required to preserve 8-byte alignment of 8-byte data objects (=1)
        Tag_ABI_enum_size = Enum values occupy the smallest container big enough to hold all values (=1)
        Tag_ABI_optimization_goals = Optimized aggressively for speed, small size and debug illusion sacrificed (=2)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How do I see the attributes of my project and how would I align them?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors L6366E &amp; L62242E</title><link>https://community.arm.com/thread/169210?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 08:10:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:01623ced-fb3b-48fb-a763-e6d38f0d6b4c</guid><dc:creator>ChenTang</dc:creator><description>&lt;p&gt;&amp;quot; Error: L6366E: uECC.o attributes are not compatible with the provided cpu and fpu attributes&amp;quot; indicates that the build attributes used in your lib built by the gcc compiler are different/incompatible with the ones currently used in your project.&lt;/p&gt;
&lt;p&gt;You can use the fromelf.exe together with&amp;nbsp; --decode_build_attributes command line option to decode your lib file as well as your&amp;nbsp;uECC.o to compare the attributes&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.keil.com/support/man/docs/armutil/armutil_pge1362128892751.htm"&gt;https://www.keil.com/support/man/docs/armutil/armutil_pge1362128892751.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;They must be aligned, otherwise you will get this error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>