Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
boards:mxchip [2015/01/06 13:35] darronboards:mxchip [2022/11/27 00:29] (current) – [Resources] darron
Line 11: Line 11:
 Whilst this module is relatively inexpensive, the development tools for the MICO O/S cost thousands. This makes the device practically useless for now. Whilst this module is relatively inexpensive, the development tools for the MICO O/S cost thousands. This makes the device practically useless for now.
  
-== Pinout ==+=== Pinout ===
 <code> <code>
      PB0                    PB1      PB0                    PB1
Line 53: Line 53:
 </code> </code>
  
-== Probe ==+=== Probe ===
 <code> <code>
 stm32flash -b 9600 /dev/ttyCP2102 stm32flash -b 9600 /dev/ttyCP2102
Line 71: Line 71:
 </code> </code>
  
-== Modes ==+=== Modes ===
 ^ BOOT PB1 ^  STATUS PB9 ^ Mode of operation | ^ BOOT PB1 ^  STATUS PB9 ^ Mode of operation |
 | 0         |0        | Factory mode    | | 0         |0        | Factory mode    |
Line 77: Line 77:
 | 1         |X        | Working mode| | 1         |X        | Working mode|
  
-== Firmware update mode ==+=== Firmware update mode ===
 The bootloader is entered by holding PB1 low and PB9 high. The bootloader is entered by holding PB1 low and PB9 high.
 <code> <code>
Line 100: Line 100:
 </code> </code>
  
-== Firmware update ==+=== Firmware update ===
 Minicom may be used to send a file using the ymodem protocol. Minicom may be used to send a file using the ymodem protocol.
  
Line 130: Line 130:
 </code> </code>
  
-== Flash memory map ==+=== Flash memory map ===
 ^Address   ^Function | ^Address   ^Function |
 |0x8000000 |Boot loader| |0x8000000 |Boot loader|
Line 138: Line 138:
 |0x80C0000 |RF driver| |0x80C0000 |RF driver|
  
-== Standalone demo ==+=== Standalone demo ===
  
-Install [[:tools:libopencm3|OpenCM3]] and build examples.+Install [[:tools:libopencm3|OpenCM3]].
  
-Enter ST ISP mode using BOOT0, RX and TX as show in the pinout above.+Install [[:tools:stm32flash|STM32Flash]].
  
-Nowbackup the chip and load standalone demo and run it.+Enter ST ISP mode using BOOT0RX and TX as shown in the pinout above. 
 + 
 +Fetch the demo and edit the Makefile, change the serial device to your host device (TTYISP).
 <code> <code>
 hg clone http://hg.kewl.org/pub/miniblink-emw hg clone http://hg.kewl.org/pub/miniblink-emw
 cd miniblink-emw cd miniblink-emw
 +vi Makefile
 +</code>
 +
 +Now, backup the chip, load standalone demo and run it.
 +<code>
 make backup make backup
 make stm32flash make stm32flash
 </code> </code>
  
-You can restore the MICO O/S from the emw3162.bin file, do not overwrite it.+You can restore the MICO O/S from the emw3162.bin file, do not overwrite it.\\ 
 +Eg. 
 +<code> 
 +stm32flash -w emw3162.bin -b 115200 /dev/ttyAMA0 
 +</code> 
 + 
 +===Resources=== 
 + 
 +[[https://www.st.com/resource/en/datasheet/stm32f205rg.pdf|MCU datasheet]] 
 + 
 +[[https://www.st.com/resource/en/reference_manual/cd00225773-stm32f205xx-stm32f207xx-stm32f215xx-and-stm32f217xx-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf|MCU reference manual]]