Differences
This shows you the differences between two versions of the page.
projects:mork [2015/03/22 18:56] darron |
projects:mork [2017/01/12 22:44] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Mork Microchip PIC32MX ICSP ==== | ||
- | <wrap right> | ||
- | {{: | ||
- | \\ \\ | ||
- | {{: | ||
- | \\ \\ | ||
- | {{: | ||
- | </ | ||
- | Mork is adaptation of [[: | ||
- | |||
- | Both STM32 boards are inexpensive boards which don't cost much more than the [[: | ||
- | |||
- | One complication though for the [[: | ||
- | |||
- | The [[: | ||
- | |||
- | The [[: | ||
- | |||
- | === Licence === | ||
- | |||
- | Mork is licensed under same terms as [[: | ||
- | |||
- | === Credits === | ||
- | |||
- | This software was written by Darron M Broad and is an adaptation of [[: | ||
- | |||
- | |||
- | === Install === | ||
- | |||
- | Mork utilises [[: | ||
- | |||
- | When prepared we can fetch and build Mork. | ||
- | < | ||
- | hg clone http:// | ||
- | cd Mork | ||
- | make | ||
- | </ | ||
- | |||
- | Now we can install the firmware. In this example I am using [[: | ||
- | < | ||
- | make -f Makefile.vcc-gnd st-flash | ||
- | </ | ||
- | |||
- | If you need to use [[: | ||
- | < | ||
- | make -f Makefile.vcc-gnd stm32flash | ||
- | </ | ||
- | |||
- | You should follow the advice on the [[: | ||
- | |||
- | For the [[: | ||
- | < | ||
- | make -f Makefile.maple_mini dfu-util | ||
- | </ | ||
- | |||
- | === Set up === | ||
- | |||
- | Connecting to the target is simple, the following schematic gives an overview of the ICSP requirements. | ||
- | |||
- | {{: | ||
- | |||
- | The pins on the [[: | ||
- | |||
- | === Program & verify === | ||
- | |||
- | When waiting for instructions Mork will blink the LED quickly and leave the target running. | ||
- | |||
- | Here I will use [[: | ||
- | |||
- | < | ||
- | pic32prog -d / | ||
- | Programmer for Microchip PIC32 microcontrollers, | ||
- | Copyright: (C) 2011-2014 Serge Vakulenko | ||
- | Adapter: STK500v2 Bootloader | ||
- | | ||
- | Processor: Bootloader | ||
- | Flash memory: 512 kbytes | ||
- | Boot memory: 12 kbytes | ||
- | Data: 55500 bytes | ||
- | Erase: done | ||
- | Program flash: ######################################################### | ||
- | | ||
- | | ||
- | Verify boot: ## done | ||
- | Rate: 10814 bytes per second | ||
- | </ | ||
- | |||
- | You may notice the LED blink more slowly during programming and slower still during verify. After the process is completed, the target runs again and Mork waits for further instructions. | ||
- | |||
- | === Windows === | ||
- | |||
- | If you want to use this device in Windows then the usbser.sys driver must be loaded. | ||
- | |||
- | If the device is unrecognised (XP) install using the stmcdc.inf file in the inf sub-directory of the project. | ||
- | |||
- | For Windows Vista and Windows 7 a STMicroelectronics Virtual COM Port will be installed via Windows update. | ||
- | |||
- | Later versions of Windows are not available to test. |