Summary ver. 4.1

Beta Testing discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
OT
Posts: 581
Joined: 19 May 2005 05:08
Location: Fairbanks, Alaska

Summary ver. 4.1

#1 Post by OT » 04 Oct 2010 00:36

I think it is remarkable that almost about all issues in 4.0beta was IDE related issues, very little with the compiler itself, in spite of about 2x the compiler speed. Either we beta testers are not doing our job well enough :shock: or we have gotten a stable, efficient and fast dsPIC pascal pro compiler. :D :D :mrgreen:

The slugginess/exceptions of the editor with certain projects, bug in search and replace, the indent text issue all appear to have been fixed. One or two minor issues seems always to be forgotten though, and it seems it would have taken less time to fix than responding to posts though multiple versions and assuring it will be fixed.... :evil: It also seems that it is very hard to get the project groups right. And it is still not understandable why the text output speed of the USART terminal needs to remind of a session with a mainframe in the 70ties... :oops:
But none of these are show stoppers, and eventually it will probably be set right. :D :D

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Re: Summary ver. 4.1

#2 Post by JimKueneman » 28 Nov 2010 22:30

I think it is remarkable that almost about all issues in 4.0beta was IDE related issues, very little with the compiler itself, in spite of about 2x the compiler speed. Either we beta testers are not doing our job well enough :shock: or we have gotten a stable, efficient and fast dsPIC pascal pro compiler.
I too have to chime in on this. I have not done much with the compiler since version 3.8. I have spent the last few days with 4.10 and I have to say this is the FIRST time I have spent my entire time with the MikroPascal compiler fixing bugs in my code rather than trying to decide if the problem was the compiler or my code. The only thing I see is the editor get sluggish and I got one exception during this time where it said the app had exhausted all the handles the OS was capable of (Vista 32 bit). Once it starts getting sluggish a restart seems to fix it. I am finally very happy with the dsPIC compiler, good work guys.

Jim

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Summary ver. 4.1

#3 Post by zristic » 29 Nov 2010 09:20

We solve the "sluggish" problem too, the beta release is scheduled for this week, so you can check it out as well.

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Re: Summary ver. 4.1

#4 Post by JimKueneman » 02 Dec 2010 06:56

Spoke too soon :(

http://www.mustangpeak.net/CommandStation.zip

Compile it and look at the XpressNet.mpas file line 171. Run the debugger and break here:

Code: Select all

procedure WriteXpressNetByte(DataByte: Word; SetAddressBit: Boolean; TxReg: PWord; TxStaReg: PWord);
begin
  {$IFNDEF DEBUG_DISABLE_XPRESSNET_UART_WRITE}
  if SetAddressBit then
    DataByte := DataByte or $0100
  else
    DataByte := DataByte and $00FF;
    
  U2TXREG  := DataByte;
  TxReg^ := DataByte + 1;
  TxStaReg^ := DataByte - 1;
Notice in the watch variables that the parameter passed TxReg contains the value 0x0218 (which is the special register U2STA) and TxStaReg contains 0xFFF. What should have been passed is TxReg = 0x021A and TxStaReg = 0x218. Something is wrong in the parameter passing....

It looks like the last three parameters are mixed up.

Jim

Wow, I just tried swapping the parameter list around (the PWords the beginning) and it still compiled :? So a Word, Boolean, and PWord are all considered interchangeable types?

Can anyone reproduce this?

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Re: Summary ver. 4.1

#5 Post by JimKueneman » 02 Dec 2010 07:08

Sorry I had a parameter reversed. But the last statement still holds how can I have a point to a Word and a Boolean interchanged without a compiler warning? That is way I use Pascal to keep myself from shooting my own foot!

Jim

Post Reply

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