Warning: This method worked on my Shield Base rev. A board. It comes with no guarantees!
You need to build a simple circuitry to do this. you could do it like this:
- Breakout Board for FT232RL USB to Serial (provides USB to UART, 3.3V and 5V)
- Sytech Designs Expansion and Debug Module (breaks out a Go! Socket to normal pin headers)
- 7 female-female jumper cables
- A push button
- Go! Socket pin 1 to be connected to 3.3V
- Go! Socket pin 2 to be connected to 5V (labeled VCC on the breakout board)
- Go! Socket pin 3 to be connected to a button, which switches to 3.3V (to be able to enter Bootloader mode, the breakout board has two 3.3V pins. How convenient!)
- Go! Socket pin 4 to be connected to TX-O
- Go! Socket pin 5 to be connected to RX-I
- Go! Socket pin 10 to be connected to Gnd
To make it work stand-alone, follow these steps:
- Build the circuitry as mentioned above
- Download and install the STM32 and STM8 Flash loader demonstrator
- Hold the push button and put power to the circuitry. By pushing the button, you'll enable the bootloader mode
- Start the Flash Loader Demonstrator app, select the right COM-port and click.
- A message will say: "Target is readable. Click "Next" to proceed.". Do so.
- Select STM32F2_512K as target and click Next again.
Now you can both upload and download data to and from the chip. A warning though, the terms uploading and downloading are from the chips perspective. So if you upload, you're transferring data from the chip to your PC. - First, it's wise to backup the current firmware. Select Upload from device, click on the browse icon and select a location to store it to. As file type you could use .s19 files. You want to export it's full memory, so check everything, and click OK. Now click Next to store the firmware.
When it's done, you can just click Back to go back to the previous window. - Now, we can flash the module. Check Download to device and browse to the file. Now click Next again.
- After this is done, powercycle the module to release bootloader mode
Attached you'll find:
- The .NET Micro Framework firmware
NetduinoShieldBaseApplication.zip 5.32KB 64 downloads - A project template which helps using the right pins and some initialisation
NetduinoShieldBaseApplication.zip 5.32KB 64 downloads
You could place the attached project template into your project template folder (probably something like: %USERPROFILE%\Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual C#\Micro Framework)