Our Cookies Policy
To make full use of www.electromaker.io, enjoy the personalised features and ensure the websites works to its full potential, your computer, tablet or mobile phone will need to accept cookies.
Our cookies don’t store sensitive information such as your name, address or payment details: they simply hold information about how you use our site so we can improve your experience and resolve any errors.
If you’d prefer to restrict, block or delete cookies from www.electromaker.io, or any other website, you can use your browser to do this. Each browser is different, so check the ‘Help’ menu of your particular browser (or your mobile phone’s handset manual) to learn how to change your cookie preferences.
Here’s a list of the main cookies we use, and what we use them for:
Electromaker – Login session
Google Analytics – Analytics
Twitter – Twitter Feed
Each web browser handles cookie management differently, please follow instructions for your chosen browser:
µCs can be programmed in many ways. There's the traditional JTAG debug probe, but it’s also usually possible to program via a serial port or other communication interface. There's a specification for this type of programming called Device Firmware Update, or DFU for short.
STmicroelectronics came with a version of DFU called DFUSE. I'm using it to program my custom board through USB. But to convert the file in *.dfu and load it you have to go through a lot of steps and clicks. This is really annoying when you're debugging a program.
My idea was to automate the process with a commandline executable that will be launched by KEIL IDE at the end of the build.
Your device is ready, let's setup the IDE to load automatically the program. Here I'm going to use Keil IDE. Open the project settings dialog in Project>Options for target 'XXX'. In the Output tab select create hex file. Build your project once and locate the *.hex file in your project directory.
Plug in your DFU device, make sure it's in DFU mode. If your driver is installed and the device connected, you should see a DFU device in your peripheral manager.
Congratulations Your IDE is now ready ! Build your program and check the Build Output, it should say "Upgrade Sucessful !".
Copy the contents of the Tools folder of the software package in the directory. Return in the projects settings dialog at the User tab. In the section Programs After Build/Rebuild activate Run#1 and browse to the load.bat file in the hex file directory.