OSDN Git Service

V201, added MSP-EXP430FR2433
[fast-forth/master.git] / MSP430_FORTH / BOOT.f
1 \ BOOT.4th
2
3 \ TARGET SELECTION
4 \ MSP_EXP430FR5739  MSP_EXP430FR5969    MSP_EXP430FR5994    MSP_EXP430FR6989
5 \ MSP_EXP430FR4133  CHIPSTICK_FR2433
6 \ MY_MSP430FR5948   MY_MSP430FR5948_1   
7
8
9
10 \ SYSRSTIV decimal values for MSP430FR5994 (device specific)
11 \ ----------------------------------------------------------
12 \ 00 No interrupt pending                                      
13 \ 02 Brownout (BOR)                                            
14 \ 04 RSTIFG RST/NMI (BOR)                                      
15 \ 06 PMMSWBOR software BOR (BOR)                               
16 \ 08 LPMx.5 wake up (BOR)                                      
17 \ 10 Security violation (BOR)                                  
18 \ 12 Reserved                                                  
19 \ 14 SVSHIFG SVSH event (BOR)                                  
20 \ 16 Reserved                                                  
21 \ 18 Reserved                                                  
22 \ 20 PMMSWPOR software POR (POR)                               
23 \ 22 WDTIFG watchdog timeout (PUC)                             
24 \ 24 WDTPW password violation (PUC)                            
25 \ 26 FRCTLPW password violation (PUC)                          
26 \ 28 Uncorrectable FRAM bit error detection (PUC)              
27 \ 30 Peripheral area fetch (PUC)                               
28 \ 32 PMMPW PMM password violation (PUC)                        
29 \ 34 MPUPW MPU password violation (PUC)                        
30 \ 36 CSPW CS password violation (PUC)                          
31 \ 38 MPUSEGIPIFG encapsulated IP memory segment violation (PUC)
32 \ 40 MPUSEGIIFG information memory segment violation (PUC)     
33 \ 42 MPUSEG1IFG segment 1 memory violation (PUC)               
34 \ 44 MPUSEG2IFG segment 2 memory violation (PUC)               
35 \ 46 MPUSEG3IFG segment 3 memory violation (PUC)   
36
37
38
39
40
41 \ SYSRSTIV values added by FAST FORTH 
42 \ -----------------------------------
43 \ 05 reset after compilation of FAST FORTH kernel
44 \ -1 hardware DEEP RESET: restores state of the lastest FastForth flashed   
45              
46
47 \ note
48 \ Origin of reset is kept in SYSRSTIV register. Their values are device specific.
49 \ WARM displays the content of SYSRSTIV register.
50 \ When BOOT.4TH is called by the FastForth bootstrap, the SYSRSTIV value is on
51 \ the paramater stack, ready to test
52
53 \ --------------------------------------------------------------------------------
54 \ WARNING !
55 \ --------------------------------------------------------------------------------
56 \ it is not recommended to compile then execute a word to perform the bootstrap 
57 \ because the risk of crushing thereafter. Interpreting mode as below is required: 
58 \ --------------------------------------------------------------------------------
59
60
61 \ it's an example:
62
63 DUP $06 =
64 [IF]                \ origin of reset = COLD
65     LOAD" SD_TEST.4TH"
66 [ELSE] DUP $02 = 
67     [IF]            \ origin of reset = power ON
68         LOAD" RTC.4TH"
69     [THEN]
70 [THEN]
71 DROP
72 ECHO                \ don't forget!