This project allows you to create a custom installer for your open flash loader in 3 steps. This allows you to distribute a custom installer that automaticly installs the flash loaders in the correct location without user intervention.
- Windows (for now)
- Visual studio
- The Microsoft Visual Studio Installer Projects plugin
- J-link >= V7.80
- Open flash loader executable (can be created using the OFL template)
SEGGER J-Link uses xml files to add support for external loaders. The xml file configures the follwing:
- The target Microcontroller for the loader
- The address the memory is located
- What executable file to load
- The name it shows up as in the J-Link software
Example xml file for the LPC1756 is25lq040b open flash loader.
<DataBase>
<Device>
<ChipInfo Vendor="NXP" Name="LPC1756" />
<FlashBankInfo Name="NOR Flash" BaseAddr="0xA0000000">
<LoaderInfo Name="SPI flash loader" MaxSize="0x01000000" Loader="flash_loader.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />
</FlashBankInfo>
</Device>
</DataBase>
More info can be found at https://wiki.segger.com/J-Link_Device_Support_Kit
How to configure the project to include your open flash loaders
- Open the visual studio project. (The project should open on the "File System" page. If it does not right click on the project name and "view" -> "File System")
- Right click "Application Folder" -> "Add" -> "File"
- Add all the flash loader executables
- Add flash loader xml
- Build project
Optional steps if you want to change the manufacturer and productname (these steps should be done before building):
- Click on the project name
- Change the Author, Manufacturer, URl, productName in the properties
Example with 1 flash loader and a xml file
Example for the LPC175x SPI NOR flash open flash loader. Automaticly selects the default location J-Link uses for flash loaders.