Undefined external "__iar_HWMUL"

Technical Note 79022

Targets:
MSP430

Component:
Linker

Updated:
3/30/2015 11:50 AM

Introduction

Trying to build an established project using IAR Embedded Workbench for MSP430 version 6.20 (or later), linking fails with the message

Error[e46]: Undefined external "__iar_HWMUL" ...

Suggested solution

Use the default linker xcl-file for the installation you are using.

Background

The symbol __iar_HWMUL was introduced with IAR Embedded Workbench for MSP430 version 6.20.

Using lnk430f149.xcl as example, there are new lines as below:

// -----------------------------------------------
// Hardware multiplier location
//
-D__iar_HWMUL=130

Note

In general, there are good reason to use only matching versions (e.g., header files, xcl-files, libraries, tools from the same release).

 

All product names are trademarks or registered trademarks of their respective owners.

Related Tech Notes

© IAR Systems 1995-2016 - All rights reserved.