File tree Expand file tree Collapse file tree 5 files changed +23
-5
lines changed
hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X
libraries/net/eth/lwip-eth/arch/TARGET_NXP Expand file tree Collapse file tree 5 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,9 @@ typedef struct
209
209
__IO uint32_t EXTPOLAR ; /*!< Offset: 0x14C (R/W) External Interrupt Polarity Register */
210
210
uint32_t RESERVED6 [12 ];
211
211
__IO uint32_t RSID ; /*!< Offset: 0x180 (R/W) Reset Source Identification Register */
212
- uint32_t RESERVED7 [7 ];
212
+ uint32_t RESERVED7 [1 ];
213
+ __IO uint32_t MATRIXARB ; /*!< Offset: 0x188 (R/W) Matrix Arbitration Register */
214
+ uint32_t RESERVED71 [5 ];
213
215
__IO uint32_t SCS ; /*!< Offset: 0x1A0 (R/W) System Controls and Status Register */
214
216
__IO uint32_t IRCTRIM ; /*!< Offset: 0x1A4 (R/W) Clock Dividers */
215
217
__IO uint32_t PCLKSEL ; /*!< Offset: 0x1A8 (R/W) Peripheral Clock Selection Register */
Original file line number Diff line number Diff line change @@ -567,5 +567,15 @@ fpu_init();
567
567
SCB -> VTOR = 0x00000000 & 0x3FFFFF80 ;
568
568
#endif
569
569
#endif
570
+
571
+ /* Must set ROM_LAT bit in the Matrix Arbitration Register otherwise SPIFI
572
+ * initialization will cause debugging to HardFault */
573
+ LPC_SC -> MATRIXARB |= (1 <<16 );
574
+
575
+ /* Reset LCD Controller to prevent strange behavior when doing a partial
576
+ * reset (happens when debugging).
577
+ */
578
+ LPC_SC -> RSTCON0 = 1 ;
579
+
570
580
SystemCoreClockUpdate ();
571
581
}
Original file line number Diff line number Diff line change 27
27
#define MEM_SIZE 16362
28
28
#endif
29
29
30
+ #if defined (TOOLCHAIN_GCC_CR )
31
+ /* For LPCXpresso IDE above v8.0.0 to avoid clash with timeval struct */
32
+ #include <sys/time.h>
33
+ #define LWIP_TIMEVAL_PRIVATE 0
34
+ #endif
35
+
30
36
#endif
Original file line number Diff line number Diff line change 69
69
<tool id =" com.crt.advproject.gas.exe.debug.1277199919" name =" MCU Assembler" superClass =" com.crt.advproject.gas.exe.debug" >
70
70
<option id =" com.crt.advproject.gas.arch.1079400011" name =" Architecture" superClass =" com.crt.advproject.gas.arch" value =" com.crt.advproject.gas.target.cm4" valueType =" enumerated" />
71
71
<option id =" com.crt.advproject.gas.thumb.1976113150" name =" Thumb mode" superClass =" com.crt.advproject.gas.thumb" value =" true" valueType =" boolean" />
72
- <option id =" gnu.both.asm.option.flags.crt.1501250871" name =" Assembler flags" superClass =" gnu.both.asm.option.flags.crt" value =" -c -x assembler-with-cpp -D__NEWLIB__ -DDEBUG -D__CODE_RED " valueType =" string" />
72
+ <option id =" gnu.both.asm.option.flags.crt.1501250871" name =" Assembler flags" superClass =" gnu.both.asm.option.flags.crt" value =" -c -x assembler-with-cpp -D__NEWLIB__ -DDEBUG -D__CODE_RED -DFPU_PRESENT=1 " valueType =" string" />
73
73
<option id =" com.crt.advproject.gas.hdrlib.473313643" name =" Use headers for C library" superClass =" com.crt.advproject.gas.hdrlib" value =" com.crt.advproject.gas.hdrlib.newlib" valueType =" enumerated" />
74
74
<option id =" com.crt.advproject.gas.fpu.478766821" name =" Floating point" superClass =" com.crt.advproject.gas.fpu" value =" com.crt.advproject.gas.fpu.fpv4" valueType =" enumerated" />
75
75
<inputType id =" com.crt.advproject.assembler.input.910682278" name =" Additional Assembly Source Files" superClass =" com.crt.advproject.assembler.input" />
981
981
<tool id =" com.crt.advproject.gas.exe.release.579950187" name =" MCU Assembler" superClass =" com.crt.advproject.gas.exe.release" >
982
982
<option id =" com.crt.advproject.gas.arch.1401271875" name =" Architecture" superClass =" com.crt.advproject.gas.arch" value =" com.crt.advproject.gas.target.cm3" valueType =" enumerated" />
983
983
<option id =" com.crt.advproject.gas.thumb.1024544278" name =" Thumb mode" superClass =" com.crt.advproject.gas.thumb" value =" true" valueType =" boolean" />
984
- <option id =" gnu.both.asm.option.flags.crt.637466836" name =" Assembler flags" superClass =" gnu.both.asm.option.flags.crt" value =" -c -x assembler-with-cpp -D__NEWLIB__ -DNDEBUG -D__CODE_RED " valueType =" string" />
984
+ <option id =" gnu.both.asm.option.flags.crt.637466836" name =" Assembler flags" superClass =" gnu.both.asm.option.flags.crt" value =" -c -x assembler-with-cpp -D__NEWLIB__ -DNDEBUG -D__CODE_RED -DFPU_PRESENT=1 " valueType =" string" />
985
985
<option id =" com.crt.advproject.gas.hdrlib.492600365" name =" Use headers for C library" superClass =" com.crt.advproject.gas.hdrlib" value =" com.crt.advproject.gas.hdrlib.newlib" valueType =" enumerated" />
986
986
<inputType id =" com.crt.advproject.assembler.input.812068162" name =" Additional Assembly Source Files" superClass =" com.crt.advproject.assembler.input" />
987
987
</tool >
Original file line number Diff line number Diff line change 69
69
<tool id =" com.crt.advproject.gas.exe.debug.1277199919" name =" MCU Assembler" superClass =" com.crt.advproject.gas.exe.debug" >
70
70
<option id =" com.crt.advproject.gas.arch.1079400011" name =" Architecture" superClass =" com.crt.advproject.gas.arch" value =" com.crt.advproject.gas.target.cm4" valueType =" enumerated" />
71
71
<option id =" com.crt.advproject.gas.thumb.1976113150" name =" Thumb mode" superClass =" com.crt.advproject.gas.thumb" value =" true" valueType =" boolean" />
72
- <option id =" gnu.both.asm.option.flags.crt.1501250871" name =" Assembler flags" superClass =" gnu.both.asm.option.flags.crt" value =" -c -x assembler-with-cpp -D__NEWLIB__ -DDEBUG -D__CODE_RED " valueType =" string" />
72
+ <option id =" gnu.both.asm.option.flags.crt.1501250871" name =" Assembler flags" superClass =" gnu.both.asm.option.flags.crt" value =" -c -x assembler-with-cpp -D__NEWLIB__ -DDEBUG -D__CODE_RED -DFPU_PRESENT=1 " valueType =" string" />
73
73
<option id =" com.crt.advproject.gas.hdrlib.473313643" name =" Use headers for C library" superClass =" com.crt.advproject.gas.hdrlib" value =" com.crt.advproject.gas.hdrlib.newlib" valueType =" enumerated" />
74
74
<option id =" com.crt.advproject.gas.fpu.478766821" name =" Floating point" superClass =" com.crt.advproject.gas.fpu" value =" com.crt.advproject.gas.fpu.fpv4" valueType =" enumerated" />
75
75
<inputType id =" com.crt.advproject.assembler.input.910682278" name =" Additional Assembly Source Files" superClass =" com.crt.advproject.assembler.input" />
981
981
<tool id =" com.crt.advproject.gas.exe.release.579950187" name =" MCU Assembler" superClass =" com.crt.advproject.gas.exe.release" >
982
982
<option id =" com.crt.advproject.gas.arch.1401271875" name =" Architecture" superClass =" com.crt.advproject.gas.arch" value =" com.crt.advproject.gas.target.cm3" valueType =" enumerated" />
983
983
<option id =" com.crt.advproject.gas.thumb.1024544278" name =" Thumb mode" superClass =" com.crt.advproject.gas.thumb" value =" true" valueType =" boolean" />
984
- <option id =" gnu.both.asm.option.flags.crt.637466836" name =" Assembler flags" superClass =" gnu.both.asm.option.flags.crt" value =" -c -x assembler-with-cpp -D__NEWLIB__ -DNDEBUG -D__CODE_RED " valueType =" string" />
984
+ <option id =" gnu.both.asm.option.flags.crt.637466836" name =" Assembler flags" superClass =" gnu.both.asm.option.flags.crt" value =" -c -x assembler-with-cpp -D__NEWLIB__ -DNDEBUG -D__CODE_RED -DFPU_PRESENT=1 " valueType =" string" />
985
985
<option id =" com.crt.advproject.gas.hdrlib.492600365" name =" Use headers for C library" superClass =" com.crt.advproject.gas.hdrlib" value =" com.crt.advproject.gas.hdrlib.newlib" valueType =" enumerated" />
986
986
<inputType id =" com.crt.advproject.assembler.input.812068162" name =" Additional Assembly Source Files" superClass =" com.crt.advproject.assembler.input" />
987
987
</tool >
You can’t perform that action at this time.
0 commit comments