News:

;) This forum is the property of Proton software developers

Main Menu

How to use Proteus 8 Professional from Positron Studio

Started by Clayton, Feb 04, 2025, 04:17 PM

Previous topic - Next topic

Clayton

Hello all,

I'm at a bit of a loss with this.
I have purchased Proteus 8 Professional (having seen that their Webpage showed the ProtonPlus Logo) thinking that I could use Positron Studio to create applications, and then transfer and debug those within the Proteus VSM environment....

I guess the first question is, is this at all possible?
If so, would there be any information around that would allow me to set up Positron Studio to generate, and then upload the application to Proteus?

If I have posted this in the incorrect location, appologies.....

Any help with this enquiry, gratefully received.

Clayton

I guess another question is, would anyone know how I can set up ProtonPlus as a compiler in Proteus 8 as it doesn't appear in the list of compilers?
I have raised the question with Labcentre, but the answer I got back was, dissapointing, to say the least :)

JohnB

You will have to create your test circuit in Proteus with the appropriate MPU.  Minimum of your MPU and some form of I/O
Then at the head section of you program declare create_cof and compile.
In Proteus point the MPU to your the COF file generated by the compiler.  To do this double click (or may just click cant remember) to bring up the edit dialog for your MPU and browse to your CoF file.
Click on simulate and your program should run in ISIS.

Of course you can use the numerous simulation objects to build a whole circuit around your MPU to simulate I/O functions and of couse Logic analysers, scopes and the a virtual terminal.
JohnB

RGV250

Hi,
I never use a COF file, I just use the BAS or HEX file. I do not know how to run it fro the compiler but I think it is possible. All I do is compile the program and then select the file from the device configuration. Once done you can test, stop and edit the source file. Don't change the name or you will have to change that in the config again. Compile it and go back to the VSM and run it again.
It is quite simple.

Bob
 

Clayton

Thanks JohnB and Bob for your replies and suggestions.

So these suggest that you are not installing the Proton Compiler within Proteus, but are doing all the compiling within Proton IDE/Positron and then just loading the compiled .COF/.HEX/.BAS file into the processor (Right Click/Edit Properties) file location.

When the Proteus project is created, if a 'Firmware' project is selected, Proteus asks for a Compiler to be selected for the project, and this is selected from a list supplied (which at the moment cannot be added to with third party compilers :( ). Which one should be selected (if any)? It would make sense that this compiler will be the one used by Proteus to compile the .BAS file if that were the one loaded into the Processor.

I understand that for the .HEX/.COF files, maybe no compiler will be required, as these are 'essentially' the 'compiled' files.
If I use the .COF file, do I also need to include the .BAS file in the project listing of files?

Again, thanks for the feedback.

Clayton

I think I have worked it out :) I may be wrong...... :D
My error appears that I should just be creating a 'standard' project (not a 'firmware' one), then Proteus doesn't configure /ask for a default compiler.
I then load the .BAS file into the processor, and all appears to work  8)

I'll keep playing and let you know how I get on.

Clayton

Hmmmm, for some reason I seem to get 'Window' corruption when I pause the running.
The Basic listing window shows blank with the following text....

"No source line at address XYZ" where XYZ changes depending on where I pause it.

Pepe

I could insert a breakpoint and see what happens.

RGV250

Hi Clayton,
In the pub at moment but that happens. I think there is either a drop down box where you select file or you use step on or over.
Let me know how you get on and I will try to elaborate if needed.

I mean that thing happens, not me in the pub:-)
Bob

See_Mos

Quote from: Clayton on Feb 06, 2025, 02:30 PMHmmmm, for some reason I seem to get 'Window' corruption when I pause the running.
The Basic listing window shows blank with the following text....

"No source line at address XYZ" where XYZ changes depending on where I pause it.


As Bob said this is normal but I never bothered to find out why.  I just added break points in Proteus.