Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
Enabling time service for MCBStM32F400
Browse files Browse the repository at this point in the history
  • Loading branch information
smaillet-ms committed Sep 15, 2015
1 parent 5ef03bc commit 0469104
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 78 deletions.
2 changes: 1 addition & 1 deletion CLR/Core/Execution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ bool CLR_RT_ExecutionEngine::SpawnStaticConstructorHelper( CLR_RT_AppDomain* app
CLR_RT_MethodDef_Index idxNext;

_ASSERTE(m_cctorThread != NULL);
_ASSERTE(m_cctorThread->CanThreadBeReused());
//_ASSERTE(m_cctorThread->CanThreadBeReused());

idxNext.m_data = idx.m_data;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ const BlockRange g_M29W640FB_BlockRange1[] =
const BlockRange g_M29W640FB_BlockRange2[] =
{
// ER_DAT
{ BlockRange::BLOCKTYPE_CODE, 0, 2 }, // 3x64KB = 192KB
{ BlockRange::BLOCKTYPE_CODE, 0, 3 }, // 4x64KB = 256KB
#ifdef DEBUG
// In debug builds with TRACE pins enabled, only 1MB is available
{ BlockRange::BLOCKTYPE_DEPLOYMENT, 3, 15 }, // 13x64KB = 832KB
{ BlockRange::BLOCKTYPE_DEPLOYMENT, 4, 14 }, // 11x64KB = 704KB
#else
{ BlockRange::BLOCKTYPE_DEPLOYMENT, 3, 126 }, // 124x64KB = 7936KB
{ BlockRange::BLOCKTYPE_DEPLOYMENT, 4, 126 }, // 123x64KB = 7872KB
#endif
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<!-- DAT region goes into external NOR Flash -->
<Set Name="Data_BaseAddress" Value="%Config_BaseAddress% + %Config_Size%"/>
<Set Name="Data_Size" Value="0x00020000"/><!-- 128KB -->
<Set Name="Data_Size" Value="0x00040000"/><!-- 256KB -->

<!-- [Deployment fills the rest of external NOR flash...] -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<!-- DAT region goes into external NOR Flash -->
<Set Name="Data_BaseAddress" Value="%Config_BaseAddress% + %Config_Size%"/>
<Set Name="Data_Size" Value="0x00020000"/><!-- 128KB -->
<Set Name="Data_Size" Value="0x00040000"/><!-- 256KB -->
<!-- Deployment fills the rest of external NOR flash... -->

<!-- Internal FLASH -->
Expand Down
28 changes: 17 additions & 11 deletions Solutions/MCBSTM32F400/TinyCLR/TinyCLR.proj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
<Import Condition="'$(DATASTORAGE_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\DataStorage.featureproj" />
<Import Condition="'$(BLOCKSTORAGE_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\BlockStorage.featureproj" />
<Import Condition="'$(DEBUGGER_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\Debugger.featureproj" />
<Import Condition="'$(SOCKETS_PORT_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\SOCKETS_Port.featureproj" />
<Import Condition="'$(USB_PORT_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\USB_Port.featureproj" />
<Import Condition="'$(USB_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\Usb.featureproj" />
<Import Condition="'$(INTERRUPTHANDLER_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\InterruptHandler.featureproj" />
Expand All @@ -66,12 +65,15 @@
<Import Condition="'$(I2C_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\I2C.featureproj" />
<Import Condition="'$(SPI_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\SPI.featureproj" />
<Import Condition="'$(SERIALIZATION_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\Serialization.featureproj" />
<Import Condition="'$(WINDOWS_DEVICES_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\Windows_Devices.featureproj" />
<Import Condition="'$(SOCKETS_PORT_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\SOCKETS_Port.featureproj" />
<Import Condition="'$(STREAM_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\Stream.featureproj" />
<Import Condition="'$(NETWORK_LWIP_OS_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\Network_lwip_os.featureproj" />
<Import Condition="'$(CRYPTO_FEATUREPROJ)'=='' AND '$(USE_SSL)'=='true'" Project="$(SPOCLIENT)\Framework\Features\Crypto.featureproj" />
<Import Condition="'$(SSL_OPEN_LWIP_OS_FEATUREPROJ)'=='' AND '$(USE_SSL)'=='true'" Project="$(SPOCLIENT)\Framework\Features\SSL_Open_lwip_os.featureproj" />
<Import Condition="'$(WINDOWS_DEVICES_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\Windows_Devices.featureproj" />
<Import Condition="'$(XML_FEATUREPROJ)'==''" Project="$(SPOCLIENT)\Framework\Features\XML.featureproj" />
<Import Project="$(SPOCLIENT)\Framework\Features\HTTP_lwip_os.featureproj" />
<Import Project="$(SPOCLIENT)\Framework\Features\TimeService.featureproj" />
<Import Project="$(SPOCLIENT)\tools\targets\Microsoft.SPOT.System.Interop.Settings" />
<ItemGroup>
<DriverLibs Include="CortexMx_ItmPort.$(LIB_EXT)" />
Expand All @@ -87,7 +89,7 @@
</ItemGroup>
<ItemGroup>
<DriverLibs Include="LargeBuffer_hal_stubs.$(LIB_EXT)" />
<RequiredProjects Include="$(SPOCLIENT)\DeviceCode\drivers\LargeBuffer\stubs\dotnetmf.proj" />
<RequiredProjects Include="$(SPOCLIENT)\DeviceCode\Drivers\LargeBuffer\stubs\dotNetMF.proj" />
</ItemGroup>
<ItemGroup>
<PlatformIndependentLibs Include="Core.$(LIB_EXT)" />
Expand Down Expand Up @@ -253,10 +255,6 @@
<DriverLibs Include="FS_Config_stubs.$(LIB_EXT)" />
<RequiredProjects Include="$(SPOCLIENT)\DeviceCode\PAL\FS\stubs\config\dotnetmf.proj" />
</ItemGroup>
<ItemGroup>
<DriverLibs Include="TimeService_pal_stubs.$(LIB_EXT)" />
<RequiredProjects Include="$(SPOCLIENT)\DeviceCode\Pal\TimeService\stubs\dotNetMF.proj" />
</ItemGroup>
<ItemGroup>
<PlatformIndependentLibs Include="Graphics_stub.$(LIB_EXT)" />
<RequiredProjects Include="$(SPOCLIENT)\CLR\Graphics\dotNetMF_stub.proj" />
Expand Down Expand Up @@ -430,18 +428,24 @@
<RequiredProjects Include="$(SPOCLIENT)\CLR\libraries\spot_net\dotNetMF.proj" />
</ItemGroup>
<ItemGroup>
<RequiredProjects Include="$(SPOCLIENT)\CMSIS\CMSIS\RTOS\RTX\dotnetmf.proj" />
<RequiredProjects Include="$(SPOCLIENT)\CMSIS\CMSIS\RTOS\RTX\dotNetMF.proj" />
<DriverLibs Include="CMSIS_RTX.$(LIB_EXT)" />
</ItemGroup>
<ItemGroup>
<RequiredProjects Include="$(SPOCLIENT)\Solutions\MCBSTM32F400\DeviceCode\CMSIS_RTX_Config\dotNetMF.proj" />
<DriverLibs Include="CMSIS_RTX_Config.$(LIB_EXT)" />
<DriverLibs Include="CMSIS_RTX_CONFIG.$(LIB_EXT)" />
</ItemGroup>

<!-- lwIP STACK LIBRARIES -->
<ItemGroup Condition="'$(TCP_IP_STACK)'=='LWIP_1_4_1_OS'">
<RequiredProjects Include="$(SPOCLIENT)\devicecode\drivers\timeservice\stubs\dotNetMF.proj" />
<DriverLibs Include="timeservice_hal_stubs.$(LIB_EXT)" />
<RequiredProjects Include="$(SPOCLIENT)\CLR\Libraries\SPOT_TimeService\dotnetmf.proj" />
<PlatformIndependentLibs Include="SPOT_TimeService.$(LIB_EXT)" />

<RequiredProjects Include="$(SPOCLIENT)\DeviceCode\Pal\TimeService\dotNetMF.proj" />
<DriverLibs Include="TimeService_pal.$(LIB_EXT)" />

<RequiredProjects Include="$(SPOCLIENT)\DeviceCode\pal\timeservice\driver\dotNetMF.proj" />
<DriverLibs Include="timeservice_hal_generic.$(LIB_EXT)" />

<RequiredProjects Include="$(SPOCLIENT)\DeviceCode\PAL\COM\Sockets_lwip_os\dotNetMF.proj" />
<DriverLibs Include="sockets_pal_lwip_os.$(LIB_EXT)" />
Expand Down Expand Up @@ -470,6 +474,8 @@
<ItemGroup Condition="'$(USE_SSL)'!='true'">
<RequiredProjects Include="$(SPOCLIENT)\DeviceCode\pal\COM\sockets\openssl\stubs\dotnetmf.proj" />
<DriverLibs Include="openssl_pal_stubs.$(LIB_EXT)" />
<RequiredProjects Include="$(SPOCLIENT)\CLR\libraries\spot_net_security\dotNetMF_Stub.proj" />
<PlatformIndependentLibs Include="SPOT_Net_Security_stub.$(LIB_EXT)" />
</ItemGroup>
<ItemGroup Condition="'$(USE_SSL)'=='true'">
<RequiredProjects Include="$(SPOCLIENT)\Solutions\MCBSTM32F400\DeviceCode\Crypto\dotnetmf.proj" />
Expand Down
2 changes: 1 addition & 1 deletion Solutions/MCBSTM32F400/TinyCLR/scatterfile_tinyclr_gcc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<!-- DAT region goes into external NOR Flash -->
<Set Name="Data_BaseAddress" Value="%Config_BaseAddress% + %Config_Size%"/>
<Set Name="Data_Size" Value="0x00030000"/><!-- 192KB -->
<Set Name="Data_Size" Value="0x00040000"/><!-- 256KB -->

<!-- [Deployment fills the rest of external NOR flash...] -->

Expand Down
2 changes: 1 addition & 1 deletion Solutions/MCBSTM32F400/TinyCLR/scatterfile_tinyclr_mdk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<!-- DAT region goes into external NOR Flash -->
<Set Name="Data_BaseAddress" Value="%Config_BaseAddress% + %Config_Size%"/>
<Set Name="Data_Size" Value="0x00030000"/><!-- 192KB -->
<Set Name="Data_Size" Value="0x00040000"/><!-- 256KB -->

<!-- [Deployment fills the rest of external NOR flash...] -->

Expand Down
126 changes: 67 additions & 59 deletions Solutions/MCBSTM32F400/netmfdbg/netmfdbg.uvoptx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,22 @@
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>3</Number>
<Type>0</Type>
<LineNumber>41</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>S:\GitHub\smaillet-ms\netmf-interpreter\CLR\Libraries\SPOT_TimeService\spot_Time_native_Microsoft_SPOT_Time_TimeService.cpp</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
</Breakpoint>
<MemoryWindow1>
<Mm>
Expand Down Expand Up @@ -338,7 +354,7 @@
<OPTFL>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<IsCurrentTarget>1</IsCurrentTarget>
<IsCurrentTarget>0</IsCurrentTarget>
</OPTFL>
<CpuCode>18</CpuCode>
<Books>
Expand Down Expand Up @@ -456,13 +472,6 @@
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint/>
<WatchWindow1>
<Ww>
<count>0</count>
<WinNumber>1</WinNumber>
<ItemText>assEnd</ItemText>
</Ww>
</WatchWindow1>
<MemoryWindow1>
<Mm>
<WinNumber>1</WinNumber>
Expand Down Expand Up @@ -720,6 +729,22 @@
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>3</Number>
<Type>0</Type>
<LineNumber>41</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>S:\GitHub\smaillet-ms\netmf-interpreter\CLR\Libraries\SPOT_TimeService\spot_Time_native_Microsoft_SPOT_Time_TimeService.cpp</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
</Breakpoint>
<Tracepoint>
<THDelay>0</THDelay>
Expand Down Expand Up @@ -809,7 +834,7 @@
<OPTFL>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<IsCurrentTarget>0</IsCurrentTarget>
<IsCurrentTarget>1</IsCurrentTarget>
</OPTFL>
<CpuCode>18</CpuCode>
<Books>
Expand Down Expand Up @@ -926,56 +951,7 @@
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000 -FP0($$Device:STM32F407IGHx$CMSIS\Flash\STM32F4xx_1024.FLM))</Name>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>53</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134294688</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>S:\GitHub\smaillet-ms\netmf-interpreter\DeviceCode\Targets\Native\STM32F4\DeviceCode\STM32F4_Bootstrap\RVD_S\DefaultHandlers.s</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>238</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>S:\GitHub\smaillet-ms\netmf-interpreter\CLR\StartupLib\CLRStartup.cpp</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>2</Number>
<Type>0</Type>
<LineNumber>60</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>S:\GitHub\smaillet-ms\netmf-interpreter\Support\crc\CRC.cpp</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
</Breakpoint>
<Breakpoint/>
<MemoryWindow1>
<Mm>
<WinNumber>1</WinNumber>
Expand Down Expand Up @@ -1238,6 +1214,22 @@
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>3</Number>
<Type>0</Type>
<LineNumber>41</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>S:\GitHub\smaillet-ms\netmf-interpreter\CLR\Libraries\SPOT_TimeService\spot_Time_native_Microsoft_SPOT_Time_TimeService.cpp</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
</Breakpoint>
<MemoryWindow1>
<Mm>
Expand Down Expand Up @@ -1485,6 +1477,22 @@
<ExecCommand></ExecCommand>
<Expression>0x0805BDD0</Expression>
</Bp>
<Bp>
<Number>2</Number>
<Type>0</Type>
<LineNumber>41</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>S:\GitHub\smaillet-ms\netmf-interpreter\CLR\Libraries\SPOT_TimeService\spot_Time_native_Microsoft_SPOT_Time_TimeService.cpp</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
</Breakpoint>
<WatchWindow1>
<Ww>
Expand Down

0 comments on commit 0469104

Please # to comment.