mP v.7.0.1 - VTFT v4.6.1 generates incomplete project

General discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
VCC
Posts: 463
Joined: 08 Jun 2009 18:31
Location: Romania

mP v.7.0.1 - VTFT v4.6.1 generates incomplete project

#1 Post by VCC » 26 Oct 2017 11:20

Main post: viewtopic.php?f=106&t=71100
mikroPascal PRO for dsPIC v.7.0.1
Visual TFT 4.6.1

Standalone VTFT generates project without device information. The project generated by mikroPascal, in VTFT mode (internal VTFT), generates a working project as expected.
If the standalone version of VTFT is no longer supported, please release a live update which makes VTFT display that information at start-up, so we all know it.

How to reproduce:
1. Open Visual TFT 4.6.1 (the standalone version)
2. Click Project -> New, and select a folder for a new project.
3. Click OK on the "New Project" dialog. "Project Settings" dialog should open.
4. In the "Hardware Patters" combo box, select "mikromedia_for_PIC24EP_9A".
5. Select "mikroPascal PRO for dsPIC" in the "Target Compiler" combo box, then click on the "Advanced Settings" button.
Notice that the "Target Device" combo box is empty.
6. Open the board definition file, mikromedia_for_PIC24EP_9A.xml from \Visual TFT\Board Defs folder, and notice that the DEFAULT_DEVICE node, contains the proper value: P24EP512GU810.
The value is simply not loaded into "Target Device" combo box from the "Project Settings" window. However, there are some board definitions, which work, e.g. Mikromedia_Plus_for_STM32_ARM.
The "Target Device" combo box is readonly, so manually adding P24EP512GU810, is not possible.
Another issue with this dialog is that the "Target Compiler" always changes to mikroC when selecting a new hardware pattern.
7. Click OK on the "Project Settings" dialog, to confirm the desired settings.
8. Save the project, then click on "Generate Code" button.
9. Browse to the generated project files and load the mppds file with Notepad. Notice the "Name" key under "DEVICE" section, is empty.
10. As expected, loading this project with mikroPascal, displays various errors about the missing information.
Comparing the mikromedia_for_PIC24EP_9A.xml from "Visual TFT\Board Defs" folder to the mikromedia_for_PIC24EP_9A.xml from "mikroPascal PRO for dsPIC\Board Defs" folder, shows differences only at the initialization code, not on the device information.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: mP v.7.0.1 - VTFT v4.6.1 generates incomplete project

#2 Post by lana.arsic » 27 Oct 2017 16:56

Hi,

I have answered you here:

viewtopic.php?f=106&t=71100&p=286940#p286940

Kind regards,
Lana

OT
Posts: 581
Joined: 19 May 2005 05:08
Location: Fairbanks, Alaska

Re: mP v.7.0.1 - VTFT v4.6.1 generates incomplete project

#3 Post by OT » 30 May 2018 21:37

VCC wrote:Main post: viewtopic.php?f=106&t=71100
mikroPascal PRO for dsPIC v.7.0.1
Visual TFT 4.6.1

Standalone VTFT generates project without device information. The project generated by mikroPascal, in VTFT mode (internal VTFT), generates a working project as expected.
If the standalone version of VTFT is no longer supported, please release a live update which makes VTFT display that information at start-up, so we all know it.

How to reproduce:
1. Open Visual TFT 4.6.1 (the standalone version)
2. Click Project -> New, and select a folder for a new project.
3. Click OK on the "New Project" dialog. "Project Settings" dialog should open.
4. In the "Hardware Patters" combo box, select "mikromedia_for_PIC24EP_9A".
5. Select "mikroPascal PRO for dsPIC" in the "Target Compiler" combo box, then click on the "Advanced Settings" button.
Notice that the "Target Device" combo box is empty.
6. Open the board definition file, mikromedia_for_PIC24EP_9A.xml from \Visual TFT\Board Defs folder, and notice that the DEFAULT_DEVICE node, contains the proper value: P24EP512GU810.
The value is simply not loaded into "Target Device" combo box from the "Project Settings" window. However, there are some board definitions, which work, e.g. Mikromedia_Plus_for_STM32_ARM.
The "Target Device" combo box is readonly, so manually adding P24EP512GU810, is not possible.
Another issue with this dialog is that the "Target Compiler" always changes to mikroC when selecting a new hardware pattern.
7. Click OK on the "Project Settings" dialog, to confirm the desired settings.
8. Save the project, then click on "Generate Code" button.
9. Browse to the generated project files and load the mppds file with Notepad. Notice the "Name" key under "DEVICE" section, is empty.
10. As expected, loading this project with mikroPascal, displays various errors about the missing information.
Comparing the mikromedia_for_PIC24EP_9A.xml from "Visual TFT\Board Defs" folder to the mikromedia_for_PIC24EP_9A.xml from "mikroPascal PRO for dsPIC\Board Defs" folder, shows differences only at the initialization code, not on the device information.
Strange, I was not able to reproduce this with 4.6.1 on my system. At step 5 the combo box is not blank. Could I have a definition file from another install?
mikropascal dsPIC, Visual TFT, MMBdsPIC v.105, 1.10_9A, mikroProg, "Big"(P30F6012A)EasydsPIC2

VCC
Posts: 463
Joined: 08 Jun 2009 18:31
Location: Romania

Re: mP v.7.0.1 - VTFT v4.6.1 generates incomplete project

#4 Post by VCC » 31 May 2018 08:55

OT wrote:Strange, I was not able to reproduce this with 4.6.1 on my system. At step 5 the combo box is not blank. Could I have a definition file from another install?
See attached.
Attachments
mikromedia_for_PIC24EP_9A.xml.zip
(2.64 KiB) Downloaded 125 times
EmptyTargetDevice.png
EmptyTargetDevice.png (18.28 KiB) Viewed 2955 times

OT
Posts: 581
Joined: 19 May 2005 05:08
Location: Fairbanks, Alaska

Re: mP v.7.0.1 - VTFT v4.6.1 generates incomplete project

#5 Post by OT » 31 May 2018 11:12

From a VM with only 7.1 and VTFT 4.6.1 installed, VTFT 4.6.1 project setting:
MP71VTFT461Project.jpg
MP71VTFT461Project.jpg (380.97 KiB) Viewed 2952 times
mikropascal dsPIC, Visual TFT, MMBdsPIC v.105, 1.10_9A, mikroProg, "Big"(P30F6012A)EasydsPIC2

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: mP v.7.0.1 - VTFT v4.6.1 generates incomplete project

#6 Post by petar.suknjaja » 04 Jun 2018 13:58

Hi,
I also couldn't reproduce the error.
If you are using Windows 10, try running it as Administrator.

If not, try to reinstall the VTFT.

Kind regards,
Petar
Attachments
1233321.png
1233321.png (36.55 KiB) Viewed 2933 times

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 General”