programming micros

Spring 2002 From Idea to Target Editorial

Why it’s normally not a good idea to pull your own teeth!

Why then is it that many high-ranking an impressive 28%. We managed to com- managers and really smart plete numerous development projects for develop their own software development our customers, which always resulted in tools? It can hardly be because they have the delivery of either a standardized soft- a lot of time to kill, nor can it be that ware development tool or a customized money isn’t important to them. solution for special needs. I don’t have the real answer to this Perhaps you didn’t know that IAR can question, but I see it happening repeated- build the tools you need. We can produce ly in our market…in big companies with a very cost efficient solution for you by considerable resources and mature devel- drawing on our long experience, together Tomas Wolf, President Wolf, Tomas opment processes as well as in smaller with a standard product portfolio that Most of us wouldn’t even dream of ones with less resources and less mature lends itself to a virtually unlimited num- trying to pull our own teeth when we processes. They’re everywhere…compa- ber of combinations. Our motto ”From have a toothache. And how many of nies that believe they need to develop idea to target in half the time” isn’t just a us have done the plumbing in our their own dental practice or plumbing promise we continue to fulfill for count- business to boot! less embedded systems developers. It’s own homes? The same goes for a lot One could argue that this tendency is something we can offer you too. of other things. Why? We don’t do due to a lack of adequate development Let IAR build your new development these things simply because we’re not tools. In some cases it might be true, but environment Ð there is no other company experts in these fields. And we may in most cases it’s not. More than likely, it that can offer such a unique combination have learned the hard way that it’s has do to with a lack of awareness about of products and services. Read all about both cheaper and smarter to leave available tools and expertise. Fortunately what we have to offer in this issue of some things to an expert. there are global companies, such as IAR Programming Micros. Systems, who have focused on the task of What? Are you afraid of the dentist customizing and standardizing software too? Ooops! development tools for embedded develop- Last but not least, take care of yourself ment. and thanks for doing business with us. In 2001 when many of our competi- tors downsized due to diminishing sales, Sincerely, IAR’s license business actually grew by Tomas Wolf, CEO

New employees/New positions Created with IAR tools? Are you working on something cool that was created with tools from IAR Systems? Have you brought an idea to life? Want to share your success with other embedded systems Margareta Eriksson-Hörling, Jan Hedin, Product Nacera Rahmani, Technical engineers (the only ones who Product Marketing Manager. Development Manager. Support. really appreciate what you do)? Send us your success stories along with a picture of whatever it is you created to [email protected], we'll take the best of them and show it off for you - to 40,000 of your colleagues in a future issue of Programming Micros! Lars Sjöberg, Sales Manager Mats Mariedahl, Technical David Feng, Area Sales Bluetooth products. Support. Manager, Asia. 2 The Viking conquers Japan News

Major Asian tele- Bluetoothª is expected to take off this year with worldwide sales of more than 80 communications million devices, compared to 10 million in company licenses 2001. As the market for Bluetooth devices Bluetooth™ protocol soars, IAR is focusing its efforts on the stack Japanese market, where a number of com- panies are leading technology development One of the largest telecommuni- in terms of application development. Many cations companies in Asia Japanese companies have shown that they recently licensed the Bluetooth are quick to integrate the latest and grea- protocol stack technology from test technology into consumer products and IAR Systems. Our technology launch them in the marketplace. Bluetooth wireless technology makes IAR will be used in new products Companies such as , , Sharp, an ideal partner. being developed in Taiwan. The Seiko are some good examples. In January 2002, IAR and our Japanese highly compact Bluetooth partners, Softboat and Taiyo Yuden, held a protocol stack along with the IAR Japan is expanding its Bluetooth seminar tour in Tokyo and Osaka with 126 IAR MakeApp stack configura- business and services quickly and success- participants. Participants learned about the tion and optimization tool fully in Japan, having already launched its latest developments within the Bluetooth reduces development time as new Bluetooth products and created co- field and about the qualification process. well as production cost. The operation agreements with several leading IAR and Taiyo Yuden also performed pop- selection of stack supplier was Japanese Bluetooth wireless technology ular demonstrations of their Bluetooth made after a thorough evaluation suppliers. In so doing, IAR has become products. IAR also announced that we of available products, and under- the only supplier capable of offering a now support the Taiyo Yuden Bluetooth lines the strength of the IAR one-stop solution, from evaluation of modules with our Bluetooth protocol product portfolio. Bluetooth wireless technology to develop- stack, and Taiyo Yuden proudly reported ment, debugging, testing, verification, and that it is the first company in Japan, and qualification. No other supplier knows the the 5th in the world, to be accredited as a IAR and Toshiba demands on embedded systems develop- Bluetooth Qualification Test Facility announce a partner- ment like IAR. Our unique expertise with (BQTF). ship on Bluetooth wireless technology for the automotive Application Development industry IAR Systems and Toshiba Services at your service! Electronics Europe have announced a partnership regard- The professional Application Develop- the development of safety systems for ing Bluetooth wireless techno- ment Services organization within IAR some of the world's most important auto- logy for the automotive industry. Systems is ready to assist you in any motive companies. Our list of customers IAR Systems has adapted and phase of the development process—from include companies such as Combitech optimized the Bluetooth hardware design to software development Traffic Systems and Autoliv. protocol stack product for and Bluetooth qualification and testing. The Bluetooth consultants at IAR Toshiba’s high-performance Systems are the most qualified on the TLCS900-H2 series of 32-bit IAR Systems in Sweden offers vast expe- market; among their achievements is one CISC devices rience and expert skills in both hardware of the most compact Bluetooth protocol and the OSEK , development (design of ASICs and elec- stacks in the world, the IAR Embedded which are mainly targeted for tronic boards) and embedded software Bluetooth Protocol Stack. automotive customers and ve- development. Our areas of expertise Contact IAR Systems at [email protected] hicle applications. The compact include microcontroller and Microsoft before your next embedded development, IAR stack will help reduce pro- Windows device driver development, whether you need expert consultants or duction costs of automotive WindowsCE development, automotive want to commission a complete embedded applications that use the Toshiba (OSEK/CAN) and Bluetooth product systems development project including device. development. both hardware and software development, The IAR consultants are involved in with or without Bluetooth capabilities! 3 EP2002 Show New M16C toolset in Stockholm 15-18 January with Embedded ++ in the pipeline

Later this year, a new version of the IAR Embedded Workbench IDE will be avail- able for all developers of embedded systems who have Bluetooth™ crosses the chosen the M16C microcon- threshold to real embedded troller from Mitsubishi as projects their target chip. The new The overall impression of the tools use the very latest IAR EP2002, the biggest electronics technology and include a com- trade fair in the Nordic countries plete range of features for effi- held in Stockholm on 15-18 cient application development. January was that embedded New Integrated Develop- IAR Embedded Workbench Graphical User developers, at least in Sweden, Interface are no longer just keeping up to ment Environment (IDE) date with Bluetooth wireless The new IDE rests on an entirely new technology, but have actually technology platform that includes many Real-time debugging decided to begin to develop with improvements and new features such as: In addition to the C-SPY simulator, there Bluetooth wireless technology. ¥ Seamless integration of code develop- is also a ROM-monitor version that sup- Many company representa- ment and debugging for a truly itera- ports Mitsubishi’s ROM-monitor and its tives described Bluetooth pro- tive work process. program. The ROM-monitor version can jects which they had already bud- ¥ Support for real backtracking. be used with several Mitsubishi boards geted for, such as strategic plans ¥ The finest stepping granularity in an (MSA0654, MEU2001, MDECE0201 and to incorporate Bluetooth wireless embedded debugger. MDECE0222) and with Glyn’s technology in their existing ¥ True “edit-while-debugging” EVBM16C/6x evaluation board. The product portfolio. This is a sig- capabilities for interactive correction ROM-monitor includes the C-SPY simu- nificant change from a year or so of errors. lator features, and gives enables you to run your application on real hardware. ago when interest in Bluetooth The new IDE has a modular and exten- was more general, and relatively sible architecture that allows plug-in Graphical XLINK setup tool superficial. modules, such as hardware debugger An important feature of the new M16C IAR Systems was represented interfaces and RTOS support from both toolkit is the graphical XLINK setup tool. at the EP2002 in the so called IAR and our partners. Bluetooth Park, a joint effort by Now you can choose whether to graphi- cally specify how to use different the most important Bluetooth Easy migration memory areas on the chip or to customize players on the Swedish market. The new MC16C IAR C/EC++ the linker command files in the traditional Bluetooth Park housed an exhibi- supports Embedded C++ for object- way with the IAR Embedded Workbench tion and a series of brief semi- oriented programming. Special care has editor. nars on relevant topics, such as been taken to assure flexible application the Bluetooth certification design and smooth migration to the new Automated device-driver process and how to use the IAR toolset: PreQual test tool to simplify that generation process. ¥ Existing assembler routines can be In addition to the IAR Embedded reused. Workbench IDE, the IAR MakeApp for ¥ New combinations of processor vari- M16C/62 is also available. By automati- ants and data models are possible, cally generating the device-driver source similar to the Mitsubishi compiler. code according to the settings in the ¥ The new calling convention resembles graphical user interface, IAR MakeApp Mitsubishi’s; the old IAR calling con- allows developers to focus on application vention is still supported. design rather than implementation. 4 The MSP430 family News

offers a new dimension Honeywell licenses Bluetooth™ protocol in single-chip stack Honeywell Federal Manufac- turing & Technologies, part of measurement solutions the diversified technology and manufacturing leader Honeywell In 2001, the sales of the IAR Embedded International Inc., has placed an Workbench EW430 Ð the IAR tool that order for the Bluetooth protocol supports the MSP430 family of microcon- stack technology from IAR trollers Ð increased significantly, especi- Systems. This order is a strate- ally in the US and Asia, making it one of gic breakthrough in the U.S. our top-selling Embedded Workbench market for IAR, and emphasizes products. the value of the highly compact code size in the Bluetooth proto- IAR Systems and have col stack from IAR Systems! a long and close cooperation providing first-class software tools for the MSP430 family. Our sales of the EW430 reflect that cooperation. More recently they also reflect Texas Instruments’ addition of ¥ Integrated 12-bit analog-to-digital N UY O MSP430F43x and F44x to the MSP430 converter (ADC) with 5µs conversion B W family. These two new device families time. ! enable Texas Instruments to offer a ¥ 160 segment LCD driver. S Beef up the a single-chip solution for analog data cap- ¥ 2 pulse width modulation (PWM) v in 0! turing and embedded measurement timers. system now! gs $80 applications. ¥ Up to 2 hardware USART modules Are you ready to join the ARM The new F43x/44x devices offer maxi- that can be used either in asyn- community? The IAR Embedded mum integration on MSP430, combining chronous UART or SPI mode. Workbench for ARM, with its opti- advanced analog integration, a broad set ¥ Integrated supply voltage supervisor mizing C/Embedded C++ compiler of communication peripherals, and on- (SVS) to avoid brownout conditions. and state-of-the-art debugger will chip LCD driver. Together with the MSP430 family’s add power to your project. The MSP430 CPU, a 16-bit RISC unique ultra-low power consumption, the The newest version of the IAR processor, features a set of just 27 instruc- new F43/44x devices offer a real system- Embedded Workbench, which tions. The fully orthogonal core architec- on-a-chip (SOC) solution for many bat- includes support for Multi-ICE, is ture enables maximum versatility by tery driven applications in the portable available soon. Order your IAR using all instructions with different consumer and personal medical area. Embedded Workbench before the address modes, i.e. up to seven for the Likewise they offer intelligent sensing end of May, and get a 24 months MSP430. This makes the MSP430 and metering for bus or line-powered end Software Upgrade Agreement for extremely powerful for assembler pro- equipment where both system cost and free! gramming. It also enables compact and performance are critical. An excellent efficient code when programming in C. A example of such equipment is single or set of different low power modes allows three-phase electricity meters, for which effective utilization of the MSP430’s the F43x/44x offers a complete platform power with a standby current, i.e. active solution for a wide range of classes and oscillator, below 1µA for some deriva- products. Since electricity meters are one tives while maintaining readiness to get of the targeted areas for the new to full, active operation within 6µs. MSP430F43x/44x family, Texas Add muscles to your product with the IAR Embedded Workbench. The MSP430F43x/44x family consists of Instruments offers comprehensive six different device configurations offer- documentation and application reports, as This offer is valid only in Europe and Asia with the exception of Germany, ing: well as demo software written in C Switzerland, Austria, Poland and Japan. ¥ from 16KB to 60KB. and a library for three-phase electrical ¥ Up to 2KB RAM. meters. 5 Powerful set of programming tools for developers of automotive applications

The availability of PIC18 parts with flash memory and CAN drivers, coupled with OIL FILE low cost, make the Realogy Real-Time Task Priorities Architect (RTA) and the IAR Embedded Priority Workbench for PIC18 particularly attrac- Allocation Real-Time Architect tive to the automotive market. Schedulability Analysis Priority Allocation Sensitivity Analysis Timing Analysis Software Build Results Clock Optimzation Predictable real-time OSEK- compliant automotive applications OSEK Definitions OSEK Data ORTI Data In today’s increasingly complex automo- tive applications, vehicle manufacturers Application Source are demanding that applications make use Compiler Assembler ORTI Aware Debugger of an OSEK/VDX OS compliant RTOS to control the complexity of the applica- Object Files tions. RTA from LiveDevices is a real- SSX5 Linker EXE time design environment, that meets the Library requirements of the high volume, resource-constrained embedded market, while providing an OSEK/VDX OS com- pliant kernel that fits onto the smallest 8- of the hardware stack: no more than 31 guaranteeing that the system meets its tim- bit parts. This means that RTA is particu- return addresses can be stored. In the ing requirements. Thus even for as many larly applicable to the Microchip PIC18 RTA kernel (SSX5), the use of a single as 16 tasks, no more than 4 tasks need to family. shot model allows the RTOS to be based appear on the stack at the same time. The inclusion of a unique off-line on a single stack, thus overcoming this and optimization tool in the constraint. Tasks only need space on the The IAR Embedded Workbench IDE RTA package addresses the important stack when they are actively running or for PIC18 goals of reduced product cost and have been pre-empted in mid-execution. A brand new toolkit for PIC18 will soon increased end-product reliability. The Since tasks of the same priority cannot be available from IAR Systems. The IAR stack minimization feature offers particu- run concurrently, we know in advance Embedded Workbench IDE for PIC18 is lar benefits to the PIC18 architecture. that only one task will be present on the based on IAR’s latest technology platform stack at any one moment in time. and features an optimizing C/Embedded Stack minimization The stack minimization feature auto- C++ compiler and a completely integrat- Perhaps the hardest constraint for an matically identifies the optimal allocation ed C-SPY debugger offering the finest RTOS on PIC18C architecture is the size of tasks to shared priority levels while also debugging granularity. With the combina- tion of EWPIC18 and the Realogy Real- Time Architect, developers of automotive applications can benefit from a very pow- Real Time Architect erful set of programming tools.

SSX5 Tasksets Planned Schedules Periodic Schedules OSEK OS

OSEK Enhancements Combined Resources Internal Resources Lightweight Tasks

Timing Analysis

6 Maximum capability from the minimum silicon budget

Microchip and LiveDevices – applications using Embedinet, TCP/IP is include implementations of these higher bringing the Internet to embedded taken all the way to the PIC18 device. level Internet protocols (FTP, TFTP, devices. This not only lowers the component cost HTTP, DNS, SNTP, SMTP, DHCP, and The Internet is virtually everywhere of the design, but also gives the designer BOOTP). today, invisibly connecting us to the the confidence that their embedded appli- LiveDevices has worked with world around us Ð from our homes, our cation will be able to connect to any other Microchip to ensure the Embedinet soft- cars and our workplaces. One thing that device on the Internet. ware is implemented in the most efficient is still limiting the spread of this technol- Because it is based on standard way possible for the target architecture. ogy, however, has been the cost of high Internet protocols the Embedinet range of This efficiency has been enhanced con- volume applications. Products like products is ideal for any PIC18-based siderably through the use of the IAR LiveDevices Embedinet for the PIC18 application that requires Internet connec- Embedded Workbench for the PIC18 in family of low-cost 8-bit tivity. Typical applications include remote the development of Embedinet. are changing this. configuration of a device using a web Developers look to Microchip to pro- At the heart of the Embedinet software interface, data upload from devices in the vide the most cost-effective 8-bit solution are two key components: a fully featured field, problem alerts via mobile telephony to their deeply embedded applications TCP/IP stack and a priority based pre- and many other remote telemetry applica- and to IAR Systems to provide quality emptive real-time kernel enabling embed- tions. development tools. By integrating ded Internet system developers to exploit Embedinet Application Layer Modules LiveDevices Embedinet, this concept can the power of PIC18’s family of microcon- (EALMs) are optional software compo- now be extended to a total system cost, trollers. Key to its success has been the nents that are available for use in con- enabling Internet connectivity to be ability to implement all of the above on a junction with the TCP/IP stack provided achieved on a minimum silicon budget, tiny footprint, made possible by the as part of the Embedinet Pro SDK. essential where Internet connectivity at a super-efficient kernel and an offline EALMs offer higher level application low price point is needed to enable high graphic user-interface tool to create the level functionality, such as running a volume take-up. application software. webserver on the device or sending When building embedded Internet emails and files to remote servers. These

Is your PIC solution getting too tight? N UY O B W ! If you have considered S moving to PIC18, or if a v in 0! you already use PIC18, this gs $60 is a great time to add new possi- bilites to your development environ- ment—order your IAR Embedded Workbench for PIC18 before the end of May, and get a 24 months Soft- ware Upgrade Agreement for free! The new version of the IAR Embedded Workbench for PIC18 includes the optimizing C/Embedded C++ compiler, the state-of-the-art C- SPY debugger and support for the MPLAB-ICE 2000 Emulator.

This offer is valid only in Europe and Asia with the exception of Germany, Switzerland, Austria, Poland and Japan.

7 Simulate complete - based systems at near real-time speeds

IAR Systems Ltd., UK, is proud to ¥ CPU models for PIC16, AVR, 68HC11 What can I do with it? announce the Proteus VSM package that and 8051 series micro-controllers are If you are involved in developing micro- compliments the IAR Embedded available now. More CPU models are controller-based systems, Proteus VSM Workbench tools by enabling design currently under development. will allow you to start software develop- engineers to model even more rapidly, ¥ Interactive device models include ment before there is a physical prototype and thus further reducing time to LCD displays, RS232 terminal, uni- to work on. The package includes models market. versal keypad plus a range of swit- for common peripheral devices such as ches, buttons, pots, LED’s, 7 segment LCD displays, keypads, buttons, switches What is Proteus VSM? displays and more. and LED’s, and you can add your own Proteus VSM combines mixed-mode cir- ¥ Extensive debugging facilities inclu- models to the system too. Consequently cuit simulation, animated components and ding register and memory contents, you can try out your software, for real, on full hardware models of popular micro- breakpoints and single step modes. a virtual version of your entire product. controllers. ¥ Source level ’C’ and assembly debug- Proteus VSM also integrates fully with The result is incredible: a product that ging supported for IAR Systems deve- the Labcenter PCB design products. So can simulate complete microprocessor- lopment tools. once you have perfected your design in based systems at near real-time ¥ Integrated ’make’ utility to compile the VSM simulator, it is a simple step to speeds! and simulate with one keystroke. lay out the PCB for manufacture. This is not just a CPU simulator - ¥ Over 4000 standard SPICE models VSM will simulate your entire design included. Fully compatible with lea- What debugging tools are provided? including both digital and analogue ding manufacturers’ SPICE models. The CPU models allow single stepping of electronics. ¥ DLL interfaces provided for applica- generated by any tool and Proteus VSM allows an engineer to tion specific models. for setting breakpoints within your pro- develop and test complete microcontroller ¥ Based on industry standard SPICE3F5 gram. In addition, you can trigger break- designs without building a physical proto- mixed mode circuit simulator. points on hardware conditions (e.g. logic type. Proteus VSM simulates the CPU ¥ Integrates with PROTEUS PCB states or node voltages) and then single and any other electronics used in designs, Design to form a complete electronics step the code to see what happens next. and in real time. design system. With IAR Systems development tools, 8 full high level language source debugging amps, TTL and CMOS IC’s, RAM’s, a) If the device is purely electrical, then a is also possible. EPROM’s and much more. Apart from manufacturer’s SPICE model may these purely electrical devices, there is exist. If not, then you can use the Which CPU models are available? also a library of interactive components simulator primitive devices (e.g. volta- Currently, there are models for the including LEDs, switches, buttons, and ge-controlled current source, or 4 bit Microchip PIC16, Atmel AVR, potentiometers. Finally, there are the counter) to construct an electrical 68HC11 and 8051/8052 families. more complex VSM models, which cur- model for the device. More models are being created in response rently include alphanumeric LCD dis- b) If the device is interactive, and simple to customer demand. Feel free to let us plays, multiplexed LED displays, a uni- in operation (e.g. a light bulb), then know which processors you are using. versal matrix keypad model, and RS232 VSM provides a scheme which allows terminals. As with the CPU models, more the creation of many interactive What other devices are devices will be added as demand dictates models without having to resort to modeled? and we also wish to encourage the entire programming. Proteus VSM is based on a mixed mode user community to get involved in model c) For more complex devices, a full set SPICE circuit simulator and can make creation through the VSM marketplace on of C++ interfaces exists which allows use of any standard SPICE models avail- Labcenter’s website. you to create models that can combine able from component manufacturers via electrical and graphical behavior in the Internet. Over 4000 such models are Can I create my own models? almost any way you can imagine. supplied with the package including resis- There are a number of ways to create tors, capacitors , diodes, op- your own models:

Bluetooth™ Starter Kit

. Full hardware descriptions are included, along with schematic diagrams. A pre-compiled Bluetooth protocol stack is included as a Win32 DLL, as are a Win32 demo application and sample projects for use with Microsoft Visual C/C++. Buy a Bluetooth Starter Kit and get started with Bluetooth development now! N UY O B W ! Start evaluating S a v Bluetooth now! in 0! gs $24 Purchase 2 Bluetooth Starter Kits before the end of May, and get 2 telephone handsets free of charge! One Bluetooth Starter Kit is all that is needed to start evaluating Bluetooth wireless technology for data transmission, but with 2 Bluetooth Starter Kits and the tele- phone handsets you can use the IAR Systems is proud to release a new a working Bluetooth evaluation or proto- Bluetooth voice transmission capa- version of the popular Bluetooth Starter typing system in minutes! bilities as well!

Kit, which now includes a Bluetooth The popular Bluetooth Starter Kit This offer is valid only in Europe and Asia PC-Card for use in . Thus, one contains a Bluetooth electronic board that with the exception of Germany, Switzerland, Austria, Poland and Japan. Bluetooth Starter Kit contains two can be used as a reference design, as well Bluetooth nodes and enables you to set up as a Bluetooth PC-Card for use with a 9 Bluetooth™ qualification and testing

IAR Systems has recently expanded its Bluetooth product portfolio with IAR DOI Push PreQual for Bluetooth qualification and Dunch FTP FAX testing. Thus IAR Systems has become a Cordless DUN total partner for Bluetooth development, Intercom OBEX LAN Access from early product development to quali- TCS-Bin RFCOMM SDP fication and testing. TCI SPP L2CAP The breadth of proposed applications and Audio HCI FTP the nearly universal allocation of radio GAP LinkManager spectrum indicate that Bluetooth wireless Target for BaseBand PreQual technology has the potential to penetrate RF the global market more deeply than any other wireless technology. Since the tar- get market Ð both systems integrators and end-users Ð do not have a strong wireless Bluetooth protocol stack and profiles. communication background, the Bluetooth Special Interest Group (SIG) number of Bluetooth devices in develop- applicable documents from the Bluetooth identified a need to control the pedigree ment. While product-to-product testing website, including all applicable test of devices claiming to support Bluetooth. remains important, a more practical information. It is then the adopter’s Hence the Bluetooth Qualification approach to interoperability testing responsibility to engage the services of a Program (BQP) was conceived to ensure involves the use of standardized confor- Bluetooth Qualification Body (BQB) for interoperability between products bearing mance testing to verify that an implemen- advice and assistance throughout the the Bluetooth label, a prerequisite for tation performs in accordance with a par- qualification process. Bluetooth success. ticular standard or specification. Such Secondly, the adopter will be request- testing assumes that all devices that pass ed to use a Bluetooth Qualification Test Bluetooth Qualification Program the same test are likely to operate togeth- Facility, to run a number of defined tests The BQP establishes the rules and proce- er. Apart from reduced cost for testing, and generate a test report in an approved dures by which manufacturers must this approach enables comparison of test format. The format of the required test demonstrate their products’ compliance results. Conformance testing plays a report follows the Qualification Program with Bluetooth specifications and the major role in the Bluetooth Qualification Reference Document (PRD). The compli- process by which the Bluetooth label may Program and has already been used suc- ance folder test report must be submitted be used by product manufacturers and cessfully for other wireless standards to the BQB who checks it against the distributors. Thus, qualification is a part such as GSM. Bluetooth specifications and the original of the critical path to market for all The first BQP step involves submitting product description submitted by the Bluetooth developers. a description of the Bluetooth devices adopter. If approved, the product will be Bluetooth is unique among high-tech under development and signing the entered into the qualified product data- devices in that it is expected to appear in Bluetooth adopter’s agreement. The base. Only approved products are autho- a wide range of applications from con- adopter can then retrieve a range of rized to use the Bluetooth label. sumer goods to industrial and military equipment. While Bluetooth is at the leading edge of wireless technology and presents many design challenges for man- ufacturers, end-user expectations will be simple: if a device claims to support Bluetooth, then it should work seamlessly with other devices claiming to support Bluetooth. The success of Bluetooth is thus closely associated with confidence in reliable interoperability. The traditional approach to interoper- ability involves testing each product against all other products. This is, of course, impractical considering the great IAR PreQual front-end. 10 MSC log with INCONC state reached. Detailed log.

Where does IAR PreQual fit in? In the event that something is wrong ¥ Category D: Several years ago BQP engineers foresaw with the message, the user simply opens Non-mandatory, informative test cases. a need for a relatively inexpensive test the detailed log to find out, and thus IAR PreQual is extremely effective for executor that manufacturers could use, enable correction of, the error. Category B and C and can be used for either to qualify or pre-qualify devices pre-qualification of Category A test cases. before sending them to the BQTF. Thus Qualify with IAR PreQual Test evidence must be submitted in the the IAR PreQual, a generic software test There are four categories of test cases in format described in the Qualification executor with a Bluetooth implementa- the Bluetooth Qualification Program, Program Reference Document (PRD). tion, was developed to enable manufac- with different requirements: IAR PreQual provides a Test Report turers to execute several of the BQTF Generator which automatically produces tests on their own. The focus would be on ¥ Category A: the necessary documentation. interfaces, such as the Host Controller Must be executed by a BQTF. N ¥ Category B: UY O Interface, upper protocols such as B W L2CAP, SDP and RFCOMM, profiles Mandatory test cases. The manu- ! facturer can perform these without a such as GAP and SPP and most impor- S a BQTF. Evidence of correct behavior v tantly, applications such as LAN Access, Get qualified i ! ng 00 Headset, Dial Up Networking, etc. must be produced and examined by a in time s $6.0 Bluetooth hardware (Radio, Baseband BQB. ¥ Category C: for Bluetooth and Link Manager) would, for most man- congress! ufacturers, be purchased from another Mandatory test cases The manufactu- company in pre-qualified chip-sets. rer can perform these without a BQTF. No evidence required by a BQB. Purchase IAR PreQual before the end of May, and get an extra Test and debug with IAR PreQual Profile test suite included free of IAR PreQual is not a very complicated charge! IAR PreQual is the program from an end-user perspective. It premium Bluetooth test and contains two graphical users interfaces: debug system, as it can verify that one for execution, set up and logging of your new Bluetooth product con- the test suites and another with the forms to the Bluetooth specifica- graphical logging. tion, whereby making the The logging functionality in IAR Bluetooth qualification process PreQual makes it extremely useful for faster and easier. Make sure your pure test and debugging. new Bluetooth product is quali- The graphical log, which logs all mes- fied in time for the Bluetooth saging events, uses a standard (ITU-T Congress in June! Z.120) called “Message Sequence Chart” (MSC). Following this log, the user will be This offer is valid only in Europe and Asia with the exception of Germany, notified directly when something is wrong Switzerland, Austria, Poland and Japan. with the message sequence. The state Generated Test Report for L2CAP “FAIL” or “INCONC(lusive)” will appear. version 1.0b. 11 IAR Embedded Workbench for AVR fully supports the Atmel FPSLIC

The FPSLIC (Field Programmable System Level Integrated Circuits) from Atmel Corporation combine logic, memo- ry and a microcontroller, in an SRAM field programmable device.

FPSLIC have several interesting features all of which are fully supported by the IAR Embedded Workbench for AVR (V2.25 or later).

FPSLIC features FPSLIC devices combine the fastest stan- dard product version (25MHz) of the Atmel AVR microprocessor core-execut- ing out of on-chip SRAM, with between 5K and 40K gates of FPGA and up to 36KBytes of on-chip SRAM. The on-chip SRAM is partitioned into program and data SRAM and the exact partition of SRAM are user- defined during code compile. In the two larger FPSLIC Partitioning the memory of the FPSLIC is easily done with the IAR Embedded Workbench devices (AT94K10 and AT94K40) the for AVR. SRAM can be partitioned 4 ways as fol- lows: 20KB program and 16KB Data, more data, SRAM and a little program tions have been removed. The IAR com- 24KB Program and 12KB data, 28KB code space, embedded systems designers piler is ’aware’ of these issues and com- Program and 8KB data and the default have the flexibility to make that trade off. piles the code accordingly. Non-volatile 32KB Program and 4KB data. In the Additional off-chip SRAM can be sup- memory storage is easily supported using smaller AT94K05 device the partition is ported for data storage through the on- the Atmel Configurator device which is similar, but with a smaller amount of chip FPGA resources if needed. used to load the FPSLIC FPGA, program standard program memory: 4KB program code and data SRAM at system power-up and 16KB Data, 8KB program and 12KB Up and running in no time (just like an FPGA). The AVR code is data, 12KB program and 8KB data, and Converting existing C code to FPSLIC is basically shadowed from the configurator the default 16KB Program and 4KB data. easily supported, and even the most com- into FPSLIC on chip SRAM for execution. The memory partition is designed this plex systems have been verified and suc- The unused parts of the serial configura- way to ensure maximum flexibility for cessfully targeted to AVR FPSLIC using tion memory can be accessed easily from the on-chip SRAM. During code compile, the IAR compiler, with minimum changes the FPSLIC device for non-volatile memo- options can be set to determine the mem- required. In addition, the ioat94K.h file ry storage using the FPSLIC on-chip ory partition used in the FPSLIC device contains all the I/O details required to industry standard 2-wire serial interface. (see figure 1). If the application calls for rapidly complete the AVR FPSLIC code. Application notes are available, which Most code conversion issues are associat- include software drivers to access the ed with running the AVR at a higher configurator non-volatile memory, and clock speed (certain delays expected), have been verified with the IAR compiler. interfacing the AVR with the FPGA and These application notes show how this Interested in non-volatile memory support. The AVR device capability can be used as a simple FPSLIC? FPSLIC contains 129 powerful standard file server or data storage device. In addi- See www.iar.com for information AVR instructions including support for a tion, remote updates of the complete about the current EWAVR offering 2-cycle 8x8-hardware multiplier on chip. FPGA, Data and AVR program code per- to FPSLIC customers! Unlike other standard AVR devices, how- sonality can easily be performed using ever, FPSLIC does not have any on-chip this mechanism, by remotely updating the EEPROM or FLASH, so the program code stored in the configuration FLASH/EEPROM programming instruc- memory. 12 Design choices Secondly, application acceleration can Seamless integration of tools FPSLIC offer more design choices than a be supported by performing cycle inten- – find out more! standard MCU. FPSLIC devices also sive data-crunching algorithms in the The IAR compiler is tightly integrated have a more involved design flow than a FPGA. If you have nested FOR loops into the Atmel SystemDesigner tool flow standard microcontroller, due mainly to with inner loop calculations, converting and seamlessly interfaces with the other the flexibility made available with the on- that code to FPGA logic with its inherent tools provided in the complete FPSLIC chip FPGA. All FPSLIC devices come parallelism may significantly accelerate development suite. Code examples for the with a fixed set of AVR peripherals (2 the application. Data values can be taken IAR compiler as well as code macros are UARTs, 3 Timers/counters, industry stan- from the on-chip SRAM (which is acces- available, which allow FPSLIC capabili- dard 2 wire interface, , 2 sible from both he AVR and the FPGA) ties to be quickly and efficiently exploited I/O ports, a hardware multiplier and sup- or streamed from the AVR to the FPGA by the designer. More port for 4 external ). Most (and results streamed back). information on the application notes men- developers use the on-chip FPGA in one Thirdly, interface logic is often imple- tioned in this article can be found at or more of three different ways: mented in the FPGA to allow the FPSLIC http://www.atmel.com/atmel/products/pro Firstly, peripheral set expansion can be device to operate as a ’bridge’. The pow- d318.htm or can be obtained by e-mailing performed to easily add an additional stan- erful AVR can easily implement (bit [email protected] . More information on dard AVR peripheral to the FPGA part of bang) several interface standards on one the IAR Embedded Workbench for AVR, the FPSLIC device. Additional ports, side of the bridge and the FPGA may including a 30-day evaluation version, timers, UARTs etc can quickly and easily contain logic to implement the other side can be found at http://www.iar.com be added to the FPGA to support the AVR. of the bridge.

Embedded Bluetooth™ Protocol Stack

IAR Systems recently released a new ver- been added too, providing facilities for sion of its highly compact Embedded fine-grained control of the stack be- Bluetooth Protocol Stack. With enhanced haviour from the application program. support for advanced features and sup- port for more Bluetooth chip-sets, the Extensive chip-set support Bluetooth protocol stack from IAR is IAR is striving to provide the best clearly the premium choice for embedded Bluetooth protocol stack solution for developers! embedded systems developers. Our stack works with most major Bluetooth chip- IAR can offer one of the most compact sets, such as ALPS, CSR, , Taiyo Bluetooth protocol stacks in the world, Yuden and Xemics. It also supports dif- enabling small and medium sized embed- ferent transport protocols, such as USB ded systems developers to exploit this and UART. N UY O impressive new wireless communications Internet and Network access. The B W ! technology. And with the help of our IAR Handsfree Profile (HFP) will soon be

MakeApp stack configuration and opti- released for automotive voice applica- S Get started a v ! mization tool, you can make development tions too. in 0 with Bluetooth gs 00 even faster and easier while lowering pro- All stack profiles expose an easy to $10. duction costs. use, high-level Application Program development! Interface (API) which the application pro- Purchase our Embedded Versatile Profile support gram can use to easily access Bluetooth Bluetooth Protocol Stack before The stack supports the most commonly functionalities, such as virtual serial the end of May, and get a test run used profiles for data and voice applica- ports, voice or file transfer capabilities. in IAR PreQual free of charge! tions, such as the Generic Access Profile Our Bluetooth protocol stack is (GAP), Service Discovery Application Enhanced core features extremely compact, delivered in Profile (SDAP), Serial Port Profile (SPP) The latest version of the IAR stack con- portable ANSI-C, and comes with and Headset Profile (HSP). tains a new Security Manager with sup- the IAR MakeApp stack con- Furthermore, Object Exchange port for Authentication, Pairing, Bonding figuration and optimization tool.

(OBEX) and the File Transfer Profile and Encryption, as well as a Power This offer is valid only in Europe and Asia (FTP) for exchange of files and other data Manager that controls the Park, Sniff and with the exception of Germany, Switzerland, Austria, Poland and Japan. objects are being developed, as are the Hold modes. Support for Role-switching LAN Access Profile (LAP) for wireless and a new Connection Manager have 13 IAR Systems on the Asian market

IAR Systems has begun to successfully face the Asian challenge. Close coopera- tion with our Asian distributors and active promotion of our embedded system development tools managed to increase our sales in Asia by unprecedented numbers in 2001 compared to 2000.

Major market for telecom and consumer products Asia is the world’s biggest hidden market for and consumer products, due primarily to its large popu- lation and increasing power consumption. And since last year, when China and Taiwan entered the World Trade Organization, commerce between Meeting between IAR Systems and Korean distributors. European and Asian countries has increased significantly. The decrease in sales of 8 and 16-bit MakeApp; a Bluetooth protocol stack and our distributors’ understanding of our , however, made the year testing qualification tool, IAR PreQual. products as well as on the kind of sales 2001 difficult for the and technical support required. By build- industry in Asia. The rapid increase, on Collaboration with distributors ing up a more professional sales and tech- the other hand, in the sales of 32 bits, We are currently working very closely nical support force in every Asian coun- DSP (Digital System Processing) and with our Asian distributors to promote try, IAR can provide better quality prod- SOC (System on Chips), especially pow- and sell embedded systems graphical uct services to our local customers and erful chips for wireless communication design tools and provide total solutions better promotion of our graphical design devices such as Bluetoothª, is pro- for embedded systems development to tools. mising. ARM chips, for example, are suit- key companies in the region, such as LG A product task force for IAR able for wireless communication, and Electronics, China Chonghua Telecom. visualSTATE and Bluetooth products was Atmel AVR, 8051, TI MSP430 chips are Many of our Asian distributors have formed at the end of last year. This task particularly useful for consumer devices. formed local technical sales and support force will work closely together with our Thus the embedded systems product forces for IAR visualSTATE and embed- distributors to provide high quality sales research and the design market are partic- ded systems total solution services. Our support and technical training and help ularly promising. And it appears that most distributors hold technical seminars, build up a more professional local sales design services in this area will focus on tradeshows and conferences in their and technical support team. the telecommunication and consumer region and can handle customer support Several sales and technical training market in the next few years. issues on their own. workshops for Asian distributors were At the same time we are developing arranged by the IAR visualSTATE and Graphical design tools our marketing strategy together with our Bluetooth products task force at the end A good graphical programming interface local distributors whose active sales and of 2001 and beginning of 2002. design for lower level chip targets makes technical forces will be used to execute it easy to validate product design quality the planned activities. Some of the mar- Cooperation with key customers and increase product design reliability. At keting activities already in the pipeline IAR will continue to strengthen the good the same time it shortens product devel- include university promotion programs, relationships we have with chip manufac- opment time and saves resources for free training for new customers and eval- tures worldwide. Since we also have embedded systems development. IAR can uation license services for target cus- products on the user application level, provide Asian customers with a total solu- tomers. such as IAR visualSTATE and Bluetooth tion for embedded systems development. products, we will also develop business Not only do we offer more than 40 differ- Product task force relationships with key customers working ent types of C and debugger Because IAR’s total solution for embed- with application development in the Asian platforms, but also graphical program- ded systems development is more com- area. By providing professional customer ming design tools Ð IAR visualSTATE plex than simply selling a C compiler and support, IAR and our Asian distributors and the device driver generator IAR debugger, it places stringent demands on hope to better target customer needs. 14 New! Embedded Systems Online Show in Nuremberg purchase The following IAR MakeApp products can be downloaded and 19-21 February purchased directly over the web: ¥ IAR MakeApp for eZ80 ¥ IAR MakeApp for Mitsubishi M16C62

The online purchase prices for the products are just $199 excluding the Support and Update Agreement which can be pur- chased separately for $199 per license and year. To purchase the product visit http://www.iar.com/Purchase and go to the online purchase page for the product. Fill in your purchase order and we will email you the license number and an order con- firmation. When you confirm the order you must also choose type of payment, by credit card or invoice.

IAR MakeApp products for The Embedded Systems Show in Bluetooth Qualification Board, and where Hitachi has recently ordered two Nuremberg reflected the reality of IAR IAR demonstrated complete support, from new IAR MakeApp products: Systems’ business idea: Increased soft- Bluetooth starter kits to complete consult- ¥ IAR MakeApp for SH ware complexity and shorter design ing support. (supporting SH7047 in the cycles, coupled with higher demands on Last, but not least, our customers were first release) generic software documentation and pleased to see that Generation 3 of the ¥ IAR MakeApp for H8S detailed test reports, are the driving force IAR Embedded Workbench meets their (supporting H8S/2633 in the behind a new generation of development needs for a more efficient debug-environ- first release) tools. ment. The new products will be devel- oped with the IAR MakeApp With the successful introduction of IAR generation 4 technology and will visualSTATE, a graphical programming be available during 2002 Q1 and tool which can even be run on 8-bit con- Q2. trollers, our customers acknowledged the importance of better productivity and design security. Our customers also flocked to the Bluetoothª area, where ROBBIE, our Bluetooth-controlled robot, performed together with IAR PreQual, a tool which enables customers to automatically document for the 15 IAR PARTNERS ARM • Atmel • Ericsson Hitachi • Intel • Microchip Microcontrollers Mitsubishi • Motorola supported by IAR NEC • OKI • Samsung Sharp • Texas Instruments Systems Toshiba • Zilog IAR Systems Sales Offices EW = IAR Embedded Workbench Motorola 68HC11 MP = IAR MakeApp EW6811 V 4.46 SWEDEN: IAR Systems AB P.O. Box 23051 - S-750 23 Uppsala Phone: +46 18 16 78 00 Motorola 68HC12 Fax: +46 18 16 78 38 ARM EW6812 V 2.43 Email: [email protected] EWARM V 3.11 Motorola 68HC16 USA: IAR Systems US HQ - West Coast Atmel AVR AT90S EW6816 V 2.11 Century Plaza, 1065 E. Hillsdale Blvd. Foster City, CA 94404 EWA90 V 1.52 New Tel: +1 650 287 4250 EWAVR V 2.27 National Semiconductor COP8 address! Fax: +1 650 287 4253 MPAVR V 3.02 Feature Family Email: [email protected] EWCOP8 V 1.31 Hitachi H8/300 USA: IAR Systems - East Coast EWH8300 V 4.21 National Semiconductor CR16 2 Mount Royal Marlborough, MA 01752 MPH83 V 3.12 EWCR16 V 1.43 Phone: +1 508 485 2692 EWCR16DIPV 1.43 Fax: +1 508 485 9126 Hitachi H8S & H8/300H Email: [email protected] EWH8 V 1.53 National Semiconductor CR16C MPH8 New! V 4.00 EWCR16C New! V 1.11 JAPAN: IAR Systems K.K. MPH8S V 3.22 1-2 Kanda-Ogawamachi,Chiyoda-ku Tokyo 101 0052 MPH8S21 V 3.12 NEC 78K0/K0S Phone: +81 3 3251 0886 MPH83H V 2.00 EW78000 V 3.34 Fax: +81 3 3256 4791 E-mail: [email protected] Hitachi SuperH NEC 78K4 EWSH V 1.12 EW78400 V 1.33 GERMANY: IAR Systems AG MP7040 V 3.22 Posthalterring 5 New D-85599 Parsdorf MP7050 V 3.22 NEC numbers!Phone: +49 89 88 98 90 80 MP7055 V 3.22 EWV850 V 2.20 Fax: +49 89 88 98 90 81 MP7700 V 3.32 Email: [email protected] MPSH New! V 4.00 OKI MPSH1 V 2.00 EW65K V 2.11 UK: IAR Systems Ltd Suite 318, Gainsborough Business Centre, Hamilton House, Mabledon Samsung SAM8 Place, Euston, London, WC1H 9BB EW8051 V 5.52 EWSAM8 V 1.50 Phone: +44 207 554 8585 New Fax: +44 207 554 8586 Intel 251 Sharp MK5 address!Email: [email protected] EW251 V 2.30 EWMK5 V 1.21 DENMARK: IAR Systems A/S Lykkesholms Allé 100 Intel 80x96 Texas Instruments MSP 430 DK-8260 Viby J EWx96 V 6.01 EW430 V 1.26 Phone: +45 87 34 11 00 Fax: +45 87 34 11 90 Microchip PIC 16&17 Toshiba TLCS 900 Email: [email protected] EWPIC V 2.20 EWT900 V 1.10 MPTX V 3.20 IAR Systems Application Dev. Microchip PIC 18 EWPIC18 V 2.10 Western Design Center SWEDEN: IAR Systems Jonkoping AB EW6502 V 2.13 Klubbhusgatan 13 Microchip dsPIC Box 273, SE-551 14 Jönköping Phone: +46 36 34 50 00 EWdsPIC New! V 1.10 /64180 Fax: +46 36 34 50 01 EWZ80 V 4.06 Email: [email protected] Mitsubishi 740 EW740 V 2.14 Zilog eZ80 IAR Systems AB EWeZ80 New! V1.15 Kungsgatan 6, SE-211 49 Malmö Mitsubishi 7700 MPeZ80 New! V 4.00 Phone: +46 40 625 7700 Fax: +46 40 12 95 30 EW7700 V 1.34 Email: [email protected] Are you sure that you have the latest Mitsubishi M16C/6x versions of all IAR software? USA: Nuvation Labs Corporation EWM16C V 1.36 By signing a Software and Upgrade Silicon Valley Headquarters MPM16C62 V 4.00 Agreement (SUA) you are guaranteed 234 East Gish Road, 2nd Floor continuous access to the latest versions San Jose, CA 95112 Phone: +1 408 573 1500 Mitsubishi M32C of the programs included in your current Fax: +1 408 573 8912 EWM32C New! V 2.11 tool set. Email: [email protected] GERMANY: IAR Systems AG Copyright © 2001 IAR Systems AB. IAR visualSTATE and C-SPY are registered trademarks owned by IAR Systems. See address above IAR Embedded Workbench, IAR MakeApp and IAR PreQual are trademarks owned by IAR Systems. All other products are registered trademarks or trademarks of their respective owners. Product features, availability, pricing and other terms AB 2002 TK i Uppsala and conditions are subject to change by IAR Systems without prior notice. The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. and licensed to IAR Systems AB. 2002.01 www.iar.com