-
Notifications
You must be signed in to change notification settings - Fork 2
/
EVB_Power_Cycle.bat
executable file
·52 lines (37 loc) · 1.57 KB
/
EVB_Power_Cycle.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo OFF
:: Note:
:: * Make sure the following J2 header pins are populate with jumpers:
:: > J2.7 & J2.8 : Port A.2; STRAP5 (Rout BSP signals via Host SI2 pins).
:: > J2.9 & J2.10: Port A.3; STRAP8 (Enable security mode to simulate secure path).
:: > J2.11 & J2.12: Port A.4; VR_ENABLE_N (EVB Power ON / OFF).
:: > J2.13 & J2.14: Port A.5; STRAP9 (Enable Flash UART upadte routine - FUP).
:: > J2.15 & J2.16: Port A.6; PORST_N (Power-On-Reset).
:: > J2.17 & J2.18: Port A.7; CORST_N (Core-Reset).
:: * Make sure STRAP DIP-SWITCH are at OFF position.
SET PIN_HIGH=1 1
SET PIN_LOW=1 0
SET PIN_IN=0 0
SET VR_ENABLE_N=4
SET POWER_OFF=-pin-set %VR_ENABLE_N% %PIN_HIGH%
SET POWER_ON=-pin-set %VR_ENABLE_N% %PIN_IN%
SET PORST_N=6
SET PORST_ASSERTED=-pin-set %PORST_N% %PIN_LOW%
SET PORST_RELEASE=-pin-set %PORST_N% %PIN_IN%
SET CORST_N=7
SET CORST_ASSERTED=-pin-set %CORST_N% %PIN_LOW%
SET CORST_RELEASE=-pin-set %CORST_N% %PIN_IN%
SET STRAP5=2
SET STRAP5_ASSERTED=-pin-set %STRAP5% %PIN_LOW%
SET STRAP5_RELEASE=-pin-set %STRAP5% %PIN_IN%
SET STRAP8=3
SET STRAP8_ASSERTED=-pin-set %STRAP8% %PIN_LOW%
SET STRAP8_RELEASE=-pin-set %STRAP8% %PIN_IN%
SET STRAP9=5
SET STRAP9_ASSERTED=-pin-set %STRAP9% %PIN_LOW%
SET STRAP9_RELEASE=-pin-set %STRAP9% %PIN_IN%
Arbel_EVB_Util -help
Arbel_EVB_Util -list
:: if one Arbel EVB is connected, -open-desc command can be use.
:: open by description and tooogle all IOS.
.\py_scripts\ImageProgramming\FTDI\Arbel_EVB_Util -open-desc "NPCM8mnx_Evaluation_Board A" %POWER_OFF% -update -delay 1000 %POWER_ON% -update -delay 1000
pause