Proton BASIC Community

Proton (Positron) => Third party IDEs => Positron Studio => Topic started by: JohnB on Apr 10, 2021, 03:43 PM

Title: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 10, 2021, 03:43 PM
With Positron Studio 2.0.2.2 you can now download Microchip(R) Data and errata sheets on the device in your current project.  These files can be saved locally for quick access.

Other changes include:
Fixed Access Violation when opening files in 32bit OS's.
Minor Highlighter improvements.
Clippings list will now ask for a caption when copying selections to clipboard.

Download Positron Studio 2.0.2.2 (https://www.dropbox.com/s/m8etjo56bssei6j/Positron%20Studio%20Setup%202.0.2.2.exe?dl=0)
Title: Re: Positron Studio 2.0.2.2 Update
Post by: trastikata on Apr 10, 2021, 04:03 PM
John, Avast returns false positive unlike before.

AVP.jpg
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 10, 2021, 10:21 PM
The addition I have made requires connecting out to the web to retrieve the Microchip datasheets. Maybe that is what is triggering the alert. Avast has done this before on earlier versions of this program. Be assured there is no malware in Positron Studio. 
Title: Re: Positron Studio 2.0.2.2 Update
Post by: RGV250 on Apr 10, 2021, 11:01 PM
Norton360 is happy with it.

Bob
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 11, 2021, 11:50 AM
@trastikata Have Avast come back to you - are you still blocked?
Title: Re: Positron Studio 2.0.2.2 Update
Post by: trastikata on Apr 11, 2021, 12:50 PM
@JohnB
 
It was unlocked yesterday after couple of hours.

It seems that if you have I-net Avast will connect and check with their servers and will unlock the file immediately if it has been cleared before by others. I downloaded a new copy and ran the file, Avast complained about a suspicious file but after few seconds released the file and gave a good to install.


AVP1.jpg
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 11, 2021, 01:32 PM
Glad you are sorted
Title: Re: Positron Studio 2.0.2.2 Update
Post by: Gary Scott on Apr 11, 2021, 04:06 PM
I'm on Winblows10, when I try to download datasheet or errata I get "unable to download" I have given Positron an exception through my firewall, what else do I need to open up?
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 11, 2021, 04:20 PM
I don't believe you need to set anything up.

I am using "https://ww1.microchip.com/downloads/en/DeviceDoc/" as the root directory with the document file name. 
 e.g. https://ww1.microchip.com/downloads/en/DeviceDoc/70293G.pdf

If that works you should be able to download the files.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: okmn on Apr 11, 2021, 06:00 PM
why i took these errors after for each compiling


positron err2jpg.jpg  positron error.jpg
Title: Re: Positron Studio 2.0.2.2 Update
Post by: Gary Scott on Apr 11, 2021, 06:13 PM
Quote from: okaman on Apr 11, 2021, 06:00 PMwhy i took these errors after for each compiling

Did you copy/paste? I have had problem with copy and paste. Typing the code solves the problem for me
Title: Re: Positron Studio 2.0.2.2 Update
Post by: okmn on Apr 11, 2021, 06:40 PM
no copy paste i did.
i runed 2 samples codes  in positron samples menu/list direct!

i also tried some others samples  in samples list of positron default now
the result is same when i pressed "compile" creatig same error
Title: Re: Positron Studio 2.0.2.2 Update
Post by: charliem on Apr 11, 2021, 08:47 PM
Hello JohnB,

   Thanks for all the Effort and Hard work on this IDE. I really commend your sacrifice and Dedication.

  I downloaded your latest version and tried to get the datasheet by clicking on the blue exclamation point
By the device at the bottom of the editor screen. I get a error "unable to download file"  any ideas?

Thanks

Charlie
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 11, 2021, 09:44 PM
@charliem see my response to Gary Scott try the link out if you can get that you should be able to get others.

I am not having problems here and I'm on windows 10
Title: Re: Positron Studio 2.0.2.2 Update
Post by: Gary Scott on Apr 11, 2021, 11:24 PM
Quote from: JohnB on Apr 11, 2021, 09:44 PM@charliem see my response to Gary Scott try the link out if you can get that you should be able to get others.

I am not having problems here and I'm on windows 10

Here is what I get with the provided link
An error occurred while processing your request.

Reference #132.2dfb3b17.1618183438.179b49ed
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 12, 2021, 06:04 AM
I can get that error if the actual link is incorrect or incomplete e.g.

https://ww1.microchip.com/downloads/en/DeviceDoc/
https://ww1.microchip.com/downloads/en/DeviceDoc/702x3G.pdf

both produce that error but

https://ww1.microchip.com/downloads/en/DeviceDoc/70293G.pdf

returns the page.

It is possible that there are errors or more likely out of date links in the link file as these have been scraped from the site.

Stephen Moss has pointed me to a file which comes with MPLAB X which might contain suitable link information.  I will look into it for the next release.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: DaveS on Apr 12, 2021, 03:25 PM
Quote from: charliem on Apr 11, 2021, 08:47 PMHello JohnB,

  Thanks for all the Effort and Hard work on this IDE. I really commend your sacrifice and Dedication.

  I downloaded your latest version and tried to get the datasheet by clicking on the blue exclamation point
By the device at the bottom of the editor screen. I get a error "unable to download file"  any ideas?

Thanks

Charlie
Hi Charlie

What device are you using, then the link info can be checked

Dave
Title: Re: Positron Studio 2.0.2.2 Update
Post by: DaveS on Apr 12, 2021, 09:22 PM
Hi John

I have ran a test on all links in the files, I supplied and found one invalid link to a Pdf file, P18F84J90 datasheet file only.

Dave
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 12, 2021, 09:36 PM
@DaveS Thank you, they haven't reported back to me which device they were trying to get the datasheet from so I cannot take the issue further without more information.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: charliem on Apr 13, 2021, 08:34 AM
 I tried it with 12F675 , 10F200, 16F88 none of these worked to open a datasheet.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: Gamboa on Apr 13, 2021, 09:01 AM
Hi,

I have tried three microcontrollers and they all say the same: "Unable to Download File".
18F46J50, 18F24J50, 18F25K22
Unable.png

Regards,
Gamboa

 
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 13, 2021, 11:00 AM
It downloaded for me here so I guess its some locality issue.  Are there any devices you can download?
The root URL I am using is https://ww1.microchip.com/downloads/en/DeviceDoc/

so try

https://ww1.microchip.com/downloads/en/DeviceDoc/70293G.pdf  That should return PIC24HJ family device datasheet
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 13, 2021, 11:31 AM
@Gamboa I have create a new version (executable only) which prints out the url of the file it is trying to download.
If it fails you should see the URL listing in the messages panel.  If you contact me on support@positronStudio.co.uk I will send you a link to download and try out.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: DaveS on Apr 13, 2021, 01:08 PM
permissions problem, if you run admin you can download one file.
*JohnB will send an email, I know why you can only download one file

DaveS
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 14, 2021, 01:03 PM
There does seem to be a problem downloading datasheet files from the web.  Run the application from a different drive e.g. D:\ downloading will work.  On the C:\ drive it doesn't. 
Apologies, I never spotted this before.
I will update when I am closer to the solution. Any suggestions meantime would be very welcome, this is not a problem I have come across before.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: keytapper on Apr 14, 2021, 01:24 PM
The permission for Windows 7 onward are become tighter. There must be two separated areas where the program resides and where the program uses its own data, usually c:\ProgramData (which is hidden by the SO).
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 14, 2021, 02:43 PM
I have the program in Program Files\positron studio
and I am using AppData\Positron Studio for local storage.
I have tried using the D: drive for my local data but that makes no difference.
I cannot link the debugger to the application in Program Data again because of access permissions.
I am wondering if I can temporarily elevate my permissions just while I access the net. Sounds a bit dubious to me.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 14, 2021, 02:59 PM
I have proved the issue.  If you run as Administrator the download work perfectly.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: trastikata on Apr 24, 2021, 07:03 PM
John,

just an idea ... I see now double-clicking on a Sub's name selects it, but what do you think of jumping to the Sub instead?

In my opinion (if this is possible to implement and you are willing) this will make easier to follow code whenever you have GoSub directive.

Regards
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 25, 2021, 06:38 AM
I assume that would also apply to GoTo Proc and Sub.  You can always jump to them from the Explorer.  If I were to implement something like that I would prefer to do it from the context menu. What do others think?
Title: Re: Positron Studio 2.0.2.2 Update
Post by: John Drew on Apr 25, 2021, 10:08 AM
Re the double click to Gosub would mean a change to the new search option which I have come to like John.
I'm assuming that the suggestion would also apply to Procedure calls.
By the way, I'm having troubles with the identified PIC not reflecting the one in use.
 But I must admit my version is now two builds old.
Cheers
John
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 25, 2021, 03:40 PM
My suggestion is to add 'Find Declaration' entry to the Context Menu.
This will then navigate to the start of the Sub, Label or Procedure.
Conversely, I am thinking of adding another context menu entry 'Search for Usage'. 
This would report all the places in the project that the item is used.

Comments please before I invest more time on this.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: trastikata on Apr 25, 2021, 04:18 PM
The Context Menu option is better option than the double-click I proposed. As for "Search for Usage" - I am not sure how  will facilitate programming.

My reasoning behind the "Double-click/Context Menu" option is because whenever I am using multiple (sub)procedures and I am calling them, sometime I need to verify or remind myself something in the (sub)procedures, it gets tiresome to browse the explorer looking for the procedure. Sure, now the alphabetical sorting helps a lot, but still I lose concentration browsing those (sub)procedures.

Of course, I only speak out my personal experience which might be much different from others preferences.

Regards
Title: Re: Positron Studio 2.0.2.2 Update
Post by: Stephen Moss on Apr 26, 2021, 12:22 PM
Quote from: trastikata on Apr 24, 2021, 07:03 PMjust an idea ... I see now double-clicking on a Sub's name selects it, but what do you think of jumping to the Sub instead?
Double clicking anything in the code window will select it and inserts it into the find, if you then click F3 it will jump to the next instance of the Subroutines name. It may not directly take you to the subroutine itself but a couple of button presses to reach it is hardly time consuming and if you want to go there then select if form the code explorer.
An alternative method is to start looking at writing all code a projects, that way you can put all your subroutines in an include file, and use the include files code explore to jump to a specific subroutine. The advantage of that is that you can have the two files open so you can flip form one to another without loosing you place in the primary file, as opposed to jumping around in a single file. Or for a single file you could use the split screen to display the subroutines contents but you would have to scroll to find it.

Consequently, I personally don't think it is a necessary addition as there already ways of jumping to a subroutine.

Quote from: JohnB on Apr 25, 2021, 03:40 PMConversely, I am thinking of adding another context menu entry 'Search for Usage'. 
This would report all the places in the project that the item is used.
Would that replace or be in addition to the existing Project Find method as it sounds like it will be doing the same thing?
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 27, 2021, 07:38 AM
@Stephen Moss  I tend to agree with you that it is not a necessary feature as there are a number of ways you can navigate to it now.  The only advantage that Find Declaration would offer is the ability to extend the search into referenced includes and open the file holding the declaration.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: See_Mos on Apr 28, 2021, 01:40 PM
I just tried to use PPS in Positron Studio 2.0.2 build 1 with Device = 18F47Q10 and 18F27Q10

PPS is enabled in the tools menu but opening it says that PPS in not supported.

What am I missing?

Title: Re: Positron Studio 2.0.2.2 Update
Post by: flosigud on Apr 28, 2021, 07:43 PM
Last time I checked PS only supported PPS with 16 bit PIC's.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: JohnB on Apr 28, 2021, 09:54 PM
The PPS information is derived from the PPI or DEF files supplied with the compiler which as far as I know are only available in some 16 bit devices. Some time ago I took an interest in a VB application which uses Microchip files to generate PPS codes for 8bit devices.  Time pressure on the main Studio development has diverted me.  When I get time I will reinvestigate and see if I can implement a version to cover the wider range of 8bit and 16bit devices.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: trastikata on Apr 29, 2021, 08:24 AM
Hello,

I am not sure if it has been discussed before, but I was wondering is there a way to use Pickit 3 directly from the IDE?
Title: Re: Positron Studio 2.0.2.2 Update
Post by: joesaliba on Apr 30, 2021, 05:51 AM
You should be able to. Got o Tools > Configure Programmers, and add a new programmer.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: trastikata on Apr 30, 2021, 06:06 AM
Quote from: joesaliba on Apr 30, 2021, 05:51 AMYou should be able to. Got o Tools > Configure Programmers, and add a new programmer.

That much I can figure out, have you actually tried it? I am talking about the specifics.
Title: Re: Positron Studio 2.0.2.2 Update
Post by: Gamboa on Apr 30, 2021, 08:12 AM
Trastikata,

I have tested it for part PIC18F46J50. The operation is correct.

The PICkit3 no volts supply parameters:
-P$target-device$ -F$long-hex-filename$ -E -M -B -L -Y

The PICkit3 3.3 volt supply parameters:
-P$target-device$ -F$long-hex-filename$ -E -M -B -L -Y -V3.3

The PICkit3 5 volt supply parameters:
-P$target-device$ -F$long-hex-filename$ -E -M -B -L -Y -V5.0

Screenshots are attached 

Regards
Gamboa
Title: Re: Positron Studio 2.0.2.2 Update
Post by: trastikata on Apr 30, 2021, 12:09 PM
Quote from: Gamboa on Apr 30, 2021, 08:12 AMI have tested it for part PIC18F46J50. The operation is correct.

Gamboa,

thank you for the parameters list and the name of the exe file.

However something's not working on my machine. I run Positron Studio as Administrator, also I changed pk3cmd.exe to run as Administrator, but still when I try programming from the Positron IDE, the Command Line window closes as soon as it opened. Any suggestion to why it behaves this way?

Regards
Title: Re: Positron Studio 2.0.2.2 Update
Post by: top204 on Apr 30, 2021, 01:54 PM
With a standard command line interface to a PICkitX programmer, errors and confirmations are never seen because the application closes down immediately. Silly I know, but that's microchip for you. LOL

I've always found it more useful to create a .bat file, so the parameters from an IDE are passed the the .bat file that calls the PICkitX program, then a Pause command can be placed at the end of the .bat file, so what has happened while programming can be seen in the console window. Then a key press closes the .bat file.

Many years ago, I created a couple of .bat files for the PICkit3 command line program. Here's the contents of one of them:

PK3CMD.exe -MP -ME -MC -MB -L -V3.3 -P%1 -F%2
Pause

And another.

PK3CMD.exe -MP -ME -MC -MB -L -P%1 -F%2
Pause

I had the .bat files named powered.bat and unpowered.bat, but I can't remember what powered what with them now. :-)
Title: Re: Positron Studio 2.0.2.2 Update
Post by: okmn on May 12, 2021, 08:58 PM
Quote from: okmn on Apr 11, 2021, 06:00 PMwhy i took these errors after for each compiling


positron err2jpg.jpg  positron error.jpg


i find the reason that why i was taking error when i command "compile" for any sample codes in positron default list(without re typing)

i had windows 10 home single lamguage licenses on my desktop pc
i bought win 10 pro now and dont have any compile errorpositron studio 2.0.2.3

it is jjust little not to interest with it.