DEMO9S12NE64 restoring serial monitor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DEMO9S12NE64 restoring serial monitor

5,240 Views
JayJay
Contributor I
Hello

I have erased the factory programmed serial monitor on the DEMO9S12NE64
box, I do have a Cyclone Pro BDM programmer and I am loking for the
serial monitor file (s19/phy), where could I get that from?

I downloaded an app note (AN2548) and project file containing the
serial monitor code from freescale website, it doesnt seem to work.
Perhaps the boot/run button is not set up correctly?

Thanks
Jay
PS: I have posed the same msg on Y! HCS12 group board as well, not sure if everyone has moved to this forum?
Labels (1)
0 Kudos
9 Replies

604 Views
Flint
Contributor I
I have also erased the serial monitor code from my EVB9S12NE64 from Axiom (axman.com).  I have an axiom USB-BDM, but I need the code to restore it.  I tried the link from the previous messages (feb-06) but it has been removed.  Thanks! 
 
 
Also, the quick start guides from axiom were good, but I need the next steps to get a better feel for the board and the software... got any suggestions?
0 Kudos

604 Views
mjbcswitzerland
Specialist V
Hi Flint

There is a binary copy of the serial monitor here:

http://www.utasker.com/docs/documentation.html

See "Projects and Application notes" and the guide to building a LAN based programming tool using the DEMO9S12NE64. In the zipped software file it is N_FreescaleSerialMonitor.bin

...In answer to the now very old question about the wiring to the BDM, there are photos and diagrams in the application note...

Regards

0 Kudos

604 Views
Flint
Contributor I
Thanks, Mark.  However, I hate to admit it, but I am a real newbie.  I have a USB-BDM interface from axiom (axman.com), which only loads .s19 and .hex files.  I tried to load the binary file, and it gave an error that it wasn't a hex file.  Do you have a file in .s19 /hex, or do you know a way to convert it?
Thanks,
Flint
0 Kudos

604 Views
mjbcswitzerland
Specialist V
Hi Jay
The monitor from Freescale will run on the NE64 demo - the buttons are set up correctly (the code is the same as that delivered pre-programmed on the DEMO board). In case you need it, I have it as a binary file which you can pick up at http://www.mjbc.ch/software/freescale/1892-sjiu87/Monitor.bin
Since I don't know whether Freescale likes people distributing this, it will be removed withing 48 hours - so get it quickly if you need it!
When loading it just make sure it goes to the address 0xf800.
You may have to completely delete the flash (after unlocking its boot sector) before doing so and afterwards simply check that the code in memory is equal to the binary.
I have a reference board on line which you can log on to and check its memory (it has the same monitor program loaded). Here's how to do it:
1. Browser to http://212.254.22.36
2. Log on with user name "anon" and password "anon"
3. Open a memory window (click on link at bottom of page)
4. Set the address to 0xf800 and it will display the contents of the internal FLASH (this being the programmed boot loader):
5. Scroll  through memory using the buttons "previous block" and "next block". Check the contents with your own board using your BDM.
6. If you want, you can set your own PC to 0xf800 and step through the monitor code. On the start side of the demo you can also do the same thing (Reset the target, set PC to f800 - click modify registers, single step - and compare that both boards operate the same). If you command it to run, you can see it operating via webcam [the card with LED flashing on teh left of the screen] (see homepage below)
In fact the debugger which you can use online is a DEMO9S12NE64 running a web server with BDM control. It will operate with the IAR Embedded Workbench allowing download, source level debugging, unintrusive monitoring etc. of a target anywhere in the world via Internet.
For anyone without a BDM for their target, simply add a 3 wire cable from an old DEMOS12NE64 to connect to a target to be programmed or debugged, load the BDM code to the old DEMO board and you have a fully functional quality debugger... better than just throwing the old thing away!
Cheers
Mark Butcher
www.mjbc.ch
0 Kudos

604 Views
JayJay
Contributor I
For anyone without a BDM for their target, simply add a 3 wire cable from an old DEMOS12NE64 to connect to a target to be programmed or debugged, load the BDM code to the old DEMO board and you have a fully functional quality debugger... better than just throwing the old thing away!
 
Which 3 wire are you refering to? the BDM port itself? I would surely like to convert a spare DEMOS12NE64 into a BDM device, but what type of BDM could it be? a serial based? I am bit confused on how this is done. Thanks.
 
Jay
0 Kudos

604 Views
mke_et
Contributor IV
I'm not familiar with the demo board you mention, but previous demo boards I've gotten, like the 9S12Badge board, all seemed to have both BDM and BDM-OUT headers.
 
I just assumed it was something standard in the debugger.  In fact, I always wondered why CW didn't support it...
 
 
0 Kudos

604 Views
Flint
Contributor I
I see that CW does support Abatron BDI, PEMICRO MULTILINK/CYCLONE PRO, SOF TEC hcs12.
 
I am wondering if I need to go buy one of those(?)  But I would first like to get the board in the state that it was in when I bought it ( with serial monitor installed), to be able to run the demo applications, etc. 
 
What hardware/software do usually use for hcs12 programming?
 
Thanks,
Flint
0 Kudos

604 Views
mjbcswitzerland
Specialist V
Flint

The GNU objcopy utility can be used to convert most formats to others.

I have used it on the binary for you to generate an SREC
Usage - if you are interested: m6811-elf-objcopy -I binary N_FreescaleSerialMonitor.bin -O srec Monitor.s19 --change-address=0xf800

This locates the original binary to be loaded to start at the address 0xf800 in the chip.

This should be attached here.

I haven't tried it - answering the other question at the same time - since I always use the DEMO9S12NE64 to load to other NE64 devices (as explained in the previous application note). Therefore I have never used (needed) another tool. This was not because I refused to spend a few dollars on a BDM but due to the fact that when I started using the NE64 I wanted to get to know as much about it as possibe and the single wire BDM was intriguing. It was in fact not that difficult to set up the timing necessary for it to operate correctly and so the experiment ended up with a functional BDM kit as well as a tool for loading using the integrated serial monitor.

I have found that debugging on the NE64 is relatively straight forward and the serial monitor support was all that I ever really needed on the target (I did in fact develop a complete TCP/IP stack using the experimental debugger and the GNU compiler). The debugger was in fact never the critical link since the project was completely simulated.

You may like also to take a look at the demo software on the web site which can be downloaded to your demo board and will allow it to operate as dynamic web server with TELNET, FTP and SMTP client - it occupies only about 30k on the board. There is also a demo running online here: http://84.253.57.46

You can read about the simulator on the web site, which allows a simulated NE64 to run on the PC - you can contact the simulated device from the network as if it were a real device. The project contains GNU, CodeWarrior and IAR projects and also runs on the M5223X (the NE64's big brother). NE64 projects can be moved to the Coldfire by setting one project define. More advanced support that is included is distributed processing using a fast Ethernet based protocol and an external SPI based file system extension - the NE64 doesn't support it but the package for the M5223X even allows complete software uploads via the Internet (requiring only a 2k boot loader)

Should you be interested, the complete project, including email support, is available free of change for educational and private use. There is an application form on the web site. If you are a newbee to the device and/or IP applications then this will be the fasted way to getting professional quality projects up and running, and generally saves months of effort on the way.

Good luck

Regards

Mark

Message Edited by mjbcswitzerland on 2007-03-0209:32 PM

0 Kudos

604 Views
Flint
Contributor I
Thanks, Mark.  I am still taking baby steps at the moment, and needing some spoon-feeding.  Was there an attachment to your message with the .s19?  I looked at your demo, it is cool, but I'm really a newbie, and right now I'm just trying to get my board back to having the serial monitor installed so I can get back to learning again.  I'll probably buy a demoNE64 like yours as it is apparently more common.  After I learn to crawl, I'll start on the walking and running.
Thanks,
Flint 
0 Kudos