Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
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______________________________
> 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? Perhaps. So, you expect us to guess whether your button is set up correctly ? -- Michal Konieczny mk@mk@....
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 --- In 68HC12@68HC..., "hc08jb8" <hc08jb8@...> wrote: > > 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 >
>>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? > > Perhaps. So, you expect us to guess whether your button is set up correctly ? I continue, previously the mail got accidentally sent too early ... so Perhaps. So, you expect us to guess whether your button is set up correctly ? In AN2548 there's include file that defines MCU pin that is used for the key. Check what's defined there in your files, check where's the key connected on the board, and you've got the answer if it's matching. If not, then correct it and recompile. For NE64 at 25MHz you also have to set proper values for PLL dividers, AN2548 has some other frequency set by default 8M or 16M), without it you'll get strange SCI baud rates at best. -- Michal Konieczny mk@mk@....
--- Mark Butcher <M_J_Butcher@M_J_...> wrote: > 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 > > > > > > --- In 68HC12@68HC..., "hc08jb8" > <hc08jb8@...> wrote: > > > > 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 > > > > > > > [Non-text portions of this message have been removed]
> > Perhaps. So, you expect us to guess whether your button is set up >>correctly ? Well, what I mean to ask was which is the right button setting, but them I found out from the schematic that it uses PTG4. Sorry for the confusion. > For NE64 at 25MHz you also have to set proper values for PLL > dividers, AN2548 has some other frequency set by default 8M or 16M), without > it you'll get strange SCI baud rates at best. Thanks I'll make the appropriate changes to the code and try. Another quick question, where is the setting in Codewarrior to enable generation of a s19 file? Thanks again. Jay