important upgrade informationgotland.atollic.com › resources › manuals › 8.0.0 ›...

25
Important Upgrade Information

Upload: others

Post on 06-Jul-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Important Upgrade Information

Important Upgrade Information

Page 2: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

2 | P a g e

COPYRIGHT NOTICE © Copyright 2009-2017 Atollic AB. All rights reserved. No part of this document may be reproduced or distributed without the prior written consent of Atollic AB. The software product described in this document is furnished under a license and may only be used or copied according to the terms of such a license.

TRADEMARK

Atollic and TrueSTUDIO and the Atollic logotype are trademarks or registered trademarks owned by Atollic. ECLIPSE™ is a registered trademark of the Eclipse foundation. All other product names are trademarks or registered trademarks of their respective owners.

DISCLAIMER

The information in this document is subject to change without notice and does not represent a commitment of Atollic AB. The information contained in this document is assumed to be accurate, but Atollic assumes no responsibility for any errors or omissions. In no event shall Atollic AB, its employees, its contractors, or the authors of this document be liable for any type of damage, losses, costs, charges, claims, demands, claim for lost profits, fees, or expenses of any nature or kind.

DOCUMENT IDENTIFICATION

ASW-TSUPG 30 13th of January 2012.

REVISION

14th April 2016 – Updated for Atollic TrueSTUDIO® v5.5.0

15th May 2016 – Updated for Atollic TrueSTUDIO® v5.5.1

16th August 2016 – Updated for Atollic TrueSTUDIO® v6.0.0

17th November 2016 – Updated for Atollic TrueSTUDIO® v7.0.0

18th January 2017 – Updated for Atollic TrueSTUDIO® v7.1.0

19th March 2017 – Updated for Atollic TrueSTUDIO® v7.1.1

20th March 2017 – Updated for Atollic TrueSTUDIO® v7.1.2

21th June 2017 – Updated for Atollic TrueSTUDIO® v8.0.0

Atollic AB Science Park Gjuterigatan 7 SE- 553 18 Jönköping Sweden

+46 (0) 36 19 60 50

Email: [email protected] Web: www.atollic.com

Atollic Inc. 241 Boston Post Rd. West (1st Floor) Marlborough MA. 01752 USA

+1 (973) 784 0047 (Voice) +1 (877) 218 9117 (Toll Free)

Email: [email protected]

Page 3: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

3 | P a g e

Contents Introduction ................................................................................................ 5

Atollic TrueSTUDIO v8.0.0 .......................................................................... 6

License System Patch ........................................................................................ 6

ARMTools Toolchain (Build 17.03) .................................................................... 7

Newlib or Newlib-nano Selection ..................................................................... 7

Prevent “GCC not found in PATH” Error ........................................................... 7

ST-Link GDBServer ............................................................................................. 7

IAR Embedded Workbench Project Converter .................................................. 8

Important Upgrade Steps ........................................................................... 9

Toolchain changes ............................................................................................. 9

Updated Gdb-Servers ........................................................................................ 9

Use a Fresh Workspace ..................................................................................... 9

Clear Include Directories and Symbols From the Indexer ............................... 10

Check Debug Settings ...................................................................................... 11

License System ......................................................................................... 12

Node Locked License ....................................................................................... 12

USB License ..................................................................................................... 12

Network License Server .................................................................................. 13

Atollic TrueSTUDIO v7.1.2 ........................................................................ 14

Upgrade Information For v7.0 Users ........................................................ 15

Upgrade Information For v6.0 Users ........................................................ 16

Updated Gdb-Servers ...................................................................................... 16

Upgrade Information For v5.5 Users ........................................................ 17

Upgrade Information For v5.0-v5.4 Users ................................................ 18

ARMTools Toolchain (Build 16.04-3) ............................................................... 18

MTB Tracing (Cortex-M0+) .............................................................................. 21

Page Size Allocation for Malloc ....................................................................... 21

Upgrade Information For v4.x Users ........................................................ 22

ETM Trace Port Configuration File Reference ................................................. 22

Page 4: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

4 | P a g e

Upgrade Information For v3.x Users ........................................................ 23

Using FPU ........................................................................................................ 23

Linker Script Update ........................................................................................ 23

Upgrade Information For v2.x Users ........................................................ 25

Page 5: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

5 | P a g e

INTRODUCTION This document provides important information on how to upgrade the product and existing projects to the new Atollic TrueSTUDIO® for ARM® product.

Atollic TrueSTUDIO have one single installer and uses a completely new improved license system from version 5.4. This makes the product easier to install and use. The license system is not involved during installation.

It is always allowed to have separate installations of each version of Atollic TrueSTUDIO.

Older versions of Atollic TrueSTUDIO don’t have to be uninstalled when installing a new version. The License System section in this manual contains basic description about the License System and the Atollic TrueSTUDIO Installation Guide contains full information.

To upgrade Atollic TrueSTUDIO do another installation of the software and follow the Important Upgrade Steps. This is intended, so that our users are able to choose what tool chain they want to use in their project. Switching tool chain should be done with care and a lot of testing. Switching tool chain is done as part of the Atollic TrueSTUDIO’s Build Configuration.

This manual only contains the information needed for a successful upgrade. For information about the new features and improvements in the new version of Atollic TrueSTUDIO, please see the Release notes in the README-file.

Page 6: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

6 | P a g e

ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is a major release which contains a new Atollic ARMTools Toolchain. The product is still based on the same version of Eclipse and CDT versions as used in Atollic TrueSTUDIO v7.x.

Atollic recommends that a new workspace is created for the work done with Atollic TrueSTUDIO v8.x. Existing projects should be imported and copied into the new workspace.

Atollic TrueSTUDIO v7.1.2 included a patch for the license system which paved the way for a coming server-side update to the license system. The server-side update was made on the Atollic internet-site a few days before the Atollic TrueSTUDIO v8.0 release.

The new product includes the following main new features and updates:

New Atollic ARMTools toolchain

Product also available as a 64-bit application on the Linux platform.

IAR Embedded Workbench projects can be imported to TrueSTUDIO projects using the new Project Import Converter.

The selection to use Newlib or Newlib-nano runtime library has been moved

ST-LINK serial number can be set in debug configuration making it easier to debug projects when several ST-LINK probes/boards are connected at same time.

New updated ST-LINK_gdbserver, also built and available for Linux.

If you are updating from an earlier Atollic TrueSTUDIO version than v7.1, then also read Upgrade Information for vx.x Users chapters in this Upgrade Guide.

Release notes in the README-file contains complete update information.

LICENSE SYSTEM PATCH The client-side license system patch for affected Atollic TrueSTUDIO versions are included also in the new Atollic TrueSTUDIO v8.0 product. By default the license system for products will be updated when installing Atollic TrueSTUDIO v8.0.

Old Atollic TrueSTUDIO products, v5.4.0 through v7.1.1, will not be able to work if the license system patch has not been applied. If the license system for old products has not been updated then the license system patch installer for older Atollic TrueSTUDIO versions can be run.

The Atollic_TrueSTUDIO_Patch_Installer_1.0.0.exe program is normally located in folder C:\Program Files (x86)\Atollic\TrueSTUDIO for ARM

8.0.0\ide.

Page 7: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

7 | P a g e

ARMTOOLS TOOLCHAIN (BUILD 17.03) The new Atollic ARMTools toolchain is based on ARM/embedded-6-branch revision 245512] + new patches.

Major upgrades:

Built on new GCC, GDB and Newlib versions

Newlib-nano is now included in Newlib

Cortex-M23/M33 support

Please see the product readme file for version information.

NEWLIB OR NEWLIB-NANO SELECTION The selection to use Newlib or Newlib-nano runtime library has been moved to a General node at the top of the Tool Settings tab of the C/C++ Build Settings.

This will make all tools to use the correct newlib header files. For example when using newlib-nano this will make the reent structure to be significantly smaller.

PREVENT “GCC NOT FOUND IN PATH” ERROR Some old projects will issue an error in the Problems view saying Program “gcc” not found in PATH. The error is caused when the project uses a deprecated discovery method setting. The error can be removed by updating Window Preferences and Project Properties settings.

1. Open Window, Preferences. In Preferences dialog select C/C++, Property Pages Settings and enable checkbox: Display “Discovery Options” page.

2. Open Project , Properties, C/C++ Build, Discovery Options and disable checkbox: Automate discovery of paths and symbols.

ST-LINK GDBSERVER The ST-LINK_gdbserver software has been redesigned to be platform independent. Currently, builds exists for Windows and Linux, but the Linux version requires ST-LINK/V2.

The new ST-LINK_gdbserver can list the unique serial number of connected ST-LINK devices. This is used in the Debug Configurations GUI for ST-LINK which contains a new Scan button. When scan is made, all detected ST-LINK serial numbers are listed in a list-box in the Debug Configurations GUI. A certain ST-LINK can thus be selected and used when debugging a project.

Page 8: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

8 | P a g e

Monitor commands which are not needed for debugging have been removed. The ST-LINK Utility software from STMicroelectronics can be used for advanced device configuration such as block erase etc.

The latest version of ST-LinkUpgrade.exe (firmware version V2.J27) is included. The ST-LinkUpgrade.exe program can be started from the Help-Tools menu.

IAR EMBEDDED WORKBENCH PROJECT CONVERTER How to import IAR Embedded Workbench Projects to TrueSTUDIO projects is described in a new chapter, Importing IAR EWARM Projects, in the Atollic TrueSTUDIO User Guide. Please read this section in the User Guide for more information.

Page 9: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

9 | P a g e

IMPORTANT UPGRADE STEPS Atollic recommends that each time a new version of Atollic TrueSTUDIO is installed; the following steps are also performed.

TOOLCHAIN CHANGES Default runtime library has changed from newlib-standard to newlib-nano. The change was introduced in Atollic TrueSTUDIO v7.1.0 and will affect both old and new projects. To change your old project back to newlib-standard, the option is located at Project Properties -> C/C++ Build -> Settings -> Tool Settings -> C/C++ Linker -> General -> Runtime Library.

UPDATED GDB-SERVERS Each new version of Atollic TrueSTUDIO will include the latest stable version of the GDB-servers. To fully be able to use the new features in the new release of Atollic TrueSTUDIO, the GDB-servers need to be updated during the installation.

The Segger J-Link gdbserver has an SWO clock setting feature which now is used by Atollic TrueSTUDIO v7.1 when configuring SWV. It is now possible to select SWO clock Auto, which will make the GDB server to automatically use the highest available frequency matching a given core clock. This is the setting recommended by Segger to use as the GDB server knows max SWO clock speed that can be used by the connected Segger J-Link probe.

USE A FRESH WORKSPACE The metadata in workspaces are not backward compatible. If a workspace has been opened with Atollic TrueSTUDIO v7.x it will no longer work properly with older versions of the program.

Atollic recommends that a new workspace is created for the work done with Atollic TrueSTUDIO v7.x. Existing projects should be copied and imported into the new workspace.

This is an important step for those who want to be able to go back using older version of Atollic TrueSTUDIO.

Page 10: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

10 | P a g e

CLEAR INCLUDE DIRECTORIES AND SYMBOLS FROM

THE INDEXER Atollic TrueSTUDIO has a mechanism for automatically discover included directories and symbols from a build. Each time those are changed from the outside, as for an example when a new version of Atollic TrueSTUDIO is installed, the discovered libraries should be cleared.

To clear the include directories and symbols in the indexer, do the following:

Right-click on your project in the Project Explorer and select Properties and in the Properties panel for the project select C/C++ General, Preprocessor Include Paths, Macros etc. and select the Providers tab first.

Figure 1 – Preprocessor Include Paths, Macros etc.

By pressing Restore Default all locally stored entries will be removed.

Page 11: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

11 | P a g e

CHECK DEBUG SETTINGS When opening a workspace created by an earlier version of Atollic TrueSTUDIO, please check that the correct GDB server is associated to correct debug hardware (JTAG-probe).

The settings are found by selecting Window, Preferences, Run/Debug, Embedded C/C++ Application, Debug Hardware menu.

Restore defaults will update to the preinstalled version (if any).

Atollic TrueSTUDIO v7.0 requires that ST-LINK_gdbserver v3.0.0 or newer is used when using an ST-LINK debug probe. Older versions of ST-LINK_gdbserver can not be used.

Page 12: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

12 | P a g e

LICENSE SYSTEM The Atollic TrueSTUDIO for ARM product uses from v5.4 a completely new improved license system. The product runs in Lite mode if no valid license is found. Atollic TrueSTUDIO Pro license can be installed using the Atollic License Manager which can be started from the Help menu in Atollic TrueSTUDIO.

The Atollic License Manager is for instance used to:

Activate a license

Update a license

Transfer a Node Locked License from one PC to another. (This does not involve any manual handling by Atollic)

The Atollic TrueSTUDIO v5.4.1 product can handle two basic license types: An entirely software based Node Locked License, and a hardware based USB License.

If a license for Atollic TrueSTUDIO Pro version 5.4 has been installed and a license with support and upgrade is valid this license will be used also for the new Atollic TrueSTUDIO product. There is no need to activate or update any license. The Atollic TrueSTUDIO Installation Guide contains the information needed to handle Atollic TrueSTUDIO licenses.

NODE LOCKED LICENSE The Node Locked License allows installation on a single computer only. The license can be transferred to another computer using the Transfer License process. It can include a Network Server (x seats) attribute and in that case it allows x multiple users on a network to share a number of licenses distributed from a Network License Server.

USB LICENSE The USB License allows installation of Atollic TrueSTUDIO on several computers, while limiting the number of simultaneous users to one. Only the computer with the USB License Key connected, can launch the Atollic TrueSTUDIO product with the license. This allows the license to easily be transferred between several computers.

The USB License requires a new type of USB License Key, the old type of USB License Keys used by Atollic TrueSTUDIO v5.3 and earlier cannot be used.

Page 13: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

13 | P a g e

NETWORK LICENSE SERVER The Network License Server can be an ordinary PC with Atollic TrueSTUDIO installed or it can be specific PC which only has the Atollic Network License Server software installed.

1. The standard Atollic TrueSTUDIO installer shall be used when the Network License Server also shall have Atollic TrueSTUDIO installed. This installs the license system which also can handle network licenses.

2. The Atollic Network License Server installer shall be used when the Network License Server will run on a specific server which does not need a complete Atollic TrueSTUDIO product installed. This will only install the required Atollic Network License Server software.

The Atollic License Manager is used to activate and handle Atollic TrueSTUDIO licenses. More information is found in the Atollic TrueSTUDIO Installation Guide.

Page 14: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

14 | P a g e

ATOLLIC TRUESTUDIO V7.1.2 Why was Atollic TrueSTUDIO v7.1.2 released, and what are the implications for me?

Atollic TrueSTUDIO v7.1.1 is identical to v7.1.2 with the only difference being a patch in the license system. The release is however important since it paves the way for a coming server-side update to the license system.

In order for old versions of Atollic TrueSTUDIO Pro and some Lite clients to continue to work, the client-side license system must also be patched. To avoid any future issues, we recommend that all users (Lite and Pro) apply the patch. This applies to TrueSTUDIO versions v5.4.0 through v7.1.1.

The license system server-side update is planned to coincide with the release of TrueSTUDIO v8.0.0, which is scheduled for the end of Q2-2017.

For TrueSTUDIO Pro v5.4.0 – v7.1.1 to work after the license system server-side update, the user must choose one of the following two options:

Download and deploy a small patch which upgrades the license system on all installed and affected Atollic TrueSTUDIO versions on the Windows platform.

Download and install Atollic TrueSTUDIO v7.1.2 or a later version which includes the patch that upgrades the license system clients on all installed and affected Atollic TrueSTUDIO versions.

For returning TrueSTUDIO users on the Windows platform, we recommend downloading and deploying the patch instead of upgrading from TrueSTUDIO v7.1.1 to v7.1.2!

For new users without any previous version of Atollic TrueSTUDIO installed and all Linux platform users, we recommend downloading Atollic TrueSTUDIO v7.1.2.

The patch and the v7.1.2 installer can be downloaded from the Atollic website: http://atollic.com/resources/download/

Make sure to patch your Atollic TrueSTUDIO v5.4.0 – v7.1.1 installation before end of Q2-2017 (release of TrueSTUDIO v8.0.0) to make sure that TrueSTUDIO continues to work. See information above!

Page 15: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

15 | P a g e

UPGRADE INFORMATION FOR V7.0 USERS Atollic TrueSTUDIO v7.1 is a new release and the Atollic TrueSTUDIO User Guide is updated with new product information.

It can be mentioned that this version of the product includes the following new features:

New Static Stack Analyzer visualizing Stack Usage and Call Graph

New Project Import Converter supporting conversion of System Workbench for STM32 projects (SW4STM32 AC6) to TrueSTUDIO projects

New Automatic Check for License Updates when starting Atollic TrueSTUDIO and license is automatically updated if there are any updates available, e.g. extension of subscription or SUA period

New SUA reminder dialog informs about license or SUA period expiration

Auto can be used to select SWV clock when using Segger J-Link

Updated Build Analyzer view to display end address for Memory Regions

Please also see the Release notes in the README-file for complete update information.

Atollic recommends that a new workspace is created for the work done with Atollic TrueSTUDIO v7.x. Existing projects should be imported and copied into the new workspace.

If you are updating from an earlier Atollic TrueSTUDIO version than v7.0, then also read Upgrade Information for vx.x Users chapters in this Upgrade Guide.

The ARMTools Toolchain (Build 16.04-3) used in Atollic TrueSTUDIO v7.x is the same as used in Atollic TrueSTUDIO v5.5.

Page 16: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

16 | P a g e

UPGRADE INFORMATION FOR V6.0 USERS Atollic TrueSTUDIO v7.0 is a major new release and is based on new Eclipse Neon.1a version 4.6.1 and CDT version 9.1.0. The new Atollic TrueSTUDIO User Guide manual is updated with new product information. Please also see the Release notes in the README-file.

When upgrading from v6.0 to the new version the GUI perspectives must be reset if a workspace created with previous version of Atollic TrueSTUDIO is used.

Atollic recommends that a new workspace is created for the work done with Atollic TrueSTUDIO v7.x. Existing projects should be imported and copied into the new workspace.

If you are updating from an earlier Atollic TrueSTUDIO version than v6.0, then also read upgrade information in next chapters.

UPDATED GDB-SERVERS The GDB servers for ST-LINK and P&E Micro based probes works in a new way in Atollic TrueSTUDIO v7.x. These GDB servers are not compatible with previous versions used in older versions of Atollic TrueSTUDIO.

The ST-LINK_gdbserver v3.0.0 included in Atollic TrueSTUDIO v7.0 is updated. Older versions of ST-LINK_gdbserver can not be used with Atollic TrueSTUDIO v7.0. This also means that the new ST-LINK_gdbserver can not be used with older versions of Atollic TrueSTUDIO.

The P&E Micro GDB Server included in Atollic TrueSTUDIO v7.0 is changed from the windows GUI based version to a command-line version. The Atollic TrueSTUDIO User Guide manual is updated with new information on how to make the Debug Configuration when using the new GDB Server with P&E Micro based debug probes e.g. OpenSDA or other P&E Micro debug probes.

The ARMTools Toolchain (Build 16.04-3) used in Atollic TrueSTUDIO v7.0 is the same as used in Atollic TrueSTUDIO v5.5.

Page 17: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

17 | P a g e

UPGRADE INFORMATION FOR V5.5 USERS Atollic TrueSTUDIO v6.0 is a major new release with big changes to the GUI concept and is based on new Eclipse version 4.5.2 and CDT version 8.8.1. The new Atollic TrueSTUDIO User Guide manual is updated with new product information. Please also see the Release notes in the README-file.

When upgrading from v5.5 to the new version the GUI perspectives must be reset if a workspace created with previous version of Atollic TrueSTUDIO is used.

Atollic recommends that a new workspace is created for the work done with Atollic TrueSTUDIO v6.x. Existing projects should be imported and copied into the new workspace.

If you are updating from an earlier Atollic TrueSTUDIO version than v5.5, then also read upgrade information in next chapters.

The ARMTools Toolchain (Build 16.04-3) used in Atollic TrueSTUDIO v6.0 is the same as used in Atollic TrueSTUDIO v5.5.

Page 18: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

18 | P a g e

UPGRADE INFORMATION FOR V5.0-V5.4

USERS Atollic TrueSTUDIO v5.5 is a major new release with big changes to the GUI concept. When upgrading from v5.x to the new version the GUI perspectives must be reset if a workspace created with previous version of Atollic TrueSTUDIO is used.

Atollic recommends that a new workspace is created for the work done with Atollic TrueSTUDIO v5.x. Existing projects should be imported and copied into the new workspace.

ARMTOOLS TOOLCHAIN (BUILD 16.04-3) The new Atollic ARMTools toolchain is based on ARM/embedded-5-branch revision 234589] + new patches.

Major upgrades:

Built on new GCC, GDB and Newlib versions

System calls are now compiled into nosys library

Hybrid combination of libraries nano_c, standard_c++ or vice versa are updated

Unnecessary Interwork libraries are removed

Newlib nano is renamed to libc_nano.a

Cortex-M7 support

Changed default page size allocation for malloc

BUILT ON NEW GCC, GDB AND NEWLIB VERSIONS The new ARMTools Toolchain on new gcc, gdb and newlib versions. Please see the product readme file for version information.

NEW NOSYS LIBRARY In Atollic TrueSTUDIO v5.5.0 the handling of system calls in the toolchain has been changed. The system calls are no longer compiled into the libc. Instead they are only located in the separate nosys library, libnosys.a, which is also bundled with the toolchain.

With a separate nosys library there is a need to link also with --specs=nosys.specs. Atollic TrueSTUDIO v5.5 adds this additional link option automatically when building managed projects and when creating new makefile projects. When using old makefile projects the makefile needs to be updated using --specs=nosys.specs if the project does not contain a specific syscalls file.

Page 19: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

19 | P a g e

The new library libnosys.a does not contain all functions in one single object file so it is no longer necessary to create all syscalls functions when there is a need to update a certain syscalls function. E.g _write().

This change was done to increase our compatibility with different types of projects from different manufacturers who also supplies system call implementations.

Old makefile projects

Old projects which are built with make needs an update if the nosys library is needed. If system calls (through something like printf) is used without supplying system calls files in the application a linker error containing “undefined reference” is received. For example, this is the error message from an application which uses printf:

undefined reference to `_write'

collect2.exe: error: ld returned 1 exit status

makefile:53: recipe for target 'buildelf' failed

make: *** [buildelf] Error 1

To solve this error the makefile needs to be updated so linker uses the

--specs=nosys.specs argument to link in the standard system calls as well.

Makefile projects created with the new version of Atollic TrueSTUDIO will use the

--specs=nosys.specs option by default.

HYBRID COMBINATION OF NANO_C, STANDARD_C++ LIBRARIES The implementation of hybrid combination of libraries nano_c, standard_c++ or vice versa has been changed from Atollic TrueSTUDIO v5.5.1. The following hybrid combinations are effected:

Standard C++, Reduced C

Reduced C++, Standard C

This is handled automatically when using managed file projects.

Old makefile projects which are using any of these hybrid combinations of libraries needs to be updated and use specs files

--specs=nano_c_standard_cpp.specs

or

--specs=standard_c_nano_cpp.specs

Page 20: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

20 | P a g e

UNNECESSARY INTERWORK LIBRARIES REMOVED There is no need to have interwork libraries for new ARM architectures. Interwork libraries is now only built and included for the ARMv4T architecture which is used by ARM7TDMI, ARM7TDMI-S, ARM9, ARM920T, and ARM922T CPU cores.

NEWLIB NANO LIBRARY (NEW LIBRARY NAME) The newlib nano library is renamed from libc_s.a to libc_nano.a

This shall not require any modifications on old managed projects as Atollic TrueSTUDIO v5.5 now uses the specs file, --specs=nano.specs, when linking managed projects. Note! Also previous version of the Atollic ARM Toolchain has nano.spec files included.

Please change old makefile projects to use libc_nano.a E.g. Change option from –lc_s to –lc_nano or to -specs=nano.specs

CORTEX-M7 SUPPORT The Cortex-M7 architecture is now supported and the -mcpu=cortex-m7 option is used when building projects made for Cortex-M7 based microcontrollers. Old managed projects will use this option automatically when built with Atollic TrueSTUDIO v5.5. There is also a new version of floating point hardware in Cortex-M7 (FPv5) and both FPv5-sp-d16 (using 32-bit single-precision registers) and FPv5-d16 (using 64-bit double-precision registers) are supported.

Using an older ARMTools toolchain inside Atollic TrueSTUDIO v5.5

If an older Atollic ARMTools toolchain is used to build a project inside the new Atollic TrueSTUDIO then there will be a build error. Example: arm-atollic-eabi-gcc: error: unrecognized argument in option '-mcpu=cortex-m7'

arm-atollic-eabi-gcc: note: valid arguments to '-mcpu=' are: arm1020e arm1020t arm1022e arm1026ej-s arm10e arm10tdmi arm1136j-s arm1136jf-s arm1156t2-s ……

Please change the Target Settings for the project to use a Cortex-M4 based microcontroller in this case so it can be built with the older toolchain. This will make TrueSTUDIO use option -mcpu=cortex-m4. The link script shall not be changed.

Old makefile projects

It is recommended to update old Cortex-M7 projects which are built with make to use the -mcpu=cortex-m7 option. Please change the –mcpu option used for assembler, compiler and linker in the makefile.

USING LWIP WITH NEW TOOLCHAIN The lwIP open source TCP/IP stack has an internal implementation of the select() function. This function is also implemented in newlib, which may cause build errors. Please see lwIP documentation on how to resolve this conflict.

Page 21: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

21 | P a g e

MTB TRACING (CORTEX-M0+) The CoreSight Micro Trace Buffer (MTB) is an optional hardware included on some Cortex-M0+ processor based devices. MTB contains a simple execution trace block which can log trace information in a memory buffer in the processor RAM. The buffer location and size are configurable. The new MTB Trace Log view in Atollic TrueSTUDIO is used to configure MTB and view instruction trace data from the device.

The new Atollic TrueSTUDIO User Guide manual contains a new chapter describing the MTB Trace Log view. Please read this section in the User Guide for more information.

PAGE SIZE ALLOCATION FOR MALLOC The default page size setting for malloc has been changed from 4096 bytes to 128 bytes. The setting for a new project uses malloc_getpagesize_P=0x80 instead of malloc_getpagesize_P=0x1000 when building the project. This means that the heap increases in chunks of 128 bytes instead of 4096 bytes.

The page size allocation for malloc to be used by the project can be configured in the Tool Settings tab in the Linker Optimization. Please change the setting here if a page size of 4096 is preferred.

Page 22: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

22 | P a g e

UPGRADE INFORMATION FOR V4.X USERS Atollic TrueSTUDIO v5.0 is a major new release with big changes to the GUI concept. When upgrading from v4.x to the new version the GUI perspectives must be reset if a workspace created with previous version of Atollic TrueSTUDIO is used.

Atollic recommends that a new workspace is created for the work done with Atollic TrueSTUDIO v5.x. Existing projects should be imported and copied into the new workspace.

ETM TRACE PORT CONFIGURATION FILE

REFERENCE When Segger J-TRACE probe is used and ETM tracing selected the Debugger tab in the Debug Configurations dialog contains a file reference to a trace port configuration file. This file is by default located in the installation of Atollic TrueSTUDIO. This means that if such project made with an older Atollic TrueSTUDIO version is imported and used in a new Atollic TrueSTUDIO version the reference requires that the earlier version also is installed. Please update the reference to point to the ETM trace port configuration file available in the new installation.

Example of location of ETM Trace Port configuration file for STM32F1xx: C:\Program Files (x86)\Atollic\TrueSTUDIO for ARM Pro 5.0.0\ide\plugins\com.atollic.truestudio.tsp.stm32_1.0.0.201403271711\tsp\etm\stm32f1xx.init

It is recommended to copy the ETM tracing port configuration file to the project and in the Debug Configurations dialog specify that the configuration file located in the project shall be used. With this solution the configuration file will be kept with other files in a project and it will be easier to export/import the project.

Page 23: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

23 | P a g e

UPGRADE INFORMATION FOR V3.X USERS Atollic TrueSTUDIO v4.0 is a major new release with big changes both to the GUI concept and the Atollic ARMTools tool chain. When upgrading from v3.x to the new version the GUI perspectives must be reset if a workspace created with previous version of Atollic TrueSTUDIO is used.

Atollic recommends that a new workspace is created for the work done with Atollic TrueSTUDIO v4.1. Existing projects should be imported and copied into the new workspace.

Additional details about product updates are provided below.

USING FPU The earlier version of Atollic ARM toolchain had a problem with options -mhard-float and -mfloat-abi=hard for code using floating point variables. Therefor Atollic TrueSTUDIO V3.x replaced this option when hard floating point was selected and used the option -mfloat-abi=softfp . The ARM VFP hardware is used with softfp also but argument passing to functions are not made with VFP registers.

In Atollic TrueSTUDIO V4.x the -mhard-float option works correctly so now when selecting floating point “Hardware implementation” this option is used.

The only problem that can be seen when upgrading is if an old library built with Atollic TrueSTUDIO v3.x is used with a project using Atollic TrueSTUDIO v4.x. In this case it is best to rebuild the library using hard float. Select Clean toolbar button and Rebuild toolbar button on your project.

If the library not is available select to use “Mix HW/SW implementation when building the project and linking with the old library to make the register passing to work. Also for makefile projects the options -mhard-float and -mfloat-abi=hard can now be used as LINKER_FLAGS and COMPILER_FLAGS options when the FPU shall be used.

LINKER SCRIPT UPDATE It is not necessary to change the linker script in old projects but there has been a minor update in the linker script files generated in Atollic TrueSTUDIO v4.x. In earlier version constant data “*(.rodata*)” was placed in .text section. Now constants, strings etc. are placed in an own output section called “.rodata”.

If rodata is placed in .text section as before the program executed correctly but in some circumstances the debugger could display wrong information because gdb handled the const symbol addresses in wrong way. Example of new implementation:

/* Constant data goes into FLASH */

.rodata :

Page 24: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

24 | P a g e

{

. = ALIGN(4);

*(.rodata) /* .rodata sections (constants,

strings, etc.) */

*(.rodata*) /* .rodata* sections (constants,

strings, etc.) */

. = ALIGN(4);

} >FLASH

Page 25: Important Upgrade Informationgotland.atollic.com › resources › manuals › 8.0.0 › Atoll...Upgrade Information 6 | P a g e ATOLLIC TRUESTUDIO V8.0.0 Atollic TrueSTUDIO v8.0 is

Upgrade Information

25 | P a g e

UPGRADE INFORMATION FOR V2.X USERS Some additional linker script changes are needed for users of older versions of Atollic TrueSTUDIO.

It is therefore highly recommended to use the linker script wizard to generate a new linker script for the target.

Any customizations to the linker script will need to be transferred to the new linker script.

Use the linker script wizard to generate a new linker script by doing the following:

In the menu select File, New, Linker script. In the linker Script wizard, select the project folder using the Browse button.

Next fill in the target board and/or MCU and code location.

It is possible to customize the filename to anything preferred.

Click Finish to generate the linker script

After creating the linker script, the linker needs to be told that it should use the new script when linking.

Do this by right-clicking on the project in the Project Explorer and select Properties.

Select C/C++ Build, Settings and then select the Tool Settings tab to the right.

Expand and select the C Linker, General node.

Edit the Linker script field manually or press the browse button to locate the new script.