mirror of https://github.com/ARMmbed/mbed-os.git
Added MBED_APP_START and SPI pin definitions
parent
7d93fb4c15
commit
4cbdfb380f
|
@ -49,23 +49,23 @@ typedef enum {
|
|||
PU0 = 16 << 3, PU1, PU2, PU3, PU4, PU5,
|
||||
PV0 = 17 << 3, PV1, PV2, PV3, PV4, PV5, PV6, PV7,
|
||||
|
||||
// Other mbed Pin Names
|
||||
// LED
|
||||
LED1 = PK4,
|
||||
LED2 = PK5,
|
||||
LED3 = PK6,
|
||||
LED4 = PK7,
|
||||
|
||||
// External data bus Pin Names
|
||||
D0 = PV7,
|
||||
D1 = PV6,
|
||||
D2 = PC4,
|
||||
D3 = PK2,
|
||||
D4 = PC3,
|
||||
D5 = PJ0,
|
||||
D6 = PN0,
|
||||
D7 = PM6,
|
||||
D8 = PT0,
|
||||
D9 = PG2,
|
||||
D0 = PV7,
|
||||
D1 = PV6,
|
||||
D2 = PC4,
|
||||
D3 = PK2,
|
||||
D4 = PC3,
|
||||
D5 = PJ0,
|
||||
D6 = PN0,
|
||||
D7 = PM6,
|
||||
D8 = PT0,
|
||||
D9 = PG2,
|
||||
D10 = PT1,
|
||||
D11 = PT3,
|
||||
D12 = PT4,
|
||||
|
@ -81,24 +81,43 @@ typedef enum {
|
|||
A4 = PF6,
|
||||
A5 = PF7,
|
||||
|
||||
// DAC
|
||||
DAC0 = PG0,
|
||||
DAC1 = PG1,
|
||||
|
||||
// DAP_UART
|
||||
USBTX = PJ1,
|
||||
USBRX = PJ2,
|
||||
USBTX = PJ1,
|
||||
USBRX = PJ2,
|
||||
MBEDIF_TXD = USBTX,
|
||||
MBEDIF_RXD = USBRX,
|
||||
|
||||
// Switches
|
||||
// Push buttons
|
||||
SW1 = PV0,
|
||||
SW2 = PV1,
|
||||
SW3 = PV2,
|
||||
SW4 = PV3,
|
||||
|
||||
// Standardized button names
|
||||
BUTTON1 = SW1,
|
||||
BUTTON2 = SW2,
|
||||
BUTTON3 = SW3,
|
||||
BUTTON4 = SW4,
|
||||
|
||||
// TSPI2
|
||||
MOSI = D11,
|
||||
MISO = D12,
|
||||
SCLK = D13,
|
||||
CS = D10,
|
||||
|
||||
// SD Shield TSPI2
|
||||
SD_SEL = CS, // Chip select
|
||||
SD_CLK = SCLK, // SPI clock
|
||||
SD_MISO = MISO, // Master in Salve out
|
||||
SD_MOSI = MOSI, // Master out Salve in
|
||||
|
||||
// I2C pins
|
||||
SDA = D14,
|
||||
SCL = D15,
|
||||
SDA = D14,
|
||||
SCL = D15,
|
||||
I2C_SDA = SDA,
|
||||
I2C_SCL = SCL,
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#! armcc -E
|
||||
|
||||
;; TMPM3HQFDFG scatter file
|
||||
|
||||
;; Vector table starts at 0
|
||||
|
@ -13,9 +15,17 @@
|
|||
|
||||
;; Compatible with ISSM model
|
||||
|
||||
LR_IROM1 0x00000000 0x80000
|
||||
#if !defined(MBED_APP_START)
|
||||
#define MBED_APP_START 0x00000000
|
||||
#endif
|
||||
|
||||
#if !defined(MBED_APP_SIZE)
|
||||
#define MBED_APP_SIZE 0x00080000
|
||||
#endif
|
||||
|
||||
LR_IROM1 MBED_APP_START MBED_APP_SIZE
|
||||
{
|
||||
ER_IROM1 0x00000000 0x80000
|
||||
ER_IROM1 MBED_APP_START MBED_APP_SIZE
|
||||
{
|
||||
*.o (RESET, +First)
|
||||
*(InRoot$$Sections)
|
||||
|
|
|
@ -1,9 +1,17 @@
|
|||
/* Linker script for Toshiba TMPM3HQ */
|
||||
|
||||
#if !defined(MBED_APP_START)
|
||||
#define MBED_APP_START 0x00000000
|
||||
#endif
|
||||
|
||||
#if !defined(MBED_APP_SIZE)
|
||||
#define MBED_APP_SIZE 512K
|
||||
#endif
|
||||
|
||||
/* Linker script to configure memory regions. */
|
||||
MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K
|
||||
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
|
||||
/* 8_byte_aligned((166 + 16) vect * 4 bytes) = 8_byte_aligned(0x2D8) = 0x2D8 */
|
||||
RAM (rwx) : ORIGIN = (0x20000000 + 0x2D8), LENGTH = (64K - 0x2D8)
|
||||
}
|
||||
|
|
|
@ -1,19 +1,22 @@
|
|||
/*###ICF### Section handled by ICF editor, don't touch! ****/
|
||||
/*-Editor annotation file-*/
|
||||
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
|
||||
|
||||
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x00000000; }
|
||||
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x00080000; }
|
||||
|
||||
/*-Specials-*/
|
||||
define symbol __ICFEDIT_intvec_start__ = 0x00000000;
|
||||
define symbol __ICFEDIT_intvec_start__ = MBED_APP_START;
|
||||
/*-Memory Regions-*/
|
||||
define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
|
||||
define symbol __ICFEDIT_region_ROM_end__ = 0x0007FFFF;
|
||||
define symbol __ICFEDIT_region_RAM_start__ = 0x200002D8;
|
||||
define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF;
|
||||
define symbol __ICFEDIT_region_ROM_start__ = MBED_APP_START;
|
||||
define symbol __ICFEDIT_region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
|
||||
define symbol __ICFEDIT_region_RAM_start__ = 0x200002D8;
|
||||
define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF;
|
||||
/*Heap 1/4 of ram and stack 1/8*/
|
||||
define symbol __ICFEDIT_size_cstack__ = 0x400;
|
||||
define symbol __ICFEDIT_size_heap__ = 0x2000;
|
||||
/**** End of ICF editor section. ###ICF###*/
|
||||
|
||||
|
||||
define memory mem with size = 4G;
|
||||
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
|
||||
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
|
||||
|
|
Loading…
Reference in New Issue