|
Topic: TBLCF connection issues.
|
| Author |
Post |
|
Alex_M
23 posts
 Occasional Visitor
|
26-04-2011 17:19
Hello,
I'm having issues connecting to the Digibutler board via TBLCF. My OS is windows 7 (professional) but i've tried to do it on windows xp too.
I've not used the CW 10.1 because I'm totally lost in the eclipse UI. (If you have experience with this version feel free to drop me explicit hints on where to click etc).
I've used CW 6.3 (updated via it's automatic updater). On windows 7 I get the error that it cannot connect to the USB device. I've installed the same software on Windows xp SP2/SP3. I've done the same settings as on windows 7 (same as the ones provided in the TBLCF manual on the CD). It connects to the Digibutler and all but It crashes if i open the Flash Programmer and try to change settings to MCF5223x. It also crashes if i browse for the tblcf_gdi.dll file but I can overcome that by writing the full path and filename and applying the change.
I've installed CW 7.2 and updates and I get the same issues but a bit rephrased: "ColdFire GDI Protocol Adapter : Can't connect". This is just on windows 7 and I haven't tried to install on Win XP yet.
I hope someone has a hint on what to do. If needed I'll probably install the CW 7.2 on the win XP machines and try my luck there.
Thanks in advance for any helpful hints.
|
|
blacktigris
178 posts
 Diehard
|
26-04-2011 20:48
Hello Alex,
I used CW7.1 with Win XP pro without problem.
Do you switch your Digibutler on "prog" position ?
We are waiting for your news.
Regards
Ludo
|
|
Alex_M
23 posts
 Occasional Visitor
|
27-04-2011 04:14
Hello tigris,
Yes I have a jumper on JP2 and another one on pin 2-3 of JP1. But as I've said above I managed to connect to it on windows XP with CW6.3.1 but the software crashes with no error when it has to open windows explorer related windows (like borwsing for the tblcf_gdi.dll or saving the processor model in the flash programmer).
I assume it's the flash programmer that is required to reprogram the board?
And on CW7.2 I can't get it to work. It seems to have saved the TBLCF connection from the 6.3 version but it just won't connect.
Post edited by Alex_M
on 27-04-2011 04:15
|
|
blacktigris
178 posts
 Diehard
|
27-04-2011 21:59
Alex,
Here are my settings in CW7.1:
Flash programmer window:
Target Configuration:
"Use Custom Settings" checked
Target processor: 52231
Connection: TBLCF
"Use target initialization" unchecked
Flash configuration:
Device: CFM MCF52230
Test with the Erase / blank check command:
check "all sectors" and click Erase, you should have Status: Erase command succeeded.
If not, try again, sometime i get an error.
If not, check if the TBLCF's driver is correctly installed.
Let me know your results.
Good evening
Ludo
|
|
Alex_M
23 posts
 Occasional Visitor
|
28-04-2011 05:46
Thanks for the reply,
Sadly I can't make these changes in the 6.3 version where I can connect the board (unless I can skip saving the settings and assume he's using them as they are) for the Codewarrior software crashes anytime a load/save file window pops up.
I've made the settings in 7.2 but it still won't connect to the Digibutler. Getting the same Coldfire GDI Adapter : Can't connect error.
I'll try to install the CW7.2 on windows xp today and see how it goes (so far this is the only thing I haven't tried).
I just don't understand why it can connect on windows xp and fails to do so on windows 7 with the same settings.
|
|
Alex_M
23 posts
 Occasional Visitor
|
29-04-2011 08:30
OK. The crashing of the software has ended when i tried CW7.2 on windows XP. And it managed to connect also. So I'm gonna see if it works to flash the board and change the IP.
|
|
Alex_M
23 posts
 Occasional Visitor
|
30-04-2011 21:07
I've managed to overcome the previous connection issue by installing CW 7.2 on windows xp. Everything worked and it connected but now I get a connection error that states "writeaddressreg error: writecontrol 7173 0x2000021 failed". I'm not sure what this means. I think I've erased the board and made the proper settings to reprogram it the first time I've connected to the digibutler. I can't remember if I had a specific success message when I erased all of it. Now I can't reconnect to the digibutler though. Any hints on this one?
|
|
blacktigris
178 posts
 Diehard
|
01-05-2011 08:49
If it had been once connected, it should connect again.
My system is not very reliable, sometimes, i have to unplug and replug the TBLCF for a proper connection, or restart CW. I suppose your error comes during the programming of the 52231, may be you had better to verify before that the chip is sucessfully erased.
You should not be so far away from the sucess, i remember 2 years ago when i tried to program my fisrt Digibutler, i spent a few weeks and a lot of messages before i can do what i expected with it.
Bon courage
|
|
Alex_M
23 posts
 Occasional Visitor
|
01-05-2011 08:53
Hey Tigris,
The problem is that now I can't verify the memory either. I'm not sure I was able to do that after the erase either. But when I try to connect from the debugger I get that error described above. And when I try to verify/erase memory again (or program) I get the "Can't connect" error in CW. I've tried this on 2 laptops and both get the same error. Being an address that it can't write in I'm wondering I didn't erase the board with some wrong settings. Could that mess up the memory?
|
|
blacktigris
178 posts
 Diehard
|
01-05-2011 13:25
One thing i forgot:
In the Flash programmer menu, Target Configuration, first click Load Settings and choose the file MCF52231_INTFLASH.xml witch should be in Program Files/Freescale/CodeWarior for coldFire V7.1/bin/plugins/support/Flash_Programmer/ColdFire. After, enter the settings as i indicated above. Good luck.
|
|
Alex_M
23 posts
 Occasional Visitor
|
01-05-2011 16:35
It didn't work. I've decided to reflash the TBLCF. After successfully flashing the boards memory I couldn't get to reflash it. It seems it doesn't identify the board anymore  . I'm not sure if the processor was fried or not during the process. So I'll have to keep trying a few times and order a new one if it's dead (I just had the PCB from elektor the rest of the pieces I've soldered myself).
|
|
Alex_M
23 posts
 Occasional Visitor
|
01-05-2011 17:00
I've just managed to reflash the TBLCF. I'm gonna try to see if the program works. But I'm starting to believe that there is some error in the Digibutler. Not sure if I was wrong to erase all blocks. Maybe I deleted something essential? But I'm also guessint they made those essential things idiot proof and general users don't have access to those areas so easy. I'm sure the erase was successful because the Digibutler doesn't run hot anymore. Before it took it a very long time to be seen on the network and respond to ping. But could not be accessed at 192.168.0.151.
|
|
Alex_M
23 posts
 Occasional Visitor
|
02-05-2011 16:12
Well I still get the "writeaddressreg error: writecontrol 7173 0x2000021 failed" error. Everytime I try to connect to the digibutler I get this message.
|
|
blacktigris
178 posts
 Diehard
|
02-05-2011 16:49
I bought an assembled Digibutler at Elektor Shop, so i didn't have to sold the components myself. I never had this error, you may check fisrt your solders or your components. When the 522321 run it becomes very hot (you can't touch it more than 2 seconds), but it's not a problem, it's run fine.
|
|
Alex_M
23 posts
 Occasional Visitor
|
02-05-2011 16:54
I've rechecked the solders. Both on the digibulter board and on the TBLCF (specially those 26 pins). I've posted the error on the freescale forums for the TBLCF but so far I've got no reply. I've also tested the signals on the pins for the VHC chip and they have appropriate signals (high/low). I'll see what I can do further and post here if I find a solution.
|
|
blacktigris
178 posts
 Diehard
|
02-05-2011 17:29
I have a Digibutler + TBLCF running at home, i would be happy to help you by testing your cards on my system. I live in south of France, if you want you can send them to me.
|
|
Alex_M
23 posts
 Occasional Visitor
|
12-05-2011 22:20
All right. I've contacted Freescale and found out that the error was caused by some incorrect settings. I've no idea what settings I might have tampered with but in the alt+f7 menu there is a "CF Debugger settings" option (a few rows below the TBLCF setting). I've restored that to factory settings and I was able to connect to the digiboard with the TBLCF at least.
Now I've done everything you mentioned and tried to erase the board. I get the following error every single time: "ColdFire GDI Protocol Adapter : An error occurred while trying to write memory"
I've asked Freescale for support but I'm afraid that they'll just say that the TBLCF is causing this and point me twoards their own programming boards. So have you encountered this error too? Maybe I'm missing some settings in the Flash programmer. The settings are identical to what you suggested I use, but the CW version is 7.2.2 now. I've patched it as suggested by freescale in a past email.
Thank you for your time again and all the help you've offered.
|
|
Alex_M
23 posts
 Occasional Visitor
|
13-05-2011 12:00
I've managed to reprogram the board. I'll try it out now and see if it works.
|
|
Alex_M
23 posts
 Occasional Visitor
|
13-05-2011 12:11
Hmmm. For some reason I still can't connect to the digiboard via HTTP. I've rewritten the sysinit file as instructed but didn't want to enable DHCP. So I've just set the IP adress to 192.168.1.151. Did I miss something? Am I supposed to wait for a while longer?
|
|
Alex_M
23 posts
 Occasional Visitor
|
13-05-2011 13:16
I've also recompiled the project and made program verification in the flash programer. Everything seems ok. But the connection via ethernet is still an issue.
|