Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
boards:mxchip [2015/01/06 02:33]
darron
boards:mxchip [2022/11/27 00:29] (current)
darron [Resources]
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 40: Line 40:
 MICO            ISP MICO            ISP
 ====            === ====            ===
-STATUS   PB9    TX      PA10 RX +STATUS   PB9    TX       PA10 RX 
-BOOT     PB1    RX      PA9  TX +BOOT     PB1    RX       PA9  TX 
-EASYLINK PB8    3V3 10K BOOT0+EASYLINK PB8    3V3 220R BOOT0
  
 SWD             JTAG SWD             JTAG
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 137: Line 137:
 |0x8060000 |Temporary  | |0x8060000 |Temporary  |
 |0x80C0000 |RF driver| |0x80C0000 |RF driver|
 +
 +=== Standalone demo ===
 +
 +Install [[:tools:libopencm3|OpenCM3]].
 +
 +Install [[:tools:stm32flash|STM32Flash]].
 +
 +Enter ST ISP mode using BOOT0, RX 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>
 +hg clone http://hg.kewl.org/pub/miniblink-emw
 +cd miniblink-emw
 +vi Makefile
 +</code>
 +
 +Now, backup the chip, load standalone demo and run it.
 +<code>
 +make backup
 +make stm32flash
 +</code>
 +
 +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]]