Home
ChipworkX Development System
Contents
1. 7 2 TF 2202 TW RY MINI92611 V1 4 o o O 2 1 a 1 a b n wn 7 690900H80 10901167087 o cis cis Back View The objective of this guide This guide will help you in the first steps to use ChipvvorkX Module through the Development System From here we will show you how to connect ChipworkX make sure it is running load a simple program and explain how to update the internal firmware This guide only covers very basic points about ChipworkX More details are provided in the user manual Rev 1 10 Page 4 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Getting Started 2 Getting Started 2 1 System Setup Before vve try anything vve vvant to make sure the PC is setup vvith needed softvvare First download and install Visual C express 2010 with SP1 If you have Visual Studio 2010 installed then you can skip this step Now download and install NET Micro Framework 4 1 SDK not the porting kit if link above didn t work search for NET Micro Framework 4 1 SDK Finally install the GHI NETMF SDK Software Development Kit available on GHI Electronics website The SDK comes in a zip file extract it and then run setup exe to install the SDK k 17 GH NETMF SDK v p Search B Organize Views MB Open BW E mail FR Share i Burn F Favorite Links Name E Document
2. N electronics d m m u u ii ii an Aa EZ A Ly i i f a z _ X AV 3 N Ye N ChipuorkX Development System V1 5 www chipworkx com GHI Electronics LLC GHI Electronics LLC ChipvvorkX Development System Table of Contents Table of Contents LULU Duos aaa 3 The objective of this 10 ess eee m nm imi yi r Ter hel 4 2 7 a S A A I omer EEE E OE NENE 5 7571 E A E AA EATA q 5 7 5 RP bi 6 5757500500 6 o o s i i 6 SEL T e in RA a lada aska eld A A E bl nl 8 e Deploying ME Po aa pa e a aaa y aaa aaa a ld 9 LE 6 6 a a a mn 10 5771077 77 b n babaya Pass 11 a la masal 12 5110000 al alabay l n b 12 Connect MFDeploy to show debugging Ss SAC aaa a RAYA RA RAR A ad dad aa ip n adad d a T3 Checking ChipworkX firmware and TinyBooter Version emen 14 51001 ye al aaa m ad ndak la mmam ad 15 Emergency usar appicalon Codo SION isansa R REA 15 SINS VENE APE PO ee E E 0097 16 GAL B E E E E E E E E E E 7700 16 Standard F N a ilanda la milli konan 16 M e E E MK E 16 Adding Assemblies to Visual CF PROJE ismen san senle sa r r n nisan a akal inka a m nhal zall 17 Pee ee FN ae UDa E nE A A m et 18 AA
3. the hardware to the output window on Visual C express You have to keep in mind that only one software can talk to ChipworkX interface at the same time n another vvord you can not Ping the hardvvare through MFDeploy if it is already connected through Visual Studio Connect MFDeploy to shovv debugging messages After Deploying the application through Visual Studio The application still vvorks on ChipvvorkX even if is Visual Studio vvas disconnected and it vvill run every time you reset or recycle power on ChipworkX User can still vievv the boot up and debugging messages by connecting MFDeploy to USB Simply after you connect USB cable and you can ping ChipvvorkX in MFDeploy click Target gt Connect Rev 1 10 Page 13 of 26 VVVVVV ghielectronics com GHI Electronics LLC ChipvvorkX Development System Getting Started After this you can even reset the board and see all the boot up sequence messages and any debugging messages including the strings printed out in the code using Debug Print In our previous example Amazing When done you can disconnect using Target gt Disconnect Important Note If you did not see the debugging messages press the Ping button and the debug messages will be displayed after 8 NET Micro Framework Deployment Tool Target Options Plug in Help Device USB ChipwornX Chipwork x Image File FieldDet 828 bytes MethodDef 2772 bytes Debugginginio 1352 bytes Attributes Type5pec
4. the next sections explains how to check the firmware version number and how to updating the firmware is explained here 4 1 Checking the Firmware Version Before updating the firmware you can check the version number and make sure it needs to be updated or if you have the latest installed Make sure you have the latest SDK and firmware installed Then go to wwww ghielectronics com ChipworkX downloads the current GHI NETMF SDK version is shown in the download link You can download and install the SDK When done the version release notes and changes are shown automatically These are also available in the SDK installation folder Rev 1 10 Page 18 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System TinyBooter and Firmvvare Update G AR Program Files 686 GHI Electronics GHINETMFSDK Bi Organize Views 7 ilpen F Print ak Burn Favorite Links Name Date modified Type Size Assemblies Documents A Chipworki Pictures di Embedded Master B Music EMX More k FEZ di Installation Folders di USB Drivers jy EAGLE 5 2 0 A l USBizi Ji EasyBits For Kids 5 15 Release Notes rtf 4 Ellisys After you have the SDK installed you can see the Release Notes file for example ChipworkX firmware version number is 4 0 1 0 and Tinybooter version number is 4 0 1 0 in this SDK kkkkkkkkkkkkikkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkokok GHI Electronics LLC NETMF SD
5. BW 17 EN ir 4 1423 T gap s Fl UC E MFConsoleApplication Pro ram cs Start Page Application Deployment Build Transport Debug Device Resources Microsoft Emulator r Services E Generate native stubs for internal methods Settings Root name for native stub files Reference Paths NET Micro Framework Create stub files in this directory m Solution Explorer A lee Solution C E MFConsoleApp E al Properties j aj References El Program cs ba sil Resources re 4 n Properties 2 1 10 Page 8 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Getting Started Make sure the output window is visible click on View gt Output View Project Build Debug Data Tool Code F7 j 4 Server Explorer Ctrl W L 1 Solution Explorer Ctrl VV 5 o Sg Class View Ctrl C y Eg Code Definition Window Cirl VV J 52 Object Browser Ctrl VV J 2 Error List Ctrl VV E r Properties Window Ctrl VV F Executing Deploying the project Finally we are ready to run our first application Press F5 key on the computer This is a very useful shortcut and you will be using it a lot to run your applications After you press F5 the application will be compiled and loaded on the emulator and in couple seconds everything will stop That is because our program had finis
6. ETMF Hardware ChipworkX 4 0 1 0 GHlElectronics NETMF Hardware EMX 4 0 1 0 GHlElectronics NETMF Hardware USBizi 4 0 1 0 GHlElectronics NETMF IO 4 0 1 0 GHlElectronics NETMF Net 4 0 1 0 GHlElectronics NETMF System 4 0 1 0 GHlElectronics NETMF USBHost 4 0 1 0 MFDpwsClient 4 0 1681 0 MFDpwsDevice 4 0 1681 0 MFDpvvsExtensions 4 0 1681 0 MFWsStack 4 0 1681 0 4 3 We can now see the new Assembly reference with the References in the solution explorer Rev 1 10 Page 17 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Assemblies vvith ChipvvorkX Profect x Solution Explorer Solution MEFConseleApplic A 2 1211 EE Li od Solution MFConsoleApplicationl 1 project Gl MFConsoleApplication1 H Ea Properties a 45 References sz GH Electronics NETMFJO ka 202 Microsoft SPOT Native 2 L 23 mscorlib Program cs E fal Resources resx 1 4 TinyBooter And Firmware Update ChipvvorkX includes three pieces of embedded software bootstrap loader TinyBooter and ChipworkX firmware Important note Always make sure the firmware and TinyBooter loaded on the device match the firmware and TinyBooter versions associated with the GHI NETMF SDK ChipworkX firmware Ideally whenever you install a new SDK on your PC you will also update the firmware on your device and update the assemblies you have added to your application
7. Emulator exe Microsoft SPOT Em lator Sample SampleEm lator exe The thread 0 2 has exited with code 0x0 Amazing ga Call Stack Immediate Window Output La Error List The Program that you ve just deployed is called Managed Code in NET Micro Framework Terminology Debugging Breakpoints Breakpoints are another useful feature when debugging code While the application is running the debugger checks if execution has reached a breakpoint If so the execution will pause Click the bar right to the left of the line that prints Amazing This will show a red dot which is the breakpoint Rev 1 10 Page 10 of 26 www ghielectronics com GHI Electronics _LLC ChipvvorkX Development System Getting Started public static void i Debug Print Amazing Now press F5 to run the software and when the application reaches the breakpoint the debugger will pause it as showing in the image below public static void Main 1 Now you can step in the code using F11 or continue execution using F5 2 3 Running on Hardware Favorite Links Date modified E Documents E Pictures Ef ghi_netmf_interface cat More s k GHI_NETMF_Interface int Folders 4 items VVe are novv ready to connect ChipvvorkX Development System to the PC Connect The development system using the USB cable No power is needed GChipvvorkX Development System uses USB for povver f this is the f
8. GE ino he Piny are Vo 0099 07 77377 18 ol 00007 Update using IE eg KY ak ba D b da 20 7 ada ra hid 20 Emergency EE a en mal cin nl en idam diye imei 20 Hu iii ie Updater USB Kg A A A 0077777777 21 10001 el e b nakli biti led denim kli imada eli 21 q OnIp work Firmaara Update Through TEO Ra aa emele eek yuan inmesi akya eyi 22 52 71 10 o PAN A A MR 25 17 71 RR PM O NAMINA AYA MAN ME EMME EREM 26 sa 26 15001 ii m inama 26 Rev 1 10 Page 2 of 26 VVVVVV ghielectronics com GHI Electronics LLC ChipvvorkX Development System Introduction 1 Introduction ChipworkX Development System is the official kit from GHI Electronics for the ChipworkX module This kit exposes the various peripherals and interfaces that make it an ideal starting point for any NET Micro Framework project Furthermore most of ChipworkX module signals such as GPIO SPI and UART are accessible on a 0 1 header for rapid prototyping ChipvvorkX Development System Brochure and Pin outs Document provides for a more detailed view of this system L Speaker EEE ki OVD header 4 3 TFT Display With touch screen Front View Rev 1 10 Page 3 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Introduction e ene ww 4940444050 oON90000000000 o9o000000900000 pantani EYE L
9. HI NETMF SDK under ChipworkX Firmware folder This updater tool consists of Atmel sam ba tool with the required script and the BIN file that has to be loaded to serial DataFlash chip It also includes the Tinybooter Updater driver that defines USB port as a virtual Serial Port used to upload the new BIN file The following instructions explain how to successfully accomplish this Erasing Process 1 Power up ChipworkX hardware 2 Press and hold Up Select and Down buttons keep holding and reset the system 3 Release the buttons when prompted to do so then you will see instructions about how to proceed 4 Press Up three times to proceed with the erasing process or press Down to abort Emergency Bootstrap access Use this method of access whenever something wrong happens during TinyBooter update process like uploading the wrong bin file and ChipworkX tinybooter is not accessible at all 1 Disconnect power 2 Remove the jumper placed on ChipworkX Module Rev 1 10 Page 20 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System TinyBooter and Firmvvare Update Connect povver Place the jumper back Connect USB cable Follow the same next steps for updating the TinyBooter Installing TinyBooter Updater USB Driver 1 After erasing serial DataFlash and NOR Flash successfully following the previous steps 2 Power up ChipworkX hardware 3 Connect USB cable to your PC then Windows will as
10. K KKKKKKAKRKKKKKKKKAKkAEKKKkKEKRKEkKEKKKKREKRKKKKKAKRKKKKKRKKKEkkkkkkkkkk SDK Version 1 0 3 April 02 2010 Version Info Firmware Tinybooter if applicable and libraries are compatible for each SDK release and they may not work with previous releases Make sure to update all your software components including firmware and library assemblies Otherwise your managed application will not run at all or run incorrectly eUSBizi FEZ Mini FEZ Domino V 4 0 1 0 eEMX V 4 0 1 0 TinyBooter V 4 0 1 0 eChipworkxX V 4 0 1 0 TinyBooter V 4 0 1 0 GHI NETMF Library V 4 0 7 0 The easiest way to verify the version numbers on ChipworkX Development System is to Rev 1 10 Page 19 of 26 www ghielectronics com GHI Electronics _LLC ChipvvorkX Development System TinyBooter and Firmvvare Update read them on ChipvvorkX s display On system boot up ChipvvorkX firmvvare version number is printed out on second line of the screen Ch 1 D SBi L x2 Ul anased hear Mara Unmanaged size Waiting for debus commands To read TinyBooter version number all you have to do is to access TinyBooter Press and hold Up and Down buttons on system boot up then release the buttons when you see TinyBooter Mode on ChipworkX s display The version number is right after that line 4 2 TinyBooter Update using bootstrap loader The user can update Tinybooter using Tinybooter Updater included with G
11. Resources Files bytes 24 bytes 120 bytes 336 bytes 1210 bytes 6451 bytes 5262 bytes 22674 bytes Resources Resources Data Strings Signatures ByteCode Base Address Size Time Stamp 410 elements 1381 elements 6 elements amp elements 5 elements 42 elements Checking ChipworkX firmware and TinyBooter Version At this point and before proceeding it is important to check if you need to update your ChipworkX firmware When you download a new SDK it comes with new firmware that needs to be sent to ChipvvorkX Please see system update section at the end Rev 1 10 Page 14 of 26 VVVVVV ghielectronics com GHI Electronics _LLC ChipvvorkX Development System Getting Started 2 4 Deleting The Deployed Proyect User can always over deploy the current application project on ChipvvorkX by deploying the newer application from Visual C but in some cases user might need only to delete the current application this can be accomplished using MFDeploy tool explained before Open MFDeploy choose USB and ChipvvorkX from device list and ensure you get positive response vvhen pinging Then click the erase button BE NET Micro Framework Deployment Tool Target Options Plug in Help Device USB Image File Base Address Size Time Stamp Emergency user application code deletion n some cases user needs to delete the application because it is locking up the device
12. atch file to your desktop and run it from there 4 The script will run to upload the new TinyBooter bin file to serial DataFlash This process takes several seconds to complete 5 When it is done ogfile log will be created and opened using notepad automatically It contains information about the updating process Make sure the end of the file says Sent file amp memory area content match exactly The following is an example ogfile log of a successful update 4 logfile log Notepad File Edit Format View Help I waiting I TCL platform Windows NT I SAM BA CDC 2 9 windows I Retrieved from command line I argv COM2 I argv 1 s I argv 2 TinyBooterLoader t I Connection COM24 7 1 I Board chi I Traces Level I target handle Ti 1e2a9dcc0 Read device Chip ID at Oxfffff240 get 0x019703a0 I Found processor chipworkx chip ID 0x019703a0 I External RAM Settings extRamvdd 1 extRamType 0 extRamDataBuswidth 32 extDDRamMode1 0 I Loading applet isp extram 5 bin at address 0x301000 I Memory Size 0x4000000 bytes I Buffer address 0x302254 I Buffer size 0x0 byt I Applet initialization done I External RAM initialized I Command line mode Execute script file TinyBooterLoader tc1 I I GHI Electronics Chipworkx TinyBooter updater Script I I Enable DataFlash I DATAFLASH Init trace le
13. hed execution so fast that we didn t see much We want to debug the code now Debugging means that you are able to step in the code and see what it is doing This is one of the greatest values of NETMF This time use F11 instead of F5 this will step in the application instead of just running it This will deploy the application on the emulator and stop at the very first line of the code This is indicated by the yellow arrow Hnamespace HFConsoleipplicationl public class Proqram ad Sample Emulator i Insert Eject public static void M Debug Print Amaj Rev 1 10 Page 9 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Getting Started C applications always start from a method called Main and this is where the arrow had stopped Press F11 again and the debugger vvill run the next line of code vvhich is the line you changed before You probably have guessed it right this line vvill print Amazing to the debug window The debug window is the output window on Visual express Make sure Output window is visible like explained earlier and press F11 one more time Once you step on that line you will see the word Amazing Showing in the output window public static void Maini Debug Print Amazing Output IX Show output from Debug gi amp Microsoft 5POT Emulator Sample SampleEmulator exe Micrnaoft 5POT Emulator BSample Sample
14. irst time you plug the system to your PC then windows will ask for drivers Direct windows to the GHI NETMF interface driver available in GHI NETMF SDK under USB Drivers Folder Important Note The development system with the many peripherals such as the TFT display requires relatively high power So make sure that you connect to a direct USB port Rev 1 10 Page 11 of 26 www ghielectronics com GHI Electronics _LLC ChipvvorkX Development System Getting Started at your PC or to a povvered USB hub or the board might not function correctly due to the insufficient supplied povver f you can not provide a USB port vvith good povver or you are not sure you can connect external power directly to the development system MFDeploy can Ping Before vve use the hardvvare let us make sure it is properly connected The NETMF NET Micro Framevvork SDK comes vvith a softvvare from Microsoft called MFDeploy There are many good uses for MFDeploy but for now we only need it to ping the device Basically ping means MFDeploy will say Hi to the device and then checks if the device will respond with Hi This is to make sure the device is connected properly and communication has no issues Open MFDeploy and connect ChipworkX using the included USB cable to your PC If this is the first time you plug in ChipworkX Windows will ask for drivers Supply the driver from the SDK folder and wait until windows is finished B
15. k for driver INF file 4 The driver file is located in the following path GHI NETMF SDK ChipworkxX Firmware TinyBooter Updater USB Tinybooter Updater Driven 5 Important Note for Windows 7 users only Windows 7 installs the driver automatically but it mistakenly considers ita GPS camera device Although the name is wrong the driver is OK and you may proceed with the steps 6 After Windows is done installing the driver you will see a new serial port COM port in your system It will take the first available COM port number e g COM5 7 This port is used by TinyBooter Updater script to upload the new finybooter bin file to serial DataFlash or it can be used to access the processor using Atmel tool SAM BA sam ba_cdc_2 9 xp_vista exe to manually upload bin files to serial DataFlash Updating TinyBooter 1 After installing TinyBooter Updater USB Driver and recognizing the new COM port number open command prompt and go to the following folder GHI NETMF SDK Chipworkx Firmware TinyBooter Updater 2 Run the following command to run the script ChipworkX TinyBooter Updater bat COMx where x is the number of newly created Serial Port See example below Rev 1 10 Page 21 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System TinyBooter and Firmvvare Update 3 When you run the batch file if you get an Access Denied message from Windows Try to run the batch file as an Administrator or copy the b
16. or blocking the USB debugging interface but Visual C or MFDeploy tool does not help here and can not communicate with the device In this case you should access The Tinybooter mode by pressing and holding Up and Down buttons on system bootup you will see Tinybooter on the screen release the buttons the Erase the application code using MFDeploy as explained earlier Rev 1 10 Page 15 of 26 VVVVVV ghielectronics com GHI Electronics LLC ChipvvorkX Development System Assemblies vvith ChipvvorkX Profect 3 Assemblies VVith ChipvvorkX Proyect 1 VVhat are Assemblies Hardware Software features are accessed through Managed code using C Classes with their members such as methods properties and variables On ChipworkX you may neeed assemblies from 2 sources Standard Assemblies NET Micro Framework SDK includes pre compiled assemblies that contain the managed code of various classes for hardware features such as Debug Class that you ve just used in the example to print the string Amazing using the Print Method Users do not see the source code of these classes but can use these classes by simply adding the relevant assemblies to the Visual C project NET Micro Framework library examples e Microsoft SPOT Hardware e Microsoft SPOT Native System lO Classes are described is in NET Micro Framevvork SDK documentation vvhich also includes information about the required assemblies GHI NETMF assemblies ChipworkX hard
17. orics ChowadeX SDI Fimwvare ER 7 Loading the files takes about a minute On completion the firmware will execute Double check the version number to make sure the correct firmware is loaded 8 Loading new firmware will not erase the deployed managed application If you need to erase the managed application click Erase Rev 1 10 Page 24 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System VVhat is next 5 VVhat is Next There are many documents and resources that helps you out with ChipvvorkX and NET Micro Framevvork ChipvvorkX User Manual ChipvvorkX downloads page on www ghielectronics com GHI blog is always a good place to visit http tinyclr blogspot com The Micro Framework Project website is an excellent resource http www microframeworkprojects com A good and free eBook to continue learning about C is available at http www programmersheaven com 2 CSharpBook Jens Kuhner excellent book on NET Micro Framework http www apress com book view 9781430223870 USB complete is an excellent book on USB http www l vr com usbc htm NET Micro Framework s main page on Microsoft s website http www microsoft com netmf NET Micro Framework Community http www netmf com Rev 1 10 Page 25 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Legal Notice Legal Notice Licensing ChipworkX Module is fully licensed for commercial u
18. s ip GHI NETMF SDK msi mportant Readme tbdt E Pictures iz Music More Rev 1 10 Page 5 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Getting Started LIF peer Lu VE Pee PP be T setup exe T setup GHI NETMF SDK Welcome to the GHI NETMF SDK Setup Wizard Q The installer will guide you through the steps required to install GHI NETMF SDK on your computer WARNING This computer program iz protected by copyright law and international treaties Unauthorized duplication or distribution of this program or any portion of it may result in severe civil r criminal penalties and will be prosecuted to the masimum extent possible under the law Cancel 2 2 The Emulator NETMF includes an emulator that allows running application right on the PC For our first project we will use the emulator to run a very simple application Create a Project Open Visual C express and from the menu select file gt New Project The wizard now should have Micro Framework option in the left menu Click on it and from the templates select Console Application Rev 1 10 Page 6 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System New Project Proyect types Visual C Micro Framework Class Library Console Application My Templates Search Online Te MFCon soleApplication1 SN Device Em
19. se The Module price covers the commercial use of ChipworkX Module with NET Micro Framework Disclaimer INNO EVENT SHALL GHI ELECTRONICS LLC OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS PRODUCT EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE SPECIFICATIONS ARE SUBJECT TO CHANGE WITHOUT ANY NOTICE GHI ELECTRONICS LLC LINE OF PRODUCTS ARE NOT DESIGNED FOR LIFE SUPPORT APPLICATIONS ChipworkX is a Trademark of GHI Electronics LLC NET Micro Framework Visual Studio MFDeploy Windows Vista Windows SideShow are registered or unregistered trademarks of Microsoft Corporation Other Trademarks and Registered Trademarks are Owned by their Respective Companies Rev 1 10 Page 26 of 26 www ghielectronics com
20. ulator Getting Started Window Application Click the OK button and you will have a new project that is ready to run The project has only one C file called Program cs which contains a few lines of code The file is shown in Solution Explorer window If this window is not showing then you can open it by clicking View gt Solution Explorer from the menu using System using Microsoft SPOT namespace MFConsoleApplication1 public class Program public static void Main Debug Print Resources GetString Resources StringResources String1 For simplicity change the code to make it look like the listing below Rev 1 10 Page 7 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Getting Started using System using Microsoft SPOT public class Program public static void Main Debug Print Amazing Selecting Transport Interface Do not worry if you do not understand the code We will explain it later For now we want to run it on the emulator Let us make sure you have everything setup properly Click on Project gt Properties from the menu In the new showing window we want to make sure we select the emulator On the left side tabs select NET Micro Framework and make sure the window looks like the image below Transport Emulator Device Microsoft Emulator
21. vel I Loading applet dataf lash chipworkx bin at address 0x20000000 00 bytes bytes I Applet 15 er ce done I Send File TinyBooterLoader bin at address 0x00000 GENERIC Sendrile 7 bin at address 0x0 I File size 0x20000 7 0x20000 bytes at 75 addr 0x20002A40 0x20000 bytes written by 5 I Temp file C Users Joe sam ba I Compare File TinyBooterLoader bin with memory at address 0x00000 for 131072 byte s I Read File c Users Joe sam ba testcomparerile at address 0x00000 GENERIC e C Users 20e sam ba testCompareF11e 0x20000 bytes from address 0x0 I eading 0x20000 bytes at 0x0 buffer addr 0x20002A40 sent file amp Memory area content address 0x00000 size 131072 bytes match exactly I Script Completed in ee er 6 Reset the system and then Tinybooter will execute Make sure to update TinyCLR firmware 7 The system is now ready to deploy new managed applications 4 3 ChipworkX Firmware Update Through TinyBooter In the following steps we will update ChipworkX firmware with Tinybooter and MFDeploy help 1 First install the latest GHI NETMF SDK which includes the latest ChipworkX firmware and TinyBooter binary files You probably already did when you updated the TinyBooter in the previous section Rev 1 10 Page 22 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Tin
22. ware adds more functionality on top of the NET Micro Framework For example hardware peripherals such as CAN Analog converters PWM etc are not directly supported in NET Micro Framework However they can be easily used with ChipworkX The assembly provides access to hardware peripherals storage solutions USB connectivity and many other features The assembly files and their documentation are included with GHI NETMF SDK These assembly files must be added to your Visual Studio project in order to be able to use the extra features ChipworkX uses the same assemblies available for EMX and USBizi This also means you can switch from ChipworkX to USBizi to EMX without the need to change any line of code GHI NETME library examples GHlElectronics NETMF Hardware e GHlElectronics NETMF System e GHlElectronics NETMF Net Rev 1 10 Page 16 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System Assemblies vvith ChipvvorkX Profect Adding Assemblies to Visual C Project Adding a library is pretty simple 1 Go to the Menu and select project gt Add Reference Rehr iri Dep uy Clear Add Add Referente Add Serviz Re erence Wis Class Pizqrem Set as StartUp Project 2 Choose the library that you need then click OK were EMX_EMX ca Add Reference NET Projects Recent Browse A Component Name Version GHlElectronics N
23. yBooter and Firmvvare Update 2 nsure there is no need to update the TinyBooter or you already did 3 Press and hold the Up and Down buttons then press and release reset to access TinyBooter mode You will see on the ChipworkX s TFT display 4 Run MFDeploy and select USB from the Device list you should see ChipworkX_ChipworkX in the dropdown 2 NET Micro Framework Deployment Tool Target Options Plug in Help Device USB Chipwork A _Chipwork A Image File 5 Check the communication between MFDeploy and TinyBooter by pinging the device Press Ping and you should see this message 88 NET Micro Framework Deployment Tool Target Options Help Device USB See gt Image File kd Browse Deploy Pinging TinyBooter Bootloader build info Microsoft Copyright Ci Microsoft Corporation All rig 6 Now we can lead MFDeploy to the new ChipworkX firmware files Click Browse and direct MFDeploy to the firmware HEX files These can be found under ChipworkX firmware folder in the SDK The other files with sig extension must exist in the same folder as the HEX files Select ALL of the HEX files at once and start deploying the firmware by pressing Deploy Rev 1 10 Page 23 of 26 www ghielectronics com GHI Electronics LLC ChipvvorkX Development System TinyBooter and Firmvvare Update 88 NET Micro Framework Deployment Tool Target Options Help Device Image File C Program Fles d GHI Hech
24. z NET Micro Framework Deployment Tool Target Options Plug in Help Device USB ChipworkX_ChipworkXx Image File Name ile Base Address Size Deploying to Hardware Now that we checked the hardware is working using MFDeploy we need to go back to Em Gee dalar Time Stamp Rev 1 10 Page 12 of 26 VVVVVV ghielectronics com GHI Electronics LLC ChipvvorkX Development System Getting Started Visual C express From the project properties select USB for transport and ChipvvorkX for the device Make sure your setup looks similar to the image belovv Application Deployment Build Transport qnam m m n m n n n n n n m nnnn n n n n n n n n n n n n n n n n n n n n n n n n n n n m m n n m n n m n n m n n m n m m n m m m Build Events Debuq Device Resources Chipvvorke Chipvvorke bi Reference Paths E Generate native stubs for internal methods MET Micro Framework Root name for native stub files Create stub files in this directory Allow a couple seconds to ensure the hardware has completed the boot up process then press F5 we will now send our simple application to ChipworkX and it will run right inside the real hardware Switching from emulator to real hardware is that simple Try the steps we tried with the emulator like setting breakpoints and using F11 to step in the code Note that Debug Print will still forward the debug messages from
Download Pdf Manuals
Related Search
Related Contents
focus HAND Manuel d`utilisation SOFTWARE OPTAC Manual do Utilizador Canada le manuel (*) Wiley Trustworthy Compilers Wassertester WA – 300 to manual. CDX-GT215C - Sony Europe REACTION Manuel français.cdr MPOS50_User Manual_Rev.1.2 Copyright © All rights reserved.
Failed to retrieve file