Still working on this project. Getting closer, now having RS-232 coms issues when connecting.
Link to old ticket.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Still working on this project. Getting closer, now having RS-232 coms issues when connecting.
Link to old ticket.
Nick,
Reading through your post, I am not sure if your issue is resolved or if you need help.
Nick,
This device does not have the boot-code in ROM, like other c2000 devices. Before being shipped to customers, Boot-code for the serial port was programmed in Flash from 0x0000 to 0x00FF. Any application programming the flash should restore this code, if future programming by the serial port is desired. If this is not done, you will not be able to program the device with the serial port again. I wonder that is what is happening now.
Not sure how I can help further with this. I have given you everything I have. As mentioned before, this device 22 years old now. If you are able to connect with the device via JTAG, you may want to try programming with Prg2xx.exe.
That software seems to be more setup for XDS510PP.
I'm starting to think the new chips we have are totally blank. Do you have the code to reload these using the XDS560 and CCS? Or can that program only read?
Attached is all I have pertaining to programming the F240 Flash. If what you are looking for is not in this, I do not have it.
That got us in the right direction. Thank you!
I'm using the 510pp, windows 98 and it connected.
I was able to run these successfully.
BC0
BE0
BP16k
I changed the .out file in bp16k to Sfpe_b.out and Sfusr_b.out they programmed successfully.
switched JP6 to positon 1/2
Ran io_test.bat from the ser240 folder
Connected on com 1 with an rs-232 cable.
It doesn't detect the evaluation board.
What .out file should we be loading to the chip to enable serial communications?
Nick,
Very impressive what you have done so far ! As you might have figured out by now, BC0 will clear the Flash (all bits will become 0x0000 at the end of clear operation).
BE0 will erase the Flash (all bits will become 0xFFFF at the end of erase operation).
BPx will program the Flash (selective bits will be flipped to 0).
I believe Sfusr_b.out is the correct file. "SF" stands for serial Flash loader "usr" stands for the user (customer) version. If my memory serves me right, it gets programmed from 0x0000 to 0x00FF in Program space (Flash). Do you see some code from 00 to FF in the program space after programming the Flash? I think the flash loader expects to see BIO pin to be 0 in order to execute the loader.
Hi Nick, Hareesh will be OOO for the remainder of the year. Unfortunately, we don't have any other experts who are familiar with this device. I appreciate your patience as we wait for him to return.
Nick,
You haven't answered my two questions:
Do you see some code from 00 to FF in the program space after programming the Flash?
If so, it indicates that Sfusr_b.out got programmed in the Flash correctly. You can even check if the BIO pin is checked in the first few instructions. There should be some instruction like BCND xxxxx, BIO. If you see that, we can almost be certain that the serial bootloader got programmed correctly in the Flash. That boot loader is essential if you want to program the Flash using the SCI.
I think the flash loader expects to see BIO pin to be 0 in order to execute the loader.
Did you tie the BIO pin low on your board? Otherwise, the bootloader may not get executed.
Do you see some code from 00 to FF in the program space after programming the Flash?-Yes see attached.BCND, I do not seeNO, I didn't tie the BIO pin low
As I mentioned in my previous post, this is not valid code. I am afraid the flash serial loader did not get programmed in the Flash.
BIO pin was set low, then then the following was done.
BC0
BE0
BP16K.bat
[prg2xxpp -p 378 -m 0x006 -w 6 src\c2xx_btx.out Sfusr_b.out ]
This completed successfully, but the attached screenshot is the error when trying to connect to code composer. I left BIO low, and high both got an error
-BIO pin being low only has relevance when you want to invoke the (already programmed) Flash serial loader. It has no relevance in terms of connecting to the device or CLEAR/ERASE/PROGRAM operation of flash through the JTAG debug probe.