Sunday, June 15, 2014

Content on this site may contain or be subject to specific guidelines or limitations halfords on use


Forum Microcontroller Forum XMC Forum XMC4500 stepping AB Flexible CRC Engine BUG? If this is your first visit, be sure to check out the FAQ . You will have to register before you can post. To start viewing messages, select the forum that you want to visit below.
According to the Reference Manual (xmc4500_rm_v1.4_2014_04.pdf) the resulting CRC value can be obtained from the register RESm at any time. But the fact is, that the FCE needs at least one processor tackt to finish the calculations, e.g.:
Code: uint32_t result; // fisrt implementation FCE_KE0->CRC halfords = 0xFFFFFFFF; // CRC Seed FCE_KE0->IR = 1; FCE_KE0->IR = 2; FCE_KE0->IR = 3; result = FCE_KE0->RES; // <<< WRONG RESULT!!! // second implementation FCE_KE0->CRC = 0xFFFFFFFF; // CRC Seed FCE_KE0->IR = 1; FCE_KE0->IR = 2; FCE_KE0->IR = 3; __NOP(); result halfords = FCE_KE0->RES; // <<< CORRECT RESULT!!! My code is optimized with -O3 flag and executed from PSRAM at 120 MHz.
Quick Navigation XMC Forum Top Site Areas Settings Private Messages Subscriptions halfords Who's Online Search Forums Forums Home Forums Microcontroller Forum XMC Forum XC800 Forum XE166/XC2000 Forum TriCore Forum DAVE™ Forum ESD PROTECTION Forum General Forum
All content halfords and materials on this site are provided as is . Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property halfords right. No license, whether express or implied, halfords is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.
Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself halfords expressly from the contents of the linked pages, over the structure of which Infineon has no control.
Content on this site may contain or be subject to specific guidelines or limitations halfords on use. All postings and use of the content halfords on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.


No comments:

Post a Comment