TMS320F240 and emulator BH-USB-2, what utility to flash? - Page 1
Forum section: electronics / general

author: Postal2
author_rank: Frequent Contributor
timestamp: November 08, 2024, 07:19:55 pm
content: Code Composer 3.3 works fine with the blackhawk-usb2.0 emulator, but the flashburn utility does not support it. The Uniflash utility does, but it does not have TMS320F240.There are executables for loading into TMS, but if I can clean and erase by running them, how do I write a firmware file if I need to somehow feed data for writing?

author: Postal2
author_rank: Frequent Contributor
timestamp: November 09, 2024, 07:11:13 am
content: I looked at the used Code Composer dll and dvr, copied everything to the folders to the utilities, but it still doesn't work. It complains about the CSM, and the TMS320F240 doesn't have a CSM.

author: Postal2
author_rank: Frequent Contributor
timestamp: November 12, 2024, 03:53:19 am
content: I found a homemade program that has the source code of the algorithms for the newer TMS320. The text shows that the algorithms were once exactly what I needed, but they were modified, and now they need to be modified back.https://www.egorz.ru/project/tms320prog/tms320prog.rar

author: daisizhou
author_rank: Super Contributor
timestamp: November 12, 2024, 05:59:32 am
content: Is this a DSP chip? Do you want to load firmware into it?

author: Postal2
author_rank: Frequent Contributor
timestamp: November 12, 2024, 01:00:38 pm
content: Quote from: daisizhou on November 12, 2024, 05:59:32 amYes, these chips are called DSP. In fact, it is a regular mcu.Yes, I need to write firmware to its flash. If you look at the TI site, you will find that all questions about this chip remain unanswered.However, the archive in the link above has everything you need to make the firmware functions yourself, using Code Composer.If you have something ready, I would be happy not to mess with it.

author: daisizhou
author_rank: Super Contributor
timestamp: November 12, 2024, 11:43:50 pm
content: Yes, it is an MCU chip.But it contains EEPROM or FLASH，Usually requires firmware to be written to work correctly.I also have a TMS320F2812,It is broken, but I don't know how to write new firmware to the newly acquired 2812.I have looked for very few standalone programmers that support it,Someone suggested using online JTAG programming, but I still don't know how to use it, in other words, what type of JTAG programmer should I buy?If you know please tell me, thanks

author: Postal2
author_rank: Frequent Contributor
timestamp: November 13, 2024, 12:08:09 am
content: Quote from: daisizhou on November 12, 2024, 11:43:50 pmThere are no problems with your TMS320F2812. It is listed and supported by software (pdf file).You can buy the adapter at this link, but there is no software in the kit, you will have to download it separately and figure out how it works.https://www.aliexpress.com/item/1005007446681354.htmlOnly 32-bit system is supported! Windows XP is preferred.

author: daisizhou
author_rank: Super Contributor
timestamp: November 13, 2024, 01:33:38 am
content: Sorry, I can't accesshttps://www.aliexpress.com/item/1005007446681354.html,can you tell me the exact model or name?

author: Postal2
author_rank: Frequent Contributor
timestamp: November 13, 2024, 01:50:01 am
content: I cut it out of the screenshot, all sellers have the same photo. It's called "XDS510-USB2.0", in fact it's not that, but it works very well, I liked it.

author: Postal2
author_rank: Frequent Contributor
timestamp: November 16, 2024, 08:03:35 am
content: It turns out that the flashburn program can be launched after all by entering the contents of addresses 0x40,0x41,0x42,0x43 instead of a password. But it still loaded it in the wrong place (to 0xFF00 instead of 0xFE00) and it broke. With the correct algorithm files, everything will work.

author: Postal2
author_rank: Frequent Contributor
timestamp: November 17, 2024, 07:26:40 pm
content: I have suspended work on the algorithms for now because the original firmware in the processor is damaged. For comparison, I have archived the original firmware and the one in the new one. The photo shows the board where such a processor is installed.

author: Postal2
author_rank: Frequent Contributor
timestamp: December 08, 2024, 01:39:18 pm
content: I received the firmware, although a different version, but it's worth a try.Since the code for the algorithms is small and should fit in 256 bytes, I decided to edit the closest one from the flashburn utility kit.The flashburn utility declares "limited untested support" for this series of processors. Finally, after many years, I tested it and can say that the algorithms do not work. Additional correction of *.out files is needed. So far, I was able to run the precondition/clear algorithm in the CCS 3.3 environment, and it worked correctly.I found that all algorithms are configured to use a clock frequency of 20 MHz. Since the write pulses are generated by software cycles, this is very critical. Therefore, in the CCS 3.3 environment, it is necessary to correct the CKCR0 registers at address 0x702A and CKCR1 at address 0x702C in the data space. Since I have a 4 MHz crystal, I first wrote 0 to CKCR0, then 0x00E4 to CKCR1, and finally 0x00C3 to CKCR0.If you load *.out files into the 0xFE00 program space, you need to write ST1 "FFFF" after each reset to set the CNF bit. You also need to pay attention to the SXM bit if you start the program from the middle. If you can't set the Program Counter, you need to debug->reset. Also remember that registers in the register field can only be written in full (by entering 4 digits), although in the data window (CKCR0,...) this is not necessary.

author: Postal2
author_rank: Frequent Contributor
timestamp: December 10, 2024, 09:20:38 pm
content: So far only the "erase" algorithm is ready. You can load it into CCS 3.3 and see. It is applied after the "clear" algorithm, so you can't run it, only for review (although the algorithm is fully functional). All algorithms are made strictly for TMS320F240. To load it into CCS 3.3, run debug->reset, then ffff->ST1, then load it.I have corrected the "clear" algorithm, it works. Now you can erase your TMS320F240. First you need to run BCX, after it the flash will contain zeros. After that you need to run BEX and TMS320F240 will contain FF. The algorithms are designed for 20 MHz, above is described how to set it.

author: Postal2
author_rank: Frequent Contributor
timestamp: December 11, 2024, 01:23:33 am
content: And finally, the file recording algorithm. It worked successfully, but it requires the Flashburn utility version 3.1. Since TMS320F240 has already been erased in the CCS 3.3 environment, we only need to start recording the firmware. To do this, in the CCS 3.3 environment, run debug->reset, ffff->ST1, debug->disconnect and close CCS. Copy the necessary files directly to the utility folder and run the command line (without resetting!):BhFlashBurn.exe -p 0 -n 0 -f ccBrd0.dat -d tixds24x.dvr -q- c2xx_bpx.out f240firmware.outThat's all.

author: summersky
author_rank: Newbie
timestamp: February 17, 2025, 09:03:28 am
content: You have made great progress with this dsp. I can't even configure CCS. I have blackhawk usb2000.1. Install ActivePerl (5..2. CCS 3.3.3. sr2 (sesrvice release) or higher over ccs3.3.4. Blackhawk usb2000 driver update for ccs 3.3.But ccs freezes when starting. I think the problem is in the wrong driver bhemu24x.drv. It is not suitable for tms320f240?I have working board with tms320f240 from which I need to read the firmware. And write it to the board with an empty dsp.

author: pcprogrammer
author_rank: Super Contributor
timestamp: February 17, 2025, 10:36:02 am
content: Be aware that the original poster Postal2 is banned from the forum. You can see this based on the emoji within the red circle in the attached image.It is better to start a new thread with your specific question about this processor and emulator.