Portable DSP programmer and programming method based on JTAG
By designing a portable DSP programmer and using the JTAG interface and SPI FLASH memory module, the problems of unportability and storage limitations of traditional DSP programmer are solved, achieving portability, small size, multi-program support and flexible programming functions.
Patent Information
- Application Number
- CN202111063465.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-10
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-09-10
AI Technical Summary
Traditional DSP programmers are not portable, require additional power supply and additional storage, and cannot store multiple programs.
A portable DSP burner based on JTAG is designed, including a main control module, a power module, a USB module, a conversion module, an interface module and a storage module. It is connected to the computer through the Type-C interface and uses the second JTAG interface to communicate with the computer to be burned. Recording chip connection, supports multiple program burning and multiple changes of program content, uses SPI FLASH storage module to store multiple programs, and displays the burning status through the human-computer interaction interface.
The portable DSP programmer is small in size, light in weight, easy to carry, does not require additional power supply, supports multiple program storage and flexible program selection, is suitable for program burning in a variety of scenarios, and does not require changes to existing simulations. The device burns the circuit or the target chip to boot.
Smart Images

Figure CN113778470B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of programming, and in particular to a portable DSP programmer based on JTAG and a programming method. Background Art
[0002] Traditional DSP burning methods mainly include burning with an emulator or burning with a host computer through serial ports and other communications. These traditional burning methods require a computer, which is not easy to carry. Alternatively, a USB flash drive is used as a carrier to load the program into the USB flash drive in advance and burn it by pressing buttons. Only one program can be loaded at a time and an additional battery is required for power supply. Burning based on the serial port requires changing the target chip boot mode and adding a target board communication interface. Summary of the invention
[0003] The invention provides a portable DSP burner based on JTAG and a burning method, the purpose of which is to solve the problem that a traditional burner is not convenient to carry, requires additional power supply and additional storage, and cannot store multiple programs.
[0004] In order to achieve the above object, an embodiment of the present invention provides a portable DSP burner based on JTAG, comprising:
[0005] Main control module;
[0006] A power module, a first end of the power module is electrically connected to a first end of the main control module;
[0007] A USB module, a first end of the USB module is electrically connected to a second end of the power module;
[0008] a conversion module, wherein a first end of the conversion module is electrically connected to a second end of the main control module, a second end of the conversion module is electrically connected to a third end of the power module, and a third end of the conversion module is electrically connected to a second end of the USB module;
[0009] an interface module, wherein a first end of the interface module is electrically connected to a third end of the main control module, and a second end of the interface module is electrically connected to a fourth end of the power module;
[0010] A storage module, wherein a first end of the storage module is electrically connected to a fourth end of the main control module, and a second end of the storage module is electrically connected to a fifth end of the power module.
[0011] The embodiment of the present invention also provides a JTAG-based portable DSP programmer programming method, comprising:
[0012] Step 1: Connect the programmer to the computer through the Type-C interface, and connect the programmer to the chip to be programmed through the second JTAG interface.
[0013] Step 2, the computer sends serial port handshake information to the burner, and determines whether the burner receives the serial port handshake information. When the burner receives the serial port handshake information, the computer loads the program to the burner;
[0014] Step 3, when the programmer does not receive the serial port handshake information, it determines whether the programmer detects the programming control signal. When the programmer does not detect the programming control signal, it jumps to step 2. When the programmer detects the programming control signal, the programmer programs the chip to be programmed.
[0015] The above scheme of the present invention has the following beneficial effects:
[0016] The JTAG-based portable DSP burner and burning method described in the above embodiments of the present invention support the burning of multiple programs, support multiple changes to program content, support the burning of different versions of the same program, support engineers to define programs, are small in size, light in weight, easy to carry, do not require additional power supply, do not require additional storage, can store multiple programs, and can flexibly select the burning program during burning. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is the overall structural diagram of the present invention;
[0018] Figure 2 It is a structural block diagram of the main control module of the present invention;
[0019] Figure 3 It is a structural block diagram of the power module of the present invention;
[0020] Figure 4 This is a structural block diagram of the USB module of the present invention;
[0021] Figure 5 It is a structural block diagram of the conversion module of the present invention;
[0022] Figure 6 It is a structural block diagram of the interface module of the present invention;
[0023] Figure 7 It is a structural block diagram of the storage module of the present invention;
[0024] Figure 8 It is the overall flow chart of the present invention;
[0025] Fig. 9 Loading flow chart for the program of the present invention;
[0026] Fig.10 It is a flow chart of program burning of the present invention.
[0027] [Description of Reference Numerals]
[0028] 1-main control module; 2-power module; 3-USB module; 4-conversion module; 5-interface module; 6-storage module; 7-main control chip; 8-external passive crystal oscillator unit; 9-first capacitor; 10-second capacitor; 11-crystal oscillator; 12-boot unit; 13-first resistor; 14-third capacitor; 15-reset unit; 16-first conversion switch; 17-second resistor; 18-third resistor; 19-fourth resistor; 20-fifth resistor; 21-sixth resistor; 22-seventh resistor; 23-eighth resistor; 24-ninth resistor; 25-first JTAG interface; 26-first electrolytic capacitor ;27-the fourth capacitor;28-forward low-dropout regulator;29-the second electrolytic capacitor;30-the fifth capacitor;31-the first light-emitting diode;32-the tenth resistor;33-capacitor unit;34-the sixth capacitor;35-Type-C interface;36-the first inductor;37-PL2303SA chip;38-the eleventh resistor;39-the twelfth resistor;40-the thirteenth resistor;41-the second JTAG interface;42-the human-computer interaction interface;43-the fourteenth resistor;44-button;45-the second light-emitting diode;46-the third light-emitting diode;47-the fifteenth resistor;48-SPI FLASH interface;49-the sixteenth resistor;50-the seventeenth resistor. DETAILED DESCRIPTION
[0029] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0030] Aiming at the problems that the existing burner is not convenient to carry, needs extra power supply and extra storage, and cannot store multiple programs, the present invention provides a portable DSP burner based on JTAG and a burning method.
[0031] like Figures 1 to 7 As shown, an embodiment of the present invention provides a JTAG-based portable DSP burner, including: a main control module 1; a power module 2, wherein a first end of the power module 2 is electrically connected to a first end of the main control module 1; a USB module 3, wherein a first end of the USB module 3 is electrically connected to a second end of the power module 2; a conversion module 4, wherein a first end of the conversion module 4 is electrically connected to a second end of the main control module 1, a second end of the conversion module 4 is electrically connected to a third end of the power module 2, and a third end of the conversion module 4 is electrically connected to a second end of the USB module 3; an interface module 5, wherein a first end of the interface module 5 is electrically connected to a third end of the main control module 1, and a second end of the interface module 5 is electrically connected to a fourth end of the power module 2; a storage module 6, wherein a first end of the storage module 6 is electrically connected to a fourth end of the main control module 1, and a second end of the storage module 6 is electrically connected to a fifth end of the power module 2.
[0032] The portable DSP burner and burning method based on JTAG described in the above embodiment of the present invention, the main control module 1 is responsible for communicating with the computer when loading the program, storing the program according to the program number, and managing the program storage space. The main control module 1 is responsible for communicating with the chip to be burned when burning the program, selecting the corresponding program according to the burning control signal, and controlling the second light-emitting diode 45 and the third light-emitting diode 46 to display the program burning status; the power supply module 2 takes power from the 5V of the USB module 3 when loading the program, and converts the 5V voltage into the power supply through the forward low-dropout regulator 28. The voltage is converted to 3.3V to power other modules. When burning the program, the power module 2 takes the 3.3V voltage from the second JTAG interface 41 to power other modules. The storage module 6 uses a storage medium that can save data when power is off and can be erased and programmed multiple times, and the space is sufficient to store multiple programs. The interface module 5 includes the second JTAG interface 41 and the human-computer interaction interface 42 to provide power for the burner. The USB module 3 is connected to the computer to power the burner. The conversion module 4 converts the USB signal into a serial port signal acceptable to the main control chip 7.
[0033] The main control module 1 includes: a main control chip 7; an external passive crystal oscillator unit 8, wherein the external passive crystal oscillator unit 8 includes a first capacitor 9, a second capacitor 10 and a crystal oscillator 11, wherein the first end of the first capacitor 9 is electrically connected to the x1 end of the main control chip 7, the first end of the second capacitor 10 is electrically connected to the x2 end of the main control chip 7, the second end of the second capacitor 10 is electrically connected to the second end of the first capacitor 9 and the ground end of the main control chip 7, respectively, the first end of the crystal oscillator 11 is electrically connected to the first end of the second capacitor 10, and the second end of the crystal oscillator 11 is electrically connected to the second end of the second capacitor 10. The first end of the first capacitor 10 is electrically connected to the second end of the first capacitor 10, the third end of the crystal oscillator 11 is electrically connected to the first end of the first capacitor 9, and the fourth end of the crystal oscillator 11 is electrically connected to the second end of the first capacitor 9; a guiding unit 12, the guiding unit 12 includes a first resistor 13 and a third capacitor 14, the first end of the first resistor 13 is electrically connected to the VDD3V3 end of the main control chip 7, the first end of the third capacitor 14 is electrically connected to the second end of the first resistor 13 and the nRST end of the main control chip 7, respectively, and the second end of the third capacitor 14 is electrically connected to the second end of the second capacitor 10;The reset unit 15 includes a first conversion switch 16, a second resistor 17, a third resistor 18, a fourth resistor 19, a fifth resistor 20, a sixth resistor 21, a seventh resistor 22, an eighth resistor 23 and a ninth resistor 24, wherein a first end of the first conversion switch 16 is electrically connected to a BOOT0 end of the main control chip 7, a second end of the first conversion switch 16 is electrically connected to a BOOT1 end of the main control chip 7, a third end of the first conversion switch 16 is electrically connected to a BOOT2 end of the main control chip 7, a fourth end of the first conversion switch 16 is electrically connected to a BOOT3 end of the main control chip 7, a first end of the second resistor 17 is electrically connected to a fifth end of the first conversion switch 16, a second end of the second resistor 17 is electrically connected to a first end of the first resistor 13, a first end of the third resistor 18 is electrically connected to a sixth end of the first conversion switch 16, a second end of the third resistor 18 is electrically connected to a second end of the third capacitor 14, a first end of the fourth resistor 19 is electrically connected to the The seventh end of the first conversion switch 16 is electrically connected, the second end of the fourth resistor 19 is electrically connected to the second end of the second resistor 17, the first end of the fifth resistor 20 is electrically connected to the eighth end of the first conversion switch 16, the second end of the fifth resistor 20 is electrically connected to the second end of the third resistor 18, the first end of the sixth resistor 21 is electrically connected to the ninth end of the first conversion switch 16, the second end of the sixth resistor 21 is electrically connected to the second end of the fourth resistor 19, the first end of the seventh resistor 22 is electrically connected to the tenth end of the first conversion switch 16, the second end of the seventh resistor 22 is electrically connected to the second end of the fifth resistor 20, the first end of the eighth resistor 23 is electrically connected to the eleventh end of the first conversion switch 16, the second end of the eighth resistor 23 is electrically connected to the second end of the sixth resistor 21, the first end of the ninth resistor 24 is electrically connected to the twelfth end of the first conversion switch 16, and the second end of the ninth resistor 24 is electrically connected to the second end of the seventh resistor 22;The first JTAG interface 25 has a first end electrically connected to the TMS0 end of the main control chip 7, a second end electrically connected to the TRST0 end of the main control chip 7, a third end electrically connected to the TDI0 end of the main control chip 7, a fourth end electrically connected to the second end of the ninth resistor 24, a fifth end electrically connected to the second end of the second resistor 17, and a seventh end electrically connected to the ninth resistor 24. The TDO0 end of the master control chip 7 is electrically connected, the eighth end of the first JTAG interface 25 is electrically connected to the fourth end of the first JTAG interface 25, the ninth end of the first JTAG interface 25 is electrically connected to the TCK0 end of the master control chip 7, the tenth end of the first JTAG interface 25 is electrically connected to the eighth end of the first JTAG interface 25, the eleventh end of the first JTAG interface 25 is electrically connected to the ninth end of the first JTAG interface 25, and the twelfth end of the first JTAG interface 25 is electrically connected to the tenth end of the first JTAG interface 25.;
[0034] The JTAG-based portable DSP burner and burning method described in the above embodiment of the present invention, the main control module 1 includes the main control chip 7, the external passive crystal oscillator 11 unit 8, the reset unit 15, the boot unit 12 and the first JTAG interface 25, the main control chip 7 is powered by 3.3V, the crystal oscillator 11 adopts a four-corner 10MHz passive crystal oscillator 11, the boot mode can be changed, and a variety of methods can be used to update the program of the main control chip 7.
[0035] The power module 2 includes: a first electrolytic capacitor 26, the positive terminal of the first electrolytic capacitor 26 is electrically connected to the VDD5V terminal, and the negative terminal of the first electrolytic capacitor 26 is electrically connected to the fourth terminal of the first JTAG interface 25; a fourth capacitor 27, the first end of the fourth capacitor 27 is electrically connected to the positive terminal of the first electrolytic capacitor 26, and the second end of the fourth capacitor 27 is electrically connected to the negative terminal of the first electrolytic capacitor 26; a positive low-dropout regulator 28, the first end of the positive low-dropout regulator 28 is electrically connected to the second end of the fourth capacitor 27 The first end of the first JTAG interface 25 and the second end of the first capacitor 27 are electrically connected to each other, the first end of the first capacitor 27 and the third end of the first capacitor 27 are electrically connected to each other; the second electrolytic capacitor 29, the positive terminal of the second electrolytic capacitor 29 is electrically connected to the second end of the forward low-dropout voltage regulator 28, and the negative terminal of the second electrolytic capacitor 29 is electrically connected to the first end of the forward low-dropout voltage regulator 28; the fifth capacitor 30, the first end of the fifth capacitor 30 is respectively connected to the fifth end of the first JTAG interface 25 and the The second end of the forward low dropout regulator 28 is electrically connected, and the second end of the fifth capacitor 30 is electrically connected to the negative end of the second electrolytic capacitor 29; a first light-emitting diode 31, the positive end of the first light-emitting diode 31 is electrically connected to the first end of the fifth capacitor 30; a tenth resistor 32, the first end of the tenth resistor 32 is electrically connected to the negative end of the first light-emitting diode 31, and the second end of the tenth resistor 32 is electrically connected to the second end of the fifth capacitor 30; a capacitor unit 33, the first end of the capacitor unit 33 is electrically connected to the first end of the fifth capacitor 30, and the second end of the capacitor unit 33 is electrically connected to the negative end of the first electrolytic capacitor 26, the capacitor unit 33 includes a plurality of sixth capacitors 34, the first end of the first sixth capacitor 34 is electrically connected to the first end of the fifth capacitor 30, the first end of all the subsequent sixth capacitors 34 are electrically connected to the first end of the first sixth capacitor 34, the second end of the first sixth capacitor 34 is electrically connected to the negative end of the first electrolytic capacitor 26, and the second ends of all the subsequent sixth capacitors 34 are electrically connected to the second end of the first sixth capacitor 34.
[0036] In the JTAG-based portable DSP programmer and programming method described in the above embodiment of the present invention, the forward low-dropout voltage regulator 28 adopts AMS1117-3.3, and the maximum current is 0.8A. When there is no 5V power supply, the forward low-dropout voltage regulator 28 does not work, and 3.3V does not need to be converted.
[0037] The USB module 3 includes: a Type-C interface 35, an A1 end of the Type-C interface 35 is electrically connected to the housing, a B1 end of the Type-C interface 35 is electrically connected to the A1 end of the Type-C interface 35, an A4 end of the Type-C interface 35 is electrically connected to the positive end of the first electrolytic capacitor 26, a B4 end of the Type-C interface 35 is electrically connected to the A4 end of the Type-C interface 35, and an A9 end of the Type-C interface 35 is electrically connected to the B4 end of the Type-C interface 35. The first inductor 36 is electrically connected to the B12 end of the Type-C interface 35, and the second end of the first inductor 36 is electrically connected to the second end of the capacitor unit 33.
[0038] In the JTAG-based portable DSP burner and burning method described in the above embodiment of the present invention, the USB module 3 adopts a Type-C interface 35 .
[0039] The conversion module 4 includes: a PL2303SA chip 37, a first end of the PL2303SA chip 37 is electrically connected to the second end of the first inductor 36, a second end of the PL2303SA chip 37 is electrically connected to the SCI_RX end of the main control chip 7, a third end of the PL2303SA chip 37 is electrically connected to the first end of the capacitor unit 33, a fourth end of the PL2303SA chip 37 is electrically connected to the SCI_TX end of the main control chip 7, and a seventh end of the PL2303SA chip 37 is electrically connected to the B9 end of the Type-C interface 35; an eleventh resistor 38, the The first end of the eleventh resistor 38 is electrically connected to the sixth end of the PL2303SA chip 37, and the second end of the eleventh resistor 38 is electrically connected to the A7 end of the Type-C interface 35; the twelfth resistor 39, the first end of the twelfth resistor 39 is electrically connected to the fifth end of the PL2303SA chip 37, and the second end of the twelfth resistor 39 is electrically connected to the A6 end of the Type-C interface 35; the thirteenth resistor 40, the first end of the thirteenth resistor 40 is electrically connected to the third end of the PL2303SA chip 37, and the second end of the thirteenth resistor 40 is electrically connected to the second end of the twelfth resistor 39.
[0040] In the JTAG-based portable DSP programmer and programming method described in the above embodiment of the present invention, the conversion module 4 converts the DM signal and DP signal of the USB module 3 into TTL signals through the PL2303SA chip 37 .
[0041] Wherein, the interface module 5 includes: a second JTAG interface 41, a first end of the second JTAG interface 41 is electrically connected to the TMS end of the main control chip 7, a second end of the second JTAG interface 41 is electrically connected to the TRST end of the main control chip 7, a third end of the second JTAG interface 41 is electrically connected to the TDI end of the main control chip 7, a fourth end of the second JTAG interface 41 is electrically connected to the second end of the capacitor unit 33, a fifth end of the second JTAG interface 41 is electrically connected to the first end of the capacitor unit 33, a seventh end of the second JTAG interface 41 is electrically connected to the TDO end of the main control chip 7, an eighth end of the second JTAG interface 41 is electrically connected to the fourth end of the second JTAG interface 41, a ninth end of the second JTAG interface 41 is electrically connected to the TCK end of the main control chip 7, a tenth end of the second JTAG interface 41 is electrically connected to the eighth end of the second JTAG interface 41, an eleventh end of the second JTAG interface 41 is electrically connected to the The ninth end is electrically connected, the twelfth end of the second JTAG interface 41 is electrically connected to the tenth end of the second JTAG interface 41; the human-computer interaction interface 42, the human-computer interaction interface 42 includes a fourteenth resistor 43, a button 44, a second light-emitting diode 45, a third light-emitting diode 46 and a fifteenth resistor 47, the first end of the fourteenth resistor 43 is electrically connected to the fifth end of the second JTAG interface 41, the second end of the button 44 is electrically connected to the second end of the fourteenth resistor 43, the third end of the button 44 is electrically connected to the twelfth end of the second JTAG interface 41, the positive end of the second light-emitting diode 45 is electrically connected to the IO5 end of the main control chip 7, the positive end of the third light-emitting diode 46 is electrically connected to the IO6 end of the main control chip 7, the negative end of the third light-emitting diode 46 is electrically connected to the negative end of the second light-emitting diode 45, the first end of the fifteenth resistor 47 is electrically connected to the negative end of the third light-emitting diode 46, and the second end of the fifteenth resistor 47 is electrically connected to the third end of the button 44.
[0042] The JTAG-based portable DSP burner and burning method described in the above embodiment of the present invention, the interface module 5 includes the second JTAG interface 41 and the human-computer interaction interface 42, the button 44 is used to generate a burning control signal when burning a program, the second light-emitting diode 45 and the third light-emitting diode 46 are used to feedback the program burning status, and the human-computer interaction interface 42 can have multiple forms.
[0043] Wherein, the memory module includes: an SPI FLASH interface 48, a first end of the SPI FLASH interface 48 is electrically connected to the SPISTE end of the main control chip 7, a second end of the SPI FLASH interface 48 is electrically connected to the SPISOMI end of the main control chip 7, a fourth end of the SPI FLASH interface 48 is electrically connected to the second end of the capacitor unit 33, a fifth end of the SPI FLASH interface 48 is electrically connected to the SPISIMO end of the main control chip 7, and a sixth end of the SPI FLASH interface 48 is electrically connected to the SPICLK end of the main control chip 7; a sixteenth resistor 49, a first end of the sixteenth resistor 49 is electrically connected to the first end of the capacitor unit 33 and the eighth end of the SPI FLASH interface 48, respectively, and a second end of the sixteenth resistor 49 is electrically connected to the third end of the SPI FLASH interface 48; a seventeenth resistor 50, a first end of the seventeenth resistor 50 is electrically connected to the SPI The seventh end of the FLASH interface 48 is electrically connected, and the second end of the seventeenth resistor 50 is electrically connected to the eighth end of the SPIFLASH interface 48 .
[0044] In the JTAG-based portable DSP burner and burning method described in the above embodiment of the present invention, the storage module 6 adopts SPIFLASH, model W25Q128J, size 128Mbit, and the storage module 6 is mainly used to store loaded programs. The storage module 6 has enough space to store multiple programs.
[0045] like Figures 8 to 10 As shown, an embodiment of the present invention also provides a burning method for a portable DSP burner based on JTAG, comprising: step 1, establishing a connection between the burner and a computer through a Type-C interface, and establishing a connection between the burner and a chip to be burned through a second JTAG interface; step 2, the computer sends serial port handshake information to the burner, and judges whether the burner receives the serial port handshake information. When the burner receives the serial port handshake information, the computer loads the program to the burner; step 3, when the burner does not receive the serial port handshake information, it is judged whether the burner detects a burning control signal. When the burner does not detect the burning control signal, it jumps to step 2. When the burner detects the burning control signal, the burner burns the program to the chip to be burned.
[0046] The portable DSP burner and burning method based on JTAG described in the above embodiments of the present invention have the main functions of loading programs and burning programs. When the burner is powered on and receives a serial port handshake message, the burner enters a program loader mode. When the burner detects a control signal to burn a program, the burner enters a program burner mode.
[0047] Wherein, the step 2 specifically includes: step 21, the burner receives the serial port handshake information and sends the status information of the current operation to the computer; step 22, when the computer receives the status information of the current operation transmitted by the burner, the computer transmits the key to the burner, the burner receives the key and verifies the key, when the key verification fails, the computer retransmits the key to the burner until the key verification is successful, when the key verification is successful, the burner sends the key verification success information to the computer; step 23, after the computer receives the key verification success information, it starts to load the program number into the burner, after the program number is loaded, the computer loads the program into the burner again, and the burner stores the loaded program in the storage module according to the program number; step 24, after the program loading is completed, the burner sends the program loading success information to the computer to end the program loading.
[0048] The portable DSP burner and burning method based on JTAG described in the above embodiment of the present invention, the burner loads the program: uses the serial port to communicate with the computer through the conversion module 4 through the USB module 3, passively receives information and feeds back the status information of the current operation, receives handshake information and returns the corresponding information and establishes a connection; receives the key and then feeds back the information, and only after the verification is correct can the next step be entered; before receiving the program, there will be a process of receiving the program number, and the received program is loaded into the corresponding area according to the number; after the loading is successful, the information is fed back and the process ends.
[0049] Wherein, the step 3 specifically includes: step 31, generating a burning control signal by pressing a button, and determining the program to be burned according to the burning control signal after the burner detects the burning control signal; step 32, the burner burns the determined program to be burned into the chip to be burned; step 33, judging whether the program is burned successfully, when the program is not burned successfully, the burner controls the second light emitting diode and the third light emitting diode to display the program burning failure state, and ends the program burning; step 34, when the program is burned successfully, the burner controls the second light emitting diode and the third light emitting diode to display the program burning success state, and ends the program burning.
[0050] The portable DSP burner and burning method based on JTAG described in the above embodiment of the present invention, the burner burns the program: connected to the chip to be burned through the second JTAG interface 41, selects the corresponding program for burning according to the burning detection signal, and feeds back the program burning status through the human-computer interaction interface 42. Whether the burning program is successful or not, the corresponding information will be fed back through the human-computer interaction interface 42.
[0051] The portable DSP burner and burning method based on JTAG described in the above embodiment of the present invention can be applied to burning in various scenarios, without changing the existing emulator burning circuit, and without changing the target chip boot. The second JTAG interface 41 is used, and the program is not burned by using a computer device. The program is loaded into the storage space of the portable DSP burner based on JTAG in advance, and no additional storage device is required. It supports the burning of multiple programs, supports multiple changes in program content, supports the burning of different versions of the same program, and supports engineers to define programs. It is small in size, light in weight, easy to carry, does not require additional power supply, does not require additional storage, can store multiple programs, and can flexibly select the burning program during burning. The human-computer interaction interface 42 can be designed in various styles according to customers, and each module can have multiple options; it has strong adaptability, and there is no need to make any changes to the existing emulator burning circuit and the boot circuit of the chip to be burned; the human-computer interaction interface 42 can be customized; the operation method is simple, and ordinary operators can also operate skillfully, and only engineers or technicians need to load the program into the portable DSP burner based on JTAG in advance.
[0052] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A portable DSP programmer based on JTAG, It is characterized in that include: Main control module; A power module, a first end of the power module is electrically connected to a first end of the main control module; A USB module, a first end of the USB module is electrically connected to a second end of the power module; a conversion module, wherein a first end of the conversion module is electrically connected to a second end of the main control module, a second end of the conversion module is electrically connected to a third end of the power module, and a third end of the conversion module is electrically connected to a second end of the USB module; an interface module, wherein a first end of the interface module is electrically connected to a third end of the main control module, and a second end of the interface module is electrically connected to a fourth end of the power module; a storage module, wherein a first end of the storage module is electrically connected to a fourth end of the main control module, and a second end of the storage module is electrically connected to a fifth end of the power module; The main control module comprises: Main control chip; An external passive crystal oscillator unit, the external passive crystal oscillator unit comprising a first capacitor, a second capacitor and a crystal oscillator, the first end of the first capacitor is electrically connected to the x1 end of the main control chip, the first end of the second capacitor is electrically connected to the x2 end of the main control chip, the second end of the second capacitor is electrically connected to the second end of the first capacitor and the ground end of the main control chip respectively, the first end of the crystal oscillator is electrically connected to the first end of the second capacitor, the second end of the crystal oscillator is electrically connected to the second end of the second capacitor, the third end of the crystal oscillator is electrically connected to the first end of the first capacitor, and the fourth end of the crystal oscillator is electrically connected to the second end of the first capacitor; A boot unit, the boot unit comprising a first resistor and a third capacitor, the first end of the first resistor is electrically connected to the VDD3V3 terminal of the main control chip, the first end of the third capacitor is electrically connected to the second end of the first resistor and the nRST terminal of the main control chip respectively, and the second end of the third capacitor is electrically connected to the second end of the second capacitor; a reset unit, the reset unit comprising a first conversion switch, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor and a ninth resistor, wherein a first end of the first conversion switch is electrically connected to a BOOT0 end of the main control chip, a second end of the first conversion switch is electrically connected to a BOOT1 end of the main control chip, a third end of the first conversion switch is electrically connected to a BOOT2 end of the main control chip, a fourth end of the first conversion switch is electrically connected to a BOOT3 end of the main control chip, a first end of the second resistor is electrically connected to a fifth end of the first conversion switch, a second end of the second resistor is electrically connected to a first end of the first resistor, a first end of the third resistor is electrically connected to a sixth end of the first conversion switch, a second end of the third resistor is electrically connected to a second end of the third capacitor, a first end of the fourth resistor is electrically connected to the first a seventh terminal of the conversion switch is electrically connected, a second end of the fourth resistor is electrically connected to a second end of the second resistor, a first end of the fifth resistor is electrically connected to an eighth terminal of the first conversion switch, a second end of the fifth resistor is electrically connected to a second end of the third resistor, a first end of the sixth resistor is electrically connected to a ninth terminal of the first conversion switch, a second end of the sixth resistor is electrically connected to a second end of the fourth resistor, a first end of the seventh resistor is electrically connected to a tenth terminal of the first conversion switch, a second end of the seventh resistor is electrically connected to a second end of the fifth resistor, a first end of the eighth resistor is electrically connected to an eleventh terminal of the first conversion switch, a second end of the eighth resistor is electrically connected to a second end of the sixth resistor, a first end of the ninth resistor is electrically connected to a twelfth terminal of the first conversion switch, and a second end of the ninth resistor is electrically connected to a second end of the seventh resistor; a first JTAG interface, wherein a first end of the first JTAG interface is electrically connected to the TMS0 end of the main control chip, a second end of the first JTAG interface is electrically connected to the TRST0 end of the main control chip, a third end of the first JTAG interface is electrically connected to the TDI0 end of the main control chip, a fourth end of the first JTAG interface is electrically connected to the second end of the ninth resistor, a fifth end of the first JTAG interface is electrically connected to the second end of the second resistor, a seventh end of the first JTAG interface is electrically connected to the TDO0 end of the main control chip, an eighth end of the first JTAG interface is electrically connected to the fourth end of the first JTAG interface, a ninth end of the first JTAG interface is electrically connected to the TCK0 end of the main control chip, a tenth end of the first JTAG interface is electrically connected to the eighth end of the first JTAG interface, an eleventh end of the first JTAG interface is electrically connected to the ninth end of the first JTAG interface, and a twelfth end of the first JTAG interface is electrically connected to the tenth end of the first JTAG interface; The power module comprises: a first electrolytic capacitor, wherein a positive terminal of the first electrolytic capacitor is electrically connected to the VDD5V terminal, and a negative terminal of the first electrolytic capacitor is electrically connected to the fourth terminal of the first JTAG interface; a fourth capacitor, wherein a first end of the fourth capacitor is electrically connected to the positive terminal of the first electrolytic capacitor, and a second end of the fourth capacitor is electrically connected to the negative terminal of the first electrolytic capacitor; a forward low dropout regulator, wherein a first end of the forward low dropout regulator is electrically connected to a second end of the fourth capacitor, a second end of the forward low dropout regulator is electrically connected to a fourth end of the forward low dropout regulator, and a third end of the forward low dropout regulator is electrically connected to a first end of the fourth capacitor; a second electrolytic capacitor, wherein a positive terminal of the second electrolytic capacitor is electrically connected to a second terminal of the forward low dropout voltage regulator, and a negative terminal of the second electrolytic capacitor is electrically connected to a first terminal of the forward low dropout voltage regulator; a fifth capacitor, wherein a first end of the fifth capacitor is electrically connected to a fifth end of the first JTAG interface and a second end of the forward low dropout regulator, respectively, and a second end of the fifth capacitor is electrically connected to a negative terminal of the second electrolytic capacitor; a first light emitting diode, wherein a positive terminal of the first light emitting diode is electrically connected to a first terminal of the fifth capacitor; a tenth resistor, wherein a first end of the tenth resistor is electrically connected to the cathode end of the first light-emitting diode, and a second end of the tenth resistor is electrically connected to the second end of the fifth capacitor; A capacitor unit, wherein the first end of the capacitor unit is electrically connected to the first end of the fifth capacitor, the second end of the capacitor unit is electrically connected to the negative end of the first electrolytic capacitor, the capacitor unit comprises a plurality of sixth capacitors, the first end of the first sixth capacitor is electrically connected to the first end of the fifth capacitor, the first ends of all subsequent sixth capacitors are electrically connected to the first end of the first sixth capacitor, the second end of the first sixth capacitor is electrically connected to the negative end of the first electrolytic capacitor, and the second ends of all subsequent sixth capacitors are electrically connected to the second end of the first sixth capacitor; The USB module comprises: Type-C interface, the A1 end of the Type-C interface is electrically connected to the housing, the B1 end of the Type-C interface is electrically connected to the A1 end of the Type-C interface, the A4 end of the Type-C interface is electrically connected to the positive end of the first electrolytic capacitor, the B4 end of the Type-C interface is electrically connected to the A4 end of the Type-C interface, the A9 end of the Type-C interface is electrically connected to the B4 end of the Type-C interface, the B9 end of the Type-C interface is electrically connected to the A9 end of the Type-C interface, the A12 end of the Type-C interface is electrically connected to the B1 end of the Type-C interface, and the B12 end of the Type-C interface is electrically connected to the A12 end of the Type-C interface; A first inductor, wherein a first end of the first inductor is electrically connected to a B12 end of the Type-C interface, and a second end of the first inductor is electrically connected to a second end of the capacitor unit; The conversion module comprises: A PL2303SA chip, wherein the first end of the PL2303SA chip is electrically connected to the second end of the first inductor, the second end of the PL2303SA chip is electrically connected to the SCI_RX end of the main control chip, the third end of the PL2303SA chip is electrically connected to the first end of the capacitor unit, the fourth end of the PL2303SA chip is electrically connected to the SCI_TX end of the main control chip, and the seventh end of the PL2303SA chip is electrically connected to the B9 end of the Type-C interface; An eleventh resistor, a first end of the eleventh resistor is electrically connected to the sixth end of the PL2303SA chip, and a second end of the eleventh resistor is electrically connected to the A7 end of the Type-C interface; A twelfth resistor, a first end of the twelfth resistor is electrically connected to the fifth end of the PL2303SA chip, and a second end of the twelfth resistor is electrically connected to the A6 end of the Type-C interface; A thirteenth resistor, a first end of the thirteenth resistor is electrically connected to the third end of the PL2303SA chip, and a second end of the thirteenth resistor is electrically connected to the second end of the twelfth resistor.
2. The portable DSP burner based on JTAG according to claim 1, It is characterized in that The interface module comprises: a second JTAG interface, wherein a first end of the second JTAG interface is electrically connected to the TMS end of the master control chip, a second end of the second JTAG interface is electrically connected to the TRST end of the master control chip, a third end of the second JTAG interface is electrically connected to the TDI end of the master control chip, a fourth end of the second JTAG interface is electrically connected to the second end of the capacitor unit, a fifth end of the second JTAG interface is electrically connected to the first end of the capacitor unit, a seventh end of the second JTAG interface is electrically connected to the TDO end of the master control chip, an eighth end of the second JTAG interface is electrically connected to the fourth end of the second JTAG interface, a ninth end of the second JTAG interface is electrically connected to the TCK end of the master control chip, a tenth end of the second JTAG interface is electrically connected to the eighth end of the second JTAG interface, an eleventh end of the second JTAG interface is electrically connected to the ninth end of the second JTAG interface, and a twelfth end of the second JTAG interface is electrically connected to the tenth end of the second JTAG interface; A human-computer interaction interface, the human-computer interaction interface includes a fourteenth resistor, a button, a second light-emitting diode, a third light-emitting diode and a fifteenth resistor, the first end of the fourteenth resistor is electrically connected to the fifth end of the second JTAG interface, the second end of the button is electrically connected to the second end of the fourteenth resistor, the third end of the button is electrically connected to the twelfth end of the second JTAG interface, the positive end of the second light-emitting diode is electrically connected to the IO5 end of the main control chip, the positive end of the third light-emitting diode is electrically connected to the IO6 end of the main control chip, the negative end of the third light-emitting diode is electrically connected to the negative end of the second light-emitting diode, the first end of the fifteenth resistor is electrically connected to the negative end of the third light-emitting diode, and the second end of the fifteenth resistor is electrically connected to the third end of the button.
3. The portable DSP burner based on JTAG according to claim 2, It is characterized in that The storage module comprises: SPI FLASH interface, a first end of the SPI FLASH interface is electrically connected to the SPISTE end of the main control chip, a second end of the SPI FLASH interface is electrically connected to the SPISOMI end of the main control chip, a fourth end of the SPI FLASH interface is electrically connected to the second end of the capacitor unit, a fifth end of the SPI FLASH interface is electrically connected to the SPISIMO end of the main control chip, and a sixth end of the SPI FLASH interface is electrically connected to the SPICLK end of the main control chip; a sixteenth resistor, wherein a first end of the sixteenth resistor is electrically connected to the first end of the capacitor unit and the eighth end of the SPI FLASH interface respectively, and a second end of the sixteenth resistor is electrically connected to the third end of the SPI FLASH interface; A seventeenth resistor, wherein a first end of the seventeenth resistor is electrically connected to the seventh end of the SPI FLASH interface, and a second end of the seventeenth resistor is electrically connected to the eighth end of the SPI FLASH interface.
4. A method for programming a portable DSP programmer based on JTAG, applied to the portable DSP programmer based on JTAG as claimed in any one of claims 1 to 3, It is characterized in that include: Step 1: Connect the programmer to the computer through the Type-C interface, and connect the programmer to the chip to be programmed through the second JTAG interface. Step 2, the computer sends serial port handshake information to the burner, and determines whether the burner receives the serial port handshake information. When the burner receives the serial port handshake information, the computer loads the program to the burner; Step 3: When the writer does not receive the serial port handshake information, it determines whether the writer detects the writing control signal. , Jump to step 2. When the programmer detects the programming control signal, the programmer programs the chip to be programmed.
5. The burning method of the portable DSP burner based on JTAG according to claim 4, It is characterized in that The step 2 specifically includes: Step 21, the writer receives the serial port handshake information and sends the status information of the current operation to the computer; Step 22, after the computer receives the status information of the current operation transmitted by the burner, the computer transmits the key to the burner, the burner receives the key and verifies the key, when the key verification fails, the computer retransmits the key to the burner until the key verification succeeds, when the key verification succeeds, the burner sends the key verification success information to the computer; Step 23, after receiving the key verification success information, the computer starts to load the program number into the burner. After the program number is loaded, the computer loads the program into the burner, and the burner stores the loaded program in the storage module according to the program number; Step 24, after the program loading is completed, the burner sends a program loading success message to the computer, and the program loading is completed.
6. The burning method of the portable DSP burner based on JTAG according to claim 5, It is characterized in that The step 3 specifically includes: Step 31, generating a burning control signal by pressing a key, and determining the program to be burned according to the burning control signal after the burner detects the burning control signal; Step 32, the burner burns the determined program to be burned into the chip to be burned; Step 33, determining whether the program is burned successfully. If the program is not burned successfully, the burner controls the second light emitting diode and the third light emitting diode to display the program burning failure state, and the program burning ends; Step 34, when the program burning is successful, the burner controls the second light emitting diode and the third light emitting diode to display the program burning success status, and the program burning is ended.
Citation Information
Patent Citations
Burner with controllable burning voltage and communication level and control method
CN110569045A
Burner, operation method thereof and burning system
CN110968329A
