Skip to content

Commit 2c7f909

Browse files
authored
Merge pull request #6245 from mbedNoobNinja/Sync_PR
Update for VK_RZ_A1H
2 parents f3e2a3d + cf8fd20 commit 2c7f909

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+17068
-16930
lines changed

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_VK_RZ_A1H/TARGET_MBED_VKRZA1H/reserved_pins.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/* mbed Microcontroller Library
2+
* Copyright (c) 2006-2017 ARM Limited
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
#ifndef RESERVED_PINS_H
218
#define RESERVED_PINS_H
319

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_VK_RZ_A1H/device.h

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,12 @@
2626
#endif
2727
/* <-Take measures about optimization problems of web compiler */
2828

29-
30-
31-
32-
33-
34-
35-
36-
37-
29+
#define TRANSACTION_QUEUE_SIZE_SPI 16
3830

3931
#define DEVICE_ID_LENGTH 32
4032
#define DEVICE_MAC_OFFSET 20
4133

42-
43-
44-
45-
4634
#include "objects.h"
35+
#include "dma_api.h"
4736

4837
#endif

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_VK_RZ_A1H/device/RZ_A1_Init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ Macro definitions
4747

4848
#define GPIO_PORT0_BOOTMODE_BITMASK (0x000fu)
4949

50+
#if (defined(TARGET_DEBUG) || !defined(RUN_FROM_SDRAM))
5051
#define CS2_SDRAM
52+
#endif
5153

5254
/******************************************************************************
5355
Imported global variables and functions (from other files)
Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,62 @@
1+
#! armcc -E -I"../"
2+
;**************************************************
3+
; Copyright (c) 2017 ARM Ltd. All rights reserved.
4+
;**************************************************
15

6+
; Scatter-file for RTX Example on Versatile Express
27

3-
LOAD_TTB 0x20000000 0x00004000 ; Page 0 of On-Chip Data Retention RAM
8+
; This scatter-file places application code, data, stack and heap at suitable addresses in the memory map.
9+
10+
#include "mbed_config.h"
11+
#include "mem_VK_RZ_A1H.h"
12+
13+
LOAD_TTB __TTB_BASE __TTB_SIZE ; Page 0 of On-Chip Data Retention RAM
414
{
515
TTB +0 EMPTY 0x4000
616
{ } ; Level-1 Translation Table for MMU
717
}
818

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

13-
SFLASH_DUAL 0x18020000 (32*1024*1024-2*64*1024)
14-
{
15-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16-
; S-Flash ROM : Executable cached region
17-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
28+
RO_DATA +0
29+
{ * (+RO-DATA) } ; Application RO data (.constdata)
30+
31+
RW_DATA __DATA_BASE
32+
{ * (+RW) } ; Application RW data (.data)
1833

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

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

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

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

35-
RW_DATA_NC 0x60900000 0x00100000
47+
RW_DATA_NC __DATA_NC_BASE __NC_RAM_SIZE
3648
{ * (NC_DATA) } ; Application RW data Non cached area
3749

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

42-
54+
#ifndef RUN_FROM_SDRAM
55+
SDRAM 0x08000000 0x02000000 ; 32MB External SDRAM region
56+
{
57+
}
58+
#else
59+
SRAM 0x200A0000 0x00960000 ; 9.5MB Internal SRAM region (0.5MB SDCARD Bootloader !!!)
60+
{
61+
}
62+
#endif
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/**************************************************************************//**
2+
* @file mem_VK_RZ_A1H.h
3+
* @brief Memory base and size definitions (used in scatter file)
4+
* @version V1.00
5+
* @date 10 Mar 2017
6+
*
7+
* @note
8+
*
9+
******************************************************************************/
10+
/*
11+
* Copyright (c) 2009-2017 ARM Limited. All rights reserved.
12+
*
13+
* SPDX-License-Identifier: Apache-2.0
14+
*
15+
* Licensed under the Apache License, Version 2.0 (the License); you may
16+
* not use this file except in compliance with the License.
17+
* You may obtain a copy of the License at
18+
*
19+
* www.apache.org/licenses/LICENSE-2.0
20+
*
21+
* Unless required by applicable law or agreed to in writing, software
22+
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
23+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24+
* See the License for the specific language governing permissions and
25+
* limitations under the License.
26+
*/
27+
28+
#ifndef __MEM_VK_RZ_A1H_H
29+
#define __MEM_VK_RZ_A1H_H
30+
31+
/*----------------------------------------------------------------------------
32+
User Stack & Heap size definition
33+
*----------------------------------------------------------------------------*/
34+
/*
35+
//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------
36+
*/
37+
38+
/*--------------------- ROM Configuration ------------------------------------
39+
//
40+
// <h> ROM Configuration
41+
// <o0> ROM Base Address <0x0-0xFFFFFFFF:8>
42+
// <o1> ROM Size (in Bytes) <0x0-0xFFFFFFFF:8>
43+
// </h>
44+
*----------------------------------------------------------------------------*/
45+
#ifdef RUN_FROM_SDRAM
46+
#define __ROM_BASE 0x08000000
47+
#define __ROM_SIZE 0x02000000
48+
#define __VECTOR_BASE 0x08000000
49+
#define __DATA_BASE +0 ALIGN 0x100000
50+
#elif defined (RUN_FROM_SRAM)
51+
#define __ROM_BASE 0x200A0000
52+
#define __ROM_SIZE 0x00960000
53+
#define __VECTOR_BASE 0x200A0000
54+
#define __DATA_BASE +0 ALIGN 0x100000 NOCOMPRESS
55+
#else
56+
#define __ROM_BASE 0x18020000
57+
#define __ROM_SIZE 0x01FE0000
58+
#define __VECTOR_BASE 0x18020000
59+
#define __DATA_BASE 0x20020000
60+
#endif
61+
62+
/*--------------------- RAM Configuration -----------------------------------
63+
*----------------------------------------------------------------------------*/
64+
#ifdef RUN_FROM_SDRAM
65+
#define __RAM_BASE 0x08000000
66+
#define __RAM_SIZE 0x02000000
67+
#define __NC_RAM_SIZE 0x00200000
68+
#else
69+
#define __RAM_BASE 0x20000000
70+
#define __RAM_SIZE 0x00A00000
71+
#define __NC_RAM_SIZE 0x00100000
72+
#endif
73+
#define __NM_RAM_SIZE (__RAM_SIZE - __NC_RAM_SIZE)
74+
#define __DATA_NC_BASE (__RAM_BASE + __NM_RAM_SIZE + 0x40000000)
75+
76+
#define __UND_STACK_SIZE 0x00000100
77+
#define __SVC_STACK_SIZE 0x00008000
78+
#define __ABT_STACK_SIZE 0x00000100
79+
#define __FIQ_STACK_SIZE 0x00000100
80+
#define __IRQ_STACK_SIZE 0x0000F000
81+
#define __STACK_SIZE (__UND_STACK_SIZE + __SVC_STACK_SIZE + __ABT_STACK_SIZE + __FIQ_STACK_SIZE + __IRQ_STACK_SIZE)
82+
83+
/*----------------------------------------------------------------------------*/
84+
85+
/*--------------------- TTB Configuration ------------------------------------
86+
//
87+
// <h> TTB Configuration
88+
// <o0> TTB Base Address <0x0-0xFFFFFFFF:8>
89+
// <o1> TTB Size (in Bytes) <0x0-0xFFFFFFFF:8>
90+
// </h>
91+
*----------------------------------------------------------------------------*/
92+
#define __TTB_BASE 0x20000000
93+
#define __TTB_SIZE 0x00004000
94+
95+
#endif /* __MEM_VK_RZ_A1H_H */

0 commit comments

Comments
 (0)