How can we help you today?

How to avoid gcc compilation error after upgrade from BMEP584040 to BMEP585040

In CE15.3, a GCC compilation error may occur after changing the CPU in the application from BMEP584040 to BMEP585040 or higher. This issue arises when a few not recommended instructions are used in specific sections.
The compiler utilized in BMEP585040 and higher models differs from the one used for BMEP584040 references and lower. This imposes limitations in ST sections, particularly when 'JMP' instructions are used in an infinite loop (e.g., with labels).
To prevent potential GCC issues, it is strongly advised to replace these 'JMP' instructions in infinite loops with 'While' instructions.

See the following example:

The following code uses label and JMP instructions:

Code uses label and JMP instructions

Can be replaced by this one, doing the same thing, and able to be built by the BMEP585040 compiler:

Code uses while instead

Schneider Electric Philippines

Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more

Need help?

Need help?

Product Selector

Product Selector

Quickly and easily find the right products and accessories for your applications.

Get a Quote

Get a Quote

Start your sales inquiry online and an expert will connect with you.

Where to buy?

Where to buy?

Easily find the nearest Schneider Electric distributor in your location.

Help Center

Help Center

Find support resources for all your needs, in one place.

  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Center
  • Find our Offices
  • Get a Quote
  • Where to buy
  • Schneider Electric Community
  • Careers
  • Company Profile
  • Report a misconduct
  • Accessibility
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings