Dear Thierry,
I don't have a AC256 to test with at the moment but I have the following comments:
I'm unable to test your project directly since I don't have the CYGWIN tool chain installed in eclipse. I use the support for external tools that's in the latest CDT. The project was set up as described here:
http://usbdm.sourceforge.net/USBDM_V4.5/USBDM_JS16/html/code_sourcery_page.html
I've set up a project using your settings (as near as I can with changes for the above) and it builds and downloads to a MCF51CN128 without error. It doesn't debug because of differences in the chips but goes far enough to show the problem is not occuring.
symbol-file C:\\Peter\\Development\\CodeSourceryTry\\TryMCF51AC128\\Debug\\TryMCF51AC128target remote | m68k-elf-sprite osbdm://0/ m51ac256evb-33m68k-elf-sprite: Target reset0x003e202e in ?? ()load C:\\Peter\\Development\\CodeSourceryTry\\TryMCF51AC128\\Debug\\TryMCF51AC128 Loading section .text, size 0x7d4 lma 0x800000Loading section .eh_frame, size 0x4 lma 0x8007d4Loading section .rodata, size 0x50 lma 0x8007d8Loading section .data, size 0x8 lma 0x800828Start address 0x800400, load size 2096Transfer rate: 3 KB/sec, 524 bytes/write.tbreak mainTemporary breakpoint 2 at 0x80055e: file ..\src\main.c, line 46.continuem68k-elf-sprite: Can't read a debug register: OSBDM error code 1
I will upload a debug version of the osbdm DLL to sourceforge shortly and if you like you can try that version. It will produce a log file (in %APPDATA%/usbdm) which will shown exactly what the sprite is telling the BDM to do.
From the information you posted it would appear that it is actually failing immediately after or at the reset since the line
0xffffffff in ?? ()
is incorrect - This is meant to be the PC value after reset and it should never be odd!
Finally there is an errata on early AC128s relating to debugging that might be affecting this.
Bye.