AN211 AN211 CMT2380F16 Writer Operation Guide Overview The CMT2380F16 Writer is developed to improve production programming efficiency. This document provides basic operational guidance CMT2380F16 Writer users. The CMT2380F16 supports the following operations. Chip online programming operation Chip offline programming operation ...
1.1 Hardware Introduction The CMT2380F16 Writer is a programmer designed for the CMT2380F16 chip applying USB interface for programming. It can be programmed online using USB bus power, or programmed offline using an external power supply. Moreover , multiple units can be connected together for one-click batch programming (or for batch programming in factory).
Figure 3. Online Programming Connection The online programming operation flow is described in the below sections 2.1.1 Chip Model Selection Select chip model CMT2380F16(3.3V) is selected automatically as shown in the below figure. Figure 4. Select Chip Model 2.1.2 Load File ...
Page 6
Select the file to be programmed. Click Open to load the files to be programmed. If a .MPJ file is loaded, users can click Auto button to perform Auto operation. See Section 2.1.5 for details. Figure 7. Load File Rev 0.5 | 6/24 www.cmostek.com...
If users do not need to program ISP code, please sip this step. CMOSTEK-provided ISP code Click Insert ISP Code. Select CMOSTEK-provided ISP code then click Insert button. Figure 8. Insert ISP Code Insert User-defined ISP code 1) Click on Insert ISP Code.
Page 8
The function of ISP code is similar to the STM32 bootloader. The chip supports U1 and ICE programming. The ISP code will occupy some Flash space. After the ISP code is inserted, the software will set ISP space autompatically with the HWBS flag ticked on. Rev 0.5 | 8/24 www.cmostek.com...
Click Auto button, then select the desired operations, and click Run after then. When one IC programming is done, clock Run again for programming another IC. In general, users can ticked on the the options as shown in the below figure. Rev 0.5 | 9/24 www.cmostek.com...
After clicking Save, the project file information window will pop up, where it can be printed or saved as a picture. When opening this project file for programming later, users can checking the printed file information or the saved image to confirm whether the project file is correct. Rev 0.5 | 10/24 www.cmostek.com...
As shown in the below figure, if a chip is not encrypted, users can read Flash, ISP space, IAP space and Setting information by clicking Dump Target button. ISP space reading information IAP space reading information Watchdog reading IC option reading information information Figure 14. Read Target Chip Information 2.2 Offline Programming Operation Rev 0.5 | 11/24 www.cmostek.com...
The specific steps are the same as in section 2.1.1. 2.2.2 Load File The specific steps are the same as in section 2.1.2. 2.2.3 Insert ISP Code The specific steps are the same as in section 2.1.3. Rev 0.5 | 12/24 www.cmostek.com...
The maximum value of max counter is 65535. 3) Set the serial number (see Section 3 How to use the serial number for more details). 4) Click Download to download the code and hardware settings to the programmer Rev 0.5 | 13/24 www.cmostek.com...
The yellow light is on during programming. After programming completion, if successful, the green turns on and the buzzer will have one long beep, otherwise the red light turns on and the buzzer will have 10 short beeps. Press Auto key to start programming Figure 18. Press Auto Key to Start Programming Rev 0.5 | 14/24 www.cmostek.com...
4 bytes with a valid value range as 0x00000000~0xFFFFFFFF. automatic programming completes (see 2.2.6 Press ‘Auto’ in the programmer to start programming), the number set in the third step will be automatically increased by 1. area range is not used yet. Rev 0.5 | 16/24 www.cmostek.com...
Based on the setting in the below figure, after programming the second chip, the information stored in 0x3500~0x350F is as follows. Figure 22. Information in Code Buffer - 2 4 Special Consideration IAP Space Figure 23. IAP Space Rev 0.5 | 17/24 www.cmostek.com...
Page 18
When the following message shows up that means the U1 writer needs to be updated firmware. Please make sure the USB cable should NOT unplug during the updating process. Otherwise, The U1 writer will cause unrecoverable damaged. Figure 24. Firmware Upgrading Warning Rev 0.5 | 18/24 www.cmostek.com...
The ISP space is configured by the user through the programmer with ISP space ranging from 0 kbytes to 3.5 kbytes. As the IAP space and AP space of the CMT2380F16 are shared, apart from the ISP space, the rest of 8K space is the AP and IAP space.
Disable : Disable LVFWP ENROSC Enable : MCU will used the internal 6MHz oscillator Disable : MCU will used the external oscillator HWENW Enable : Automatically enable Watch-dog Timer by hardware when MCU is powered up Rev 0.5 | 20/24 www.cmostek.com...
Page 21
Disable : BOD0 can not trigger a RESET to CPU BO1REO Enable : BOD1 will trigger a RESET event to CPU on AP program start address Disable : BOD1 can not trigger a RESET to CPU NSWDT Rev 0.5 | 21/24 www.cmostek.com...
Page 22
AN211 Enable : Enable the WDT to run in power down mode Disable : Disable the WDT to run in power down mode Rev 0.5 | 22/24 www.cmostek.com...
AN211 6 Revise History Table 2. Revise History Records Version No. Chapter Description Date Initial version 2019-07-19 Rev 0.5 | 23/24 www.cmostek.com...
The material contained herein is the exclusive property of CMOSTEK and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of CMOSTEK. CMOSTEK products are not authorized for use as critical components in life support devices or systems without express written approval of CMOSTEK.
Need help?
Do you have a question about the CMT2380F16 and is the answer not in the manual?
Questions and answers