Fujitsu MB91360 manual Tool options for own projects, Memory Type Used for Area Sections

Page 31

STARTERKIT MB91360

Chapter 7 Appendix

7.2Tool options for own projects

Valid load module files for MB91360 devices can only be achieved if the language tool configuration is appropriate. If you use the provided samples or templates, you do not have to worry about these settings.

The most convenient way to create own projects is to copy the provided Template-Project from the sample-directory and use it as “blank sheet”. However, if you intend to create projects “from scratch” without the template, the following settings are important.

Target MCU (“Project – Setup” menu) : make sure “MB91FV360” or “MB91F362” is selected as the target MCU device.

Linker Settings (“Project – Setup tool options – Linker – Disposition”) : MB91360 devices use a fixed memory map for code stored in Flash-ROM or data assigned to the internal RAM. In addition, certain Flash-sectors have special meanings, such as the boot-sector (application always starts from 0F4000) or the kernel of the debugger stored from 0F0000. Therefore, make sure the following memory map is applied:

Memory Type

Used for

 

Area

Sections

 

 

 

 

 

 

 

Data RAM

Stack

 

3D000..3DFFF

STACK

 

 

 

 

 

 

Data RAM

Variables

 

3E000..3FFFF

DATA, INIT

 

 

 

 

 

 

Flash ROM

User Code

 

080000..0EFFFF

CODE

 

 

 

 

 

 

 

FlashROM

Kernel

 

0F0000..0F3FFF

1.1.1.1.1

Reserved !

 

 

 

 

 

 

 

 

 

 

FlashROM

Boot-Sector,

 

0F4000..0FFFFF

START,

CONST,

 

constants

and

 

@INIT, VECTORS

 

vectors

 

 

 

 

 

 

 

 

 

 

Table 4: Memory Map

Your linker settings should look like this:

-ro CODE_AREA=0x00080000/0x000EFFFF -ro ROM_AREA=0x000F4000/0x000FFFFF -ra STACK_AREA=0x0003D000/0x0003DFFF -ra RAM_AREA=0x0003E000/0x0003FFFF -sc STACK/Stack=STACK_AREA

-sc DATA/Data+INIT=RAM_AREA -sc CODE/Code=CODE_AREA

-sc START+CONST+@INIT=ROM_AREA

Also refer to the detailed memory maps in the appendix.

￿Always check the “map”-file (use the context menu in the project-view and select “open list file”) to see the used sections and addresses !

© Fujitsu Microelectronics Europe GmbH

- 31 -

UG-910006-13

Image 31
Contents MB91360 Series Revision History Date IssueNo Liability for Consequential Damages Warranty and DisclaimerContents Fujitsu Microelectronics Europe GmbH UG-910006-13 Introduction Key FeaturesAbstract General Board Usage Using the Starterkit as target board for the ICEMode Selection Hardware Installation InstallationSoftware Installation Softune Workbench Development Introduction Getting StartedUG-910006-13 Fujitsu Microelectronics Europe GmbH Softune Workbench Debugging Introduction SWB Debugging window Details of the included Monitor-Debugger Basic debugger featuresSTARTUP.ASM enabled #define Abort Advanced debugger features Examplecandump = Dump/Halfword 100000..1000ff Examplerestart set register PC=1f4000 set break main Generic Flash Programmer Flash ProgrammingIT can Damage the Flash ROM Permantently Board Components Evaluation Board HardwareOverview of Jumpers Jumper Description Standard Setting Jumper PositionJumper Description Connectors for resources and IO-signals Jumper Pin-No Pin Name IO-Port Resource Function JP15 JP14PWM1P0 PR0 SMC Memory Mappings MB91F362 AppendixMode 001 External Bus / User Mode Memory Type Used for Area Sections Tool options for own projectsStarterkit limitations Board Schematics UG-910006-13 Fujitsu Microelectronics Europe GmbH Fujitsu Microelectronics Europe GmbH UG-910006-13 Silk Screen Chip PAL ListingEquations MB91FV360GCR Development tools and accessoriesRelated Documents Trouble Shooting Problem SolutionTrouble Shooting Tables Figures