Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How resolve a warning in IAR 'Reset_Handler'

Tags:

iar

I'm using IAR ARM 7.10 and getting a warning:

Warning[25]: Label 'Reset_Handler' is defined pubweak in a section implicitly declared root...

It is cause the system reset sometimes.

How do I resolve this warning?

like image 497
user3428151 Avatar asked Mar 17 '14 09:03

user3428151


Video Answer


2 Answers

Yes, straight from iAR Support page:

Problem

After upgrading to EWARM 7.10.1 the Warning[25] is issued during assembly of a file that assembled without warning on earlier version of EWARM.

Background

The assembler (iasmarm) is (from EWARM 7.10.1) issuing Warning[25] for a deprecated assembler construction.

The deprecated assembler source construction looks like this:

  PUBWEAK NMI_Handler
  SECTION .text:CODE:REORDER(1)

NMI_Handler Solution

To avoid the warning, add ":NOROOT" to the "SECTION" statement:

  PUBWEAK NMI_Handler
  SECTION .text:CODE:REORDER:NOROOT(1)

NMI_Handler

like image 126
Khulja Sim Sim Avatar answered Jan 03 '23 12:01

Khulja Sim Sim


In "startup_*.s" file replace string

SECTION .text:CODE:REORDER(1)

with string

SECTION .text:CODE:NOROOT:REORDER(1)

just before every symbol wich cause the warning.

like image 45
dddimok Avatar answered Jan 03 '23 11:01

dddimok