Skip to content

Update for VK_RZ_A1H #6245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* mbed Microcontroller Library
* Copyright (c) 2006-2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef RESERVED_PINS_H
#define RESERVED_PINS_H

Expand Down
15 changes: 2 additions & 13 deletions targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_VK_RZ_A1H/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,12 @@
#endif
/* <-Take measures about optimization problems of web compiler */










#define TRANSACTION_QUEUE_SIZE_SPI 16

#define DEVICE_ID_LENGTH 32
#define DEVICE_MAC_OFFSET 20





#include "objects.h"
#include "dma_api.h"

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ Macro definitions

#define GPIO_PORT0_BOOTMODE_BITMASK (0x000fu)

#if (defined(TARGET_DEBUG) || !defined(RUN_FROM_SDRAM))
#define CS2_SDRAM
#endif

/******************************************************************************
Imported global variables and functions (from other files)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,42 +1,62 @@
#! armcc -E -I"../"
;**************************************************
; Copyright (c) 2017 ARM Ltd. All rights reserved.
;**************************************************

; Scatter-file for RTX Example on Versatile Express

LOAD_TTB 0x20000000 0x00004000 ; Page 0 of On-Chip Data Retention RAM
; This scatter-file places application code, data, stack and heap at suitable addresses in the memory map.

#include "mbed_config.h"
#include "mem_VK_RZ_A1H.h"

LOAD_TTB __TTB_BASE __TTB_SIZE ; Page 0 of On-Chip Data Retention RAM
{
TTB +0 EMPTY 0x4000
{ } ; Level-1 Translation Table for MMU
}

SDRAM 0x08000000 0x02000000 ; 32MB External SDRAM region
SFLASH __ROM_BASE __ROM_SIZE ; load region size_region
{
}
VECTORS __VECTOR_BASE FIXED
{
* (RESET, +FIRST) ; Vector table and other startup code
* (InRoot$$Sections) ; All (library) code that must be in a root region
* (+RO-CODE) ; Application RO code (.text)
}

SFLASH_DUAL 0x18020000 (32*1024*1024-2*64*1024)
{
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; S-Flash ROM : Executable cached region
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
RO_DATA +0
{ * (+RO-DATA) } ; Application RO data (.constdata)

RW_DATA __DATA_BASE
{ * (+RW) } ; Application RW data (.data)

VECTORS 0x18020000 FIXED
{
* (RESET, +FIRST) ; Vector table and other (assembler) startup code
* (InRoot$$Sections) ; All (library) code that must be in a root region
* (+RO-CODE) ; Application RO code (.text)
}
RW_IRAM1 +0 ALIGN 0x10
{ * (+ZI) } ; Application ZI data (.bss)

RO_DATA +0
{ * (+RO-DATA) } ; Application RO data (.constdata)
ARM_LIB_HEAP +0
{ * (HEAP) } ; Application heap area (HEAP)

RW_DATA 0x20020000
{ * (+RW) } ; Application RW data (.data)
ARM_LIB_STACK (__RAM_BASE + __NM_RAM_SIZE) EMPTY -__STACK_SIZE ; Stack region growing down
{ }

ZI_DATA +0 ALIGN 0x400
{ * (+ZI) } ; Application ZI data (.bss)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; RAM-NC : Internal non-cached RAM region
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

RW_DATA_NC 0x60900000 0x00100000
RW_DATA_NC __DATA_NC_BASE __NC_RAM_SIZE
{ * (NC_DATA) } ; Application RW data Non cached area

ZI_DATA_NC +0
{ * (NC_BSS) } ; Application ZI data Non cached area
}


#ifndef RUN_FROM_SDRAM
SDRAM 0x08000000 0x02000000 ; 32MB External SDRAM region
{
}
#else
SRAM 0x200A0000 0x00960000 ; 9.5MB Internal SRAM region (0.5MB SDCARD Bootloader !!!)
{
}
#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/**************************************************************************//**
* @file mem_VK_RZ_A1H.h
* @brief Memory base and size definitions (used in scatter file)
* @version V1.00
* @date 10 Mar 2017
*
* @note
*
******************************************************************************/
/*
* Copyright (c) 2009-2017 ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef __MEM_VK_RZ_A1H_H
#define __MEM_VK_RZ_A1H_H

/*----------------------------------------------------------------------------
User Stack & Heap size definition
*----------------------------------------------------------------------------*/
/*
//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------
*/

/*--------------------- ROM Configuration ------------------------------------
//
// <h> ROM Configuration
// <o0> ROM Base Address <0x0-0xFFFFFFFF:8>
// <o1> ROM Size (in Bytes) <0x0-0xFFFFFFFF:8>
// </h>
*----------------------------------------------------------------------------*/
#ifdef RUN_FROM_SDRAM
#define __ROM_BASE 0x08000000
#define __ROM_SIZE 0x02000000
#define __VECTOR_BASE 0x08000000
#define __DATA_BASE +0 ALIGN 0x100000
#elif defined (RUN_FROM_SRAM)
#define __ROM_BASE 0x200A0000
#define __ROM_SIZE 0x00960000
#define __VECTOR_BASE 0x200A0000
#define __DATA_BASE +0 ALIGN 0x100000 NOCOMPRESS
#else
#define __ROM_BASE 0x18020000
#define __ROM_SIZE 0x01FE0000
#define __VECTOR_BASE 0x18020000
#define __DATA_BASE 0x20020000
#endif

/*--------------------- RAM Configuration -----------------------------------
*----------------------------------------------------------------------------*/
#ifdef RUN_FROM_SDRAM
#define __RAM_BASE 0x08000000
#define __RAM_SIZE 0x02000000
#define __NC_RAM_SIZE 0x00200000
#else
#define __RAM_BASE 0x20000000
#define __RAM_SIZE 0x00A00000
#define __NC_RAM_SIZE 0x00100000
#endif
#define __NM_RAM_SIZE (__RAM_SIZE - __NC_RAM_SIZE)
#define __DATA_NC_BASE (__RAM_BASE + __NM_RAM_SIZE + 0x40000000)

#define __UND_STACK_SIZE 0x00000100
#define __SVC_STACK_SIZE 0x00008000
#define __ABT_STACK_SIZE 0x00000100
#define __FIQ_STACK_SIZE 0x00000100
#define __IRQ_STACK_SIZE 0x0000F000
#define __STACK_SIZE (__UND_STACK_SIZE + __SVC_STACK_SIZE + __ABT_STACK_SIZE + __FIQ_STACK_SIZE + __IRQ_STACK_SIZE)

/*----------------------------------------------------------------------------*/

/*--------------------- TTB Configuration ------------------------------------
//
// <h> TTB Configuration
// <o0> TTB Base Address <0x0-0xFFFFFFFF:8>
// <o1> TTB Size (in Bytes) <0x0-0xFFFFFFFF:8>
// </h>
*----------------------------------------------------------------------------*/
#define __TTB_BASE 0x20000000
#define __TTB_SIZE 0x00004000

#endif /* __MEM_VK_RZ_A1H_H */
Loading