New User, pre-compile error

uBug12 is a free multi-platform GUI for working with Freescale S12 and S12X MCUs without the need for a BDM pod. It was ported from VB to Java and subsequently enhanced by David Armstrong, and is actively being developed and improved upon. To use it, your target MCU must be pre-loaded with the appropriate version of the Freescale Serial Monitor outlined in AN2548. Most boards sold by Technological Arts already have a version of this monitor pre-loaded. If you wish to load it into your own hardware, you'll need to use a BDM pod (such as the Technological Arts USBDMLT). For this purpose, MCU-specific images of the serial monitor are available for several 9S12 and 9S12X variants from the Support Library, at http://support.technologicalarts.ca/docs/uBug12/.

Moderators: cbarnes, DavidA

New User, pre-compile error

Postby E4ODnut » Fri Feb 07, 2014 4:15 pm

I'm very new to 9S12X programming and completely new to uBug12, so if I'm missing anything obvious here, please bear with me.

I've successfully downloaded and installed uBug12 on my Win 7 machine. I was also successful in using the uBug "Install all" command to download and install the necessary auxiliary programs.

I've successfully loaded the serial monitor program into my MC9S12XDP512 with a USBDM. When I open uBug and type: con, uBug returns "Connected to Com3 MC9S12XDP512 Rev 1.0. When I type: version, uBug returns Serial monitor version 2.3 5/19/2009.

Reading through the uBug user manual I am at the point where I would like to compile "Sample.s", look over the .lst file, then load the .S19 and run it on my board. I have created a project file while connected to the 9S12X and made sure that the includes are configured correctly. When I open uBug and the project folder and type" HSW12ASM Sample.s", it returns
C:\strawberry\perl\bin\perl "C:\Program Files\uBug12\HSW12-master\Perl\hsw12asm.pl" C:\Users\Robert\uBug12 Projects\Sample.s -D none
Problem summary: precompiler error

What am I doing wrong?

Robert
E4ODnut
Beginner
Beginner
 
Posts: 11
Joined: Fri Feb 07, 2014 11:09 am

Re: New User, pre-compile error

Postby DavidA » Thu Feb 13, 2014 11:40 pm

Robert,

First, I apologize for not replying earlier. Second, what is the version of uBug12 that you are using? Is it the latest version? (I know that I put some bug fixes in there for using the hsw12asm assembler.) The most recent version was posted on 17 January 2014. If you are using this version, let me know, and we can do further troubleshooting.

Dave
DavidA
Beginner
Beginner
 
Posts: 10
Joined: Wed Dec 26, 2007 5:53 am

Re: New User, pre-compile error

Postby E4ODnut » Fri Feb 14, 2014 12:24 am

Hi Dave,
No apologies necessary, I expect that you are a very busy man and any time you can spare is much appreciated.

I opened uBug and "help" showed "Ver 3.7 -01/07/2014".

Where do we go from here?

Regards,
Robert
E4ODnut
Beginner
Beginner
 
Posts: 11
Joined: Fri Feb 07, 2014 11:09 am

Re: New User, pre-compile error

Postby DavidA » Fri Feb 14, 2014 1:23 am

Did you try running the command while you are connected to the board? (I know, sounds silly, but this may help.)
DavidA
Beginner
Beginner
 
Posts: 10
Joined: Wed Dec 26, 2007 5:53 am

Re: New User, pre-compile error

Postby E4ODnut » Fri Feb 14, 2014 10:24 am

I gave it another shot.

Opened uBug
Connected to board
Typed: HSW12ASM Sample.s
uBug returned: C:\strawberry\perl\bin\perl"C:\Program Files\uBug\HSW12-master\Perl\hsw12sm.pl"
Can't open list file"\\Sample.lst"

I have Program Files and Program Files (x86). Is something installed in the wrong folder perhaps?
E4ODnut
Beginner
Beginner
 
Posts: 11
Joined: Fri Feb 07, 2014 11:09 am

Re: New User, pre-compile error

Postby DavidA » Fri Feb 14, 2014 11:28 am

Did you open your project folder after connecting to the board?
DavidA
Beginner
Beginner
 
Posts: 10
Joined: Wed Dec 26, 2007 5:53 am

Re: New User, pre-compile error

Postby E4ODnut » Fri Feb 14, 2014 6:53 pm

Yup.
Here's the sequence:
Open uBug
Connect to board
Open project directory
Type "L" command to check to see that Sample.s is in the directory, and it is.
Type "HSW12ASM Sample.s"
Returns the error
E4ODnut
Beginner
Beginner
 
Posts: 11
Joined: Fri Feb 07, 2014 11:09 am

Re: New User, pre-compile error

Postby E4ODnut » Wed Feb 19, 2014 10:27 pm

Anybody?
E4ODnut
Beginner
Beginner
 
Posts: 11
Joined: Fri Feb 07, 2014 11:09 am

Re: New User, pre-compile error

Postby DavidA » Wed Feb 19, 2014 10:52 pm

I haven't forgotten about this. I'm going to look through the code and see what I can find.
DavidA
Beginner
Beginner
 
Posts: 10
Joined: Wed Dec 26, 2007 5:53 am

Re: New User, pre-compile error

Postby E4ODnut » Thu Feb 20, 2014 10:25 am

Thanks. It would be much appreciated because I'm pretty much stalled here.
E4ODnut
Beginner
Beginner
 
Posts: 11
Joined: Fri Feb 07, 2014 11:09 am

Re: New User, pre-compile error

Postby DavidA » Fri Feb 21, 2014 9:52 am

Could you please go to File > Record Session, right after starting uBug12JE? Then repeat all the steps needed to recreate the problem, Finally, go back to the 'Record Session' option to turn it off. You will be prompted to save the output to a file. Send the file to Carl at sales@technologicalarts.ca and let him know to forward it to me. This will provide me with the exact information I need to attempt to recreate your issue, and thereby work on a solution. Thanks for your patience!
DavidA
Beginner
Beginner
 
Posts: 10
Joined: Wed Dec 26, 2007 5:53 am

Re: New User, pre-compile error

Postby DavidA » Sat Feb 22, 2014 12:27 pm

I had created a test project folder without connecting to a board first. I then tried assembling the test program as follows:

>HSW12ASM Sample.s
C:\strawberry\perl\bin\perl "C:\Program Files (x86)\uBug12\HSW12-master\Perl\hsw12asm.pl" C:\Users\uBug12\Documents\test\Sample.s -D none

COMPILE RUN UNDEFINED SYMBOLS REDEFINED SYMBOLS
=========== ================= =================
1 0 0

The uBug12 version is "Product Version: 3.7 - 01/07/2014" just as you had reported. So this worked for me. You might try this. Meanwhile, I'll see if connecting to the S12XD board before creating your project folder is causing an issue.
====
Hah! I think I might know the problem. Since you created the project folder after connecting to the board, the folder ONLY gets the specific definition files for that board. (Cuts down on the clutter in the directory.) That's all well and good. However, you HAVE to edit the Sample.s file before you can assemble it! The reason is that the default processor it is set for is the S12C32. Since the project directory does not have that definition file, it fails.

The Sample.s file has to be edited so that it references the correct definitions file for your board:

; Select a Technological Arts board
;#INCLUDE ESD12C32.s
;#INCLUDE ESD12C128.s
;#INCLUDE AD9S12C32M.s
;#INCLUDE AD9S12C128M.s
;#INCLUDE AD9S12DP512SM2.s
;#INCLUDE AD9S12E128M.s
;#INCLUDE AD9S12EQ128M.s
;#INCLUDE AD9S12E256M.s
;#INCLUDE AD9S12NE64M.s
#INCLUDE AD9S12XDP512M2.s
;#INCLUDE AD9S12XEP100M2.s
;#INCLUDE AD9S12XS128M.s
;#INCLUDE NC12C32S.s
;#INCLUDE NC12DXC32S.s
;#INCLUDE NC12MAXC32S.s
;#INCLUDE NC12MAXC128S.s
;#INCLUDE NEC12M64.s

Try this and see if it solves the issue for you. Again, I apologize that this has taken so long.
DavidA
Beginner
Beginner
 
Posts: 10
Joined: Wed Dec 26, 2007 5:53 am

Re: New User, pre-compile error

Postby E4ODnut » Sun Feb 23, 2014 12:17 pm

Hi Dave,
I already had modified "Sample.s" to include AD9S12XDP512M2.s

I tried "HSW12ASM Sample.s" both with the board connected and not connected, both times the screen reads the following:


Welcome to uBug12, Java Edition.
Copyright 2012-2013 by Technological Arts.
Released under the GNU General Public License Ver. 3.
For initial help with this program, type: help start
>HSW12ASM Sample.s
C:\strawberry\perl\bin\perl "C:\Program Files\uBug12\HSW12-master\Perl\hsw12asm.pl" \Sample.s -D none
Can't open list file "\\Sample.lst"

Now, as you can see, the path points to "Program files", where uBug is installed. But, when I had a look around I see another, what looks like an identical set of files, also installed in "Program Files (x86)".

When I look at your path, after "asm.pl" it points to C:\Users\uBug ---. Mine does not and Sample.s is located at Users\Robert\uBg12 Projects.

Does any of this give you a clue?

I'll run a "record session" and see what that reveals.

Regards,
Robert
E4ODnut
Beginner
Beginner
 
Posts: 11
Joined: Fri Feb 07, 2014 11:09 am

Re: New User, pre-compile error

Postby E4ODnut » Sun Feb 23, 2014 12:38 pm

Dave,
In Ubug > file, I don't see a "record session" but I do see a "Save Transcript". I selected it and saved two files for you. The first one is an attempt with the board not connected, the second is with the board connected. I've fired them off to Carl.

Regards,
Robert
E4ODnut
Beginner
Beginner
 
Posts: 11
Joined: Fri Feb 07, 2014 11:09 am

Re: New User, pre-compile error

Postby E4ODnut » Tue May 27, 2014 9:06 am

Hi Dave,
Sorry to bother you again, but I'm still stuck in the glue here.

I've decided to stick with programming my 9S12X in assembler in a Windows environment. The learning curve for the CPU is hard enough and learning "C" is just too much. Same for Linux. I have been using Code Warrior Special Edition to do some preliminary work and a USBDM with HCS12Flash Programmer to load the S.19 files.

I've made another attempt to use Ubug12 and hsw12asm. I re-installed Win7 Pro on my lap top and have a fresh install of Java and Ubug. Ubug is installed in C:\Program Files (x86)\uBug12 and the
rxtx files are in C:\Program Files (x86)\Java\jre6\bin\\rxtxSerial.dll and C:\Program Files (x86)\Java\jre6\lib\ext\RXTXcomm.jar.

I re-loaded the serial monitor program from Tech Arts site into my CPU. Ubug will connect to my CPU just fine, but when I type in 'hsw12asm sample.s' it returns:

C:\strawberry\perl\bin\perl"C:\Program files (x86)\uBug12\hsw12-master\perl
hsw12asm.pl"\sample.s -D MC9S12XDP512
Can't open list file "\\sample.lst"

This is pretty much where I was several months ago. Do you have any suggestions for me?

Regards,
Robert
E4ODnut
Beginner
Beginner
 
Posts: 11
Joined: Fri Feb 07, 2014 11:09 am

Next

Return to uBug12 (Java Edition)

Who is online

Users browsing this forum: No registered users and 1 guest

cron