Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Custom boot firmware, elf2img and interrupt vector table

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Custom boot firmware, elf2img and interrupt vector table
Moderator:
RSKV

Post Reply
Follow this topic



Custom boot firmware, elf2img and interrupt vector table

dschneider posted on 13 Dec 2011 12:31 AM PST
Senior Member
17 Forum Posts

In debugging our custom boot firmware with the latest SDK, I found that the latest version of elf2img uses the program header data instead of the section data to generate the image.

This causes it to generate an img file that includes writes to address 0x00 through 0xFF, which is reserved for the interrupt vector table and is automatically populated in the firmware initialization.

This would be fine, except when using a custom boot firmware, the boot firmware doesn't avoid writing to 0x00 through 0xFF, and so when the command to write to that section comes in, it proceeds to clobber the vector table with bad addresses.  It then promptly crashes andfails.

Either generating an image that avoids writing to 0x00-0xFF or modifying the USB boot code to avoid writing to those addresses fixes the issue, but I'm surprised that this issue has not been hit in your testing.




Re: Custom boot firmware, elf2img and interrupt vector table

aasi posted on 13 Dec 2011 03:56 AM PST
Cypress Employee
1073 Forum Posts

Hi,

This is a mistake in the elf2img tool. We have initiated steps to correct the BETA4 package and plugged the test gap that caused this incorrect tool version to get packaged. Please use the attached version of the elf2img tool with BETA4.

Sorry for the inconvenience cause. Thanks for bringing this up.

Regards,

Anand






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve 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.