mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
[sam] Working LED Blink on variant SAM3S-EK using IAR EWARM
This commit is contained in:
@ -87,7 +87,7 @@
|
||||
</option>
|
||||
<option>
|
||||
<name>OGLastSavedByProductVersion</name>
|
||||
<state>6.21.1.52845</state>
|
||||
<state>6.21.3.52923</state>
|
||||
</option>
|
||||
<option>
|
||||
<name>GeneralEnableMisra</name>
|
||||
@ -4082,12 +4082,6 @@
|
||||
<name>templates</name>
|
||||
<group>
|
||||
<name>iar</name>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\cmsis\sam3u\source\templates\iar\exceptions.c</name>
|
||||
<excluded>
|
||||
<configuration>Debug</configuration>
|
||||
</excluded>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\cmsis\sam3u\source\templates\iar\startup_sam3u.c</name>
|
||||
</file>
|
||||
|
@ -104,6 +104,10 @@ const intvec_elem __vector_table[] =
|
||||
Dummy_Handler /* 35 not used */
|
||||
};
|
||||
|
||||
/* TEMPORARY PATCH FOR SCB */
|
||||
#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */
|
||||
#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */
|
||||
|
||||
/**------------------------------------------------------------------------------
|
||||
* This is the code that gets called on processor reset. To initialize the
|
||||
* device.
|
||||
|
@ -100,6 +100,10 @@ const intvec_elem __vector_table[] =
|
||||
Dummy_Handler /* 30 not used */
|
||||
};
|
||||
|
||||
/* TEMPORARY PATCH FOR SCB */
|
||||
#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */
|
||||
#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */
|
||||
|
||||
/**------------------------------------------------------------------------------
|
||||
* This is the code that gets called on processor reset. To initialize the
|
||||
* device.
|
||||
@ -109,7 +113,7 @@ extern int __low_level_init( void )
|
||||
uint32_t* pSrc = __section_begin( ".intvec" ) ;
|
||||
|
||||
SCB->VTOR = ( (uint32_t)pSrc & SCB_VTOR_TBLOFF_Msk ) ;
|
||||
|
||||
|
||||
if ( ((uint32_t)pSrc >= IRAM0_ADDR) && ((uint32_t)pSrc < IRAM0_ADDR+IRAM_SIZE) )
|
||||
{
|
||||
SCB->VTOR |= 1 << SCB_VTOR_TBLBASE_Pos ;
|
||||
|
Reference in New Issue
Block a user