- Netduino Forums
- → Illishar's Content
Illishar's Content
There have been 146 items by Illishar (Search limited from 22-May 23)
#11271 coding style discussion
Posted by Illishar on 25 March 2011 - 07:53 AM in General Discussion
#10550 Netduino Plus / AT91SAM7X-EK compatibility
Posted by Illishar on 04 March 2011 - 03:31 PM in Netduino Plus 2 (and Netduino Plus 1)
#10549 Compiling netmf with GCC4.2
Posted by Illishar on 04 March 2011 - 03:20 PM in Beta Firmware and Drivers
#10548 Reset
Posted by Illishar on 04 March 2011 - 02:59 PM in Project Showcase
#9541 Runtime Native Code Interop
Posted by Illishar on 14 February 2011 - 06:18 PM in General Discussion
Can you provide more detail about what you're referring to or post a URL to what you were reading?
The following is not one of my 'readings' but it does hint at the issue: http://infocenter.ar...aqs/ka3698.html
It also states however that it *is* possible to create pic. Both with THUMB and ARM. And it gives away that the RVDS compiler has solved the issue.
We however, have to make it work with GNU. I'll see if I can dig up my other source.
#9511 Additional UARTs
Posted by Illishar on 14 February 2011 - 08:23 AM in Netduino 2 (and Netduino 1)
#9510 Software reset
Posted by Illishar on 14 February 2011 - 08:19 AM in Netduino 2 (and Netduino 1)
#9508 Netduino firmware roadmap
Posted by Illishar on 14 February 2011 - 08:15 AM in General Discussion
#9507 Runtime Native Code Interop
Posted by Illishar on 14 February 2011 - 08:07 AM in General Discussion
#9506 SoftwareSerial library needed/equivalent in Netduino
Posted by Illishar on 14 February 2011 - 07:48 AM in General Discussion
#9338 Generics in NETMF
Posted by Illishar on 12 February 2011 - 08:21 AM in General Discussion
#9321 FreeRTOS
Posted by Illishar on 11 February 2011 - 12:06 PM in Netduino Plus 2 (and Netduino Plus 1)
#9264 Reset
Posted by Illishar on 10 February 2011 - 04:29 PM in Project Showcase
Attached Files
- NetduinoSoftReset.zip 8.37KB 44 downloads
#9261 Direct (unsafe) port access
Posted by Illishar on 10 February 2011 - 03:29 PM in Project Showcase
Attached Files
- NetduinoNativeRegisterTest.zip 16.72KB 26 downloads
- RegisterPatch.zip 16.32KB 27 downloads
- Netduino4.1.0.a5_modded.zip 352.44KB 28 downloads
- Netduino_Contrib_Register.zip 27.56KB 24 downloads
#9258 Compiling netmf with GCC4.2
Posted by Illishar on 10 February 2011 - 09:32 AM in Beta Firmware and Drivers
Just a small info (yet another) to those who wants to compile the Netduino source.
- Start compiling with the CodeSourcery (GCC 4.2) compiler, which is supported by Microsoft.
- To make it compile, you most likely need to edit the memory layout. This is due to changing and different compiler outputs.
- The files are:
C:\MicroFrameworkPK_v4_1\Solutions\Netduino\TinyCLR\scatterfile_tinyclr_gcc.xml
C:\MicroFrameworkPK_v4_1\Solutions\Netduino\DeviceCode\Blockstorage\Sam7X_blockstorage\Sam7x_Bl_Config.cpp
In the sam7x file you'll find this:
const BlockRange g_SAM7X_BS_BlockRange[] = { { BlockRange::BLOCKTYPE_BOOTSTRAP , 0, 5 }, { MEMORY_BLOCKTYPE_GCC_SPECIAL_BOOTSTRAP, 6, 14 }, { BlockRange::BLOCKTYPE_CODE , 15, 44 }, { MEMORY_BLOCKTYPE_GCC_SPECIAL_CODE , 45, 46 }, { BlockRange::BLOCKTYPE_DEPLOYMENT , 47, 60 }, { BlockRange::BLOCKTYPE_STORAGE_A , 61, 61 }, { BlockRange::BLOCKTYPE_STORAGE_B , 62, 62 }, { BlockRange::BLOCKTYPE_CONFIG , 63, 63 } };Which doesn't fit when using GCC4.2. If you look at it it will tell you, that the BootLoader will take up either 6 blocks (RVDS) or 15 blocks (GCC). This is mostly correct. However depending on what you're trying to do, the BootLoader might not be of interest to you. The TinyCLR is. Which means that you can keep your SecretLabs compiled RVDS BootLoader (much smaller) and combine it with your own TinyCLR.
I've therefor changed my setup to this:
const BlockRange g_SAM7X_BS_BlockRange[] = { // { BlockRange::BLOCKTYPE_BOOTSTRAP , 0, 5 }, // ~50k (RVDS BootLoader) { BlockRange::BLOCKTYPE_CODE , 6, 49 }, // ~360k = 0x0C000 { BlockRange::BLOCKTYPE_DEPLOYMENT , 50, 62 }, // ~106k = 0x64000 { BlockRange::BLOCKTYPE_CONFIG , 63, 63 } };Depending on the size on your TinyCLR you might have to alter the CODE and DEPLOYMENT addresses.
Yes, I've removed the STORAGE_A and B. They're official areas in the netmf, but they're not currently in use by the Netduino.
When you've made this change, you also need to adjust the scatterfile. This is what I use:
<Set Name="Heap_Begin" Value="0x00010000"/> <Set Name="Heap_End" Value="0x00017FF8"/> <Set Name="Stack_Bottom" Value="0x00018000"/> <Set Name="Stack_Top" Value="0x0001FFF8"/> <If Name="TARGETLOCATION" In="FLASH"> <Set Name="Code_BaseAddress" Value="0x0010C000"/> <!-- This is start TinyCLR --> <Set Name="Deploy_BaseAddress" Value="0x00164000"/> <!-- This is start app code --> <Set Name="Code_Size" Value="%Deploy_BaseAddress - Code_BaseAddress%"/> <Set Name="Config_BaseAddress" Value="0x0017E000"/> <Set Name="Config_Size" Value="0x00002000"/> <Set Name="Valid" Value="true"/> </If>
Notice that the Heap and Stack is only using half of the ram? Yeah ... fancy that.
If you make it compile then just open up your MFDeploy and flash your own ER_FLASH and ER_CONFIG. They're placed in:
C:\MicroFrameworkPK_v4_1\BuildOutput\THUMB\GCC4.2\le\FLASH\release\Netduino\bin\tinyclr.hex\
#9222 Trouble when compiling with Code Contracts
Posted by Illishar on 09 February 2011 - 01:43 PM in Beta Firmware and Drivers
#9220 Netduino Plus Firmware v4.1.0 (update 6) RC 1
Posted by Illishar on 09 February 2011 - 12:34 PM in Netduino Plus 2 (and Netduino Plus 1)
#9109 Direct (unsafe) port access
Posted by Illishar on 07 February 2011 - 11:16 AM in Project Showcase
public unsafe class Processor { /// <summary> /// Write directly to memory. (Meant for port access) /// </summary> /// <param name="reg"></param> /// <param name="val"></param> public static void Write(uint reg, uint val) { *(uint*)reg = val; } /// <summary> /// Read directly from memory. (Meant for port access) /// </summary> /// <param name="reg"></param> /// <returns></returns> public static uint Read(uint reg) { return *(uint*)reg; } }
It's a pity. It would have been an easy fix. Maybe the .NET assemblies have their own memory space or something. I'll give it a try with your unmanaged version, I think.
#9107 Netduino Plus Firmware v4.1.0 (update 6) RC 1
Posted by Illishar on 07 February 2011 - 10:12 AM in Netduino Plus 2 (and Netduino Plus 1)
#9106 Netduino Plus Firmware v4.1.0 (update 6) RC 1
Posted by Illishar on 07 February 2011 - 10:03 AM in Netduino Plus 2 (and Netduino Plus 1)
#9105 Netduino Plus Firmware v4.1.0 (update 6) RC 1
Posted by Illishar on 07 February 2011 - 09:44 AM in Netduino Plus 2 (and Netduino Plus 1)
Attached Files
- NetduinoTest.zip 76.61KB 3 downloads
#9104 Netduino Plus Firmware v4.1.0 (update 6) RC 1
Posted by Illishar on 07 February 2011 - 09:15 AM in Netduino Plus 2 (and Netduino Plus 1)
#9103 Fluent Interop 1.6
Posted by Illishar on 07 February 2011 - 08:16 AM in Project Showcase
#9070 Direct (unsafe) port access
Posted by Illishar on 06 February 2011 - 04:50 PM in Project Showcase
Attached Files
- NetduinoUnsafe.zip 6.13KB 37 downloads
#8992 12-Bit ADC Measurement using MCP320X chips and SPI
Posted by Illishar on 04 February 2011 - 01:01 PM in Project Showcase
20k Hz might be a bit much for netmf. You'd most likely have to implement a native driver at least. (I'm sampling at 25k Hz in native code though.)The samplerate will be 20Kz in the project i'm doing. Is that a problem for the Netduino?
- Netduino Forums
- → Illishar's Content
- Privacy Policy