Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste ÜberarbeitungBeide Seiten der Revision | ||
artikel:ipc:mac7116 [Mon. 01.04.2019 04:11] – go4it | artikel:ipc:mac7116 [Wed. 10.11.2021 19:35] – [MAC7116 MCU] go4it | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== MAC7116 MCU ====== | ====== MAC7116 MCU ====== | ||
- | ===== Data ===== | + | {{: |
+ | ===== Markings | ||
- | | + | |
- | | + | |
- | | + | - '' |
- | * 32 Bit Big-Endian | + | - '' |
- | * ARMv4 Instruction-Set | + | |
- | * 50 MHz | + | |
- | * 8kb unified cache | + | |
- | * Memory Management Unit (MMU) | + | |
- | | + | |
- | * Program Flash: 1 MByte | + | |
- | * Data Flash: 48 KByte | + | |
- | * SRAM: 32 KByte | + | |
- | * Datenblatt: [[https:// | + | |
- | {{: | ||
- | ==== Bootstrap | + | ===== Specifications ===== |
- | === Chip operation mode === | + | * 1 MByte of Program Flash |
+ | * 32 KByte of Data Flash | ||
+ | * 48 KBytes of SRAM | ||
+ | * External Bus | ||
+ | * 1x ATD Module A (AD-Converter with 16 Channels and 8/10-bit resolution) | ||
+ | * 4x CAN Modules (A, B, C and D) | ||
+ | * 4x eSCI Modules (A, B, C and D) | ||
+ | * 2x DSPI Modules (A and B) | ||
+ | * I2C Module | ||
+ | * eMIOS Module, 16 channels, 16-bit | ||
+ | * Timer Module, 10 channels, 24-bit | ||
+ | * 112 GPIO Ports (Total) | ||
- | The chip operating mode is determined by the states of the MODA (Pin 71) and MODB (Pin 70) pins at reset and the security status of the program Flash. | + | ===== Operating ===== |
+ | |||
+ | ==== Bootstrap ==== | ||
- | {{:artikel: | + | As of the wirering of MODA and MODB pins, the chip is running in " |
- | ^ MODA ^ MODB ^ Program Flash secured ^ Chip mode ^ Description ^ | + | |
- | | 0 | 0 | No | Normal Single-Chip Mode | Boots from internal flash | | + | |
- | | 0 | 1 | No | Normal Expanded Mode | Boots from external flash | | + | |
- | | 1 | 0 | No | Normal Data Flash Boot Mode | Boots from data flash | | + | |
- | | 0 | 0 | Yes | Secured Single-Chip Mode | Boots from internal flash | | + | |
- | | 0 | 1 | Yes | Secured Expanded Mode | Boots from external flash | | + | |
- | | 1 | 0 | Yes | Secured Data Flash Boot Mode | Boots from data flash | | + | |
- | | 1 | 1 | - | -RESERVED - | | + | |
=== Memory Map === | === Memory Map === | ||
Zeile 41: | Zeile 40: | ||
^ Periphal ^ Base-Addr ^ End-Addr ^ Size ^ | ^ Periphal ^ Base-Addr ^ End-Addr ^ Size ^ | ||
| Program Flash | 0x0000 0000 | 0x000F FFFF | 0x10 0000 (1 mb) | | | Program Flash | 0x0000 0000 | 0x000F FFFF | 0x10 0000 (1 mb) | | ||
- | | Data Flash | 0xFE00 0000 | | (48 kb) | | + | | Data Flash | 0xFE00 0000 | | (32 kb) | |
- | | SRAM | 0x4000 0000 | 0x4000 7FFF | 0x8000 (32 kb) | | + | | SRAM | 0x4000 0000 | 0x4000 7FFF | 0x8000 (48 kb) | |
progflash base 0xfc100000 | progflash base 0xfc100000 | ||
Zeile 106: | Zeile 105: | ||
https:// | https:// | ||
+ | |||
+ | === DEFs === | ||
< | < | ||
Zeile 124: | Zeile 125: | ||
cfmdfdacc | cfmdfdacc | ||
</ | </ | ||
+ | |||
+ | === Segger === | ||
< | < | ||
Zeile 133: | Zeile 136: | ||
mem16 fe000000,1 // verify writing-> | mem16 fe000000,1 // verify writing-> | ||
</ | </ | ||
+ | |||
+ | === PEEDI === | ||
+ | |||
+ | < | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; PEEDI target configuration file for Freescale MAC7100 processor | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; The software is delivered "AS IS" without warranty or condition of any | ||
+ | ; kind, either express, implied or statutory. This includes without | ||
+ | ; limitation any warranty or condition with respect to merchantability or | ||
+ | ; fitness for any particular purpose, or against the infringements of | ||
+ | ; intellectual property rights of others. | ||
+ | ; | ||
+ | ; | ||
+ | |||
+ | ; | ||
+ | ; The following section contains licenses that are required for PEEDI to | ||
+ | ; operate. These licenses must be filled before using this file. | ||
+ | ; The [LICENSE] section may contain license keys for one or more PEEDIs. | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; The [LICENSE] section may point to an external file which contains | ||
+ | ; license keys for one or more PEEDIs. The external file must include | ||
+ | ; the text [LICENSE] followed by all keys. | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; FILE = tftp:// | ||
+ | ; or | ||
+ | ; | ||
+ | ; or | ||
+ | ; FILE = ftp:// | ||
+ | ; | ||
+ | ; | ||
+ | ; PEEDI is shipped with license keys stored in " | ||
+ | ; printed on a label on the bottom side of PEEDI. | ||
+ | ; | ||
+ | [LICENSE] | ||
+ | FILE=eep: | ||
+ | ; | ||
+ | |||
+ | [DEBUGGER] | ||
+ | PROTOCOL | ||
+ | REMOTE_PORT | ||
+ | |||
+ | [TARGET] | ||
+ | PLATFORM | ||
+ | |||
+ | [PLATFORM_ARM] | ||
+ | JTAG_CHAIN | ||
+ | JTAG_CLOCK | ||
+ | ; Freescale recommends max JTAG_CLOCK 1/6 of the system clock | ||
+ | TRST_TYPE | ||
+ | RESET_TIME | ||
+ | TIME_AFTER_RESET | ||
+ | CORE0 = MAC7100 | ||
+ | CORE0_STARTUP_MODE | ||
+ | ; if RESET than no code is executed after reset | ||
+ | ; if STOP,XX then the target executes code for XX period in ms. | ||
+ | ; if RUN then the target executes code until stopped by the telnet " | ||
+ | |||
+ | CORE0_BREAKMODE | ||
+ | ; soft - software breakpiont | ||
+ | ; hard - use hardware breakpoints instead of software | ||
+ | CORE0_BREAK_PATTERN | ||
+ | |||
+ | CORE0_INIT | ||
+ | CORE0_FLASH0 | ||
+ | CORE0_ENDIAN | ||
+ | CORE0_WORKSPACE_ADDR | ||
+ | CORE0_WORKSPACE_LEN | ||
+ | |||
+ | CORE0_LOCKOUT_RECOVERY | ||
+ | ; "JTAG Lockout Recovery" | ||
+ | ; if the MAC7100 flash is secured | ||
+ | ; Fsys 4MHz CLKD=9; Fsys 8MHz CLKD=19 | ||
+ | CORE0_FILE | ||
+ | CORE0_PATH | ||
+ | |||
+ | [INIT_MAC7100] | ||
+ | memory write8 | ||
+ | |||
+ | ; Speed-up to fsys = 50MHz, Fsys = 2*Fosc*(mul/ | ||
+ | ; Quartz is 8.00 MHz | ||
+ | ; | ||
+ | memory write8 | ||
+ | memory write8 | ||
+ | wait 10 | ||
+ | memory write8 | ||
+ | memory write8 | ||
+ | |||
+ | memory write8 | ||
+ | memory write16 0xfc0e80c4 0x0080 | ||
+ | |||
+ | set pc 0x40000000 | ||
+ | |||
+ | [FLASH_PROG] | ||
+ | CHIP = MAC7100 | ||
+ | CPU_CLOCK | ||
+ | CHECK_ID | ||
+ | FILE = " | ||
+ | AUTO_ERASE | ||
+ | |||
+ | |||
+ | |||
+ | [SERIAL] | ||
+ | BAUD = 115200 | ||
+ | STOP_BITS | ||
+ | PARITY | ||
+ | TCP_PORT | ||
+ | ; | ||
+ | |||
+ | [TELNET] | ||
+ | PROMPT | ||
+ | ; | ||
+ | |||
+ | [DISPLAY] | ||
+ | BRIGHTNESS | ||
+ | VOLUME | ||
+ | |||
+ | [ACTIONS] | ||
+ | 1 = erase | ||
+ | 2 = prog | ||
+ | 3 = dump_ram | ||
+ | 4 = dump_flash | ||
+ | |||
+ | [erase] | ||
+ | flash erase | ||
+ | |||
+ | [prog] | ||
+ | flash prog | ||
+ | </ | ||
+ | |||
+ | === ... === | ||
< | < | ||
Zeile 330: | Zeile 481: | ||
; mass erase does erase program and data flash. | ; mass erase does erase program and data flash. | ||
</ | </ | ||
- | |||