Program Memory size value?

General discussion on mikroProg™ programmer and debugger and mikroProg Suite software as well.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Program Memory size value?

#1 Post by Dany » 01 Jul 2020 20:38

Hi, for the P24FJ64GB002 three different values are shown for the program memory size in mikroProg suite v2.80:

a- 21K as "Program Memory Size" at the bottom of the config window
b- 64KB as "Flash Memory" in the MCU info window
c- 43K in the "Code Memory dump" window.

I can understand a (number of program Kilo instructions is b/3) and b (number of program Kilobytes) but I can not understand value c.
Rather confusing this last value.
It seems more like an adress range than as a memory size (the pic uses 2 addresses per instruction).
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: Program Memory size value?

#2 Post by hexreader » 01 Jul 2020 21:48

a and b show units of "K Instr" and "KB", which to me seem clear.

As for c...

Datasheet 4.1.1 states...
"it is more appropriate to think of each
address of the program memory as a lower and upper
word, with the upper byte of the upper word being
unimplemented."

So you might argue that showing the number of words in the code windows fits the above statement. Sadly no units are indicated..

Even the datasheet shows confusion. Table 4-1 indicates program memory in words, but then shows the number of instructions :oops:

The "ghost" byte has causes confusion ever since PIC24 was first developed.

The only possible "bug" I can see is (arguably) the lack of units in the code window. Units of "43K words" or "43K Addresses" would be clearer.

Whether some other measure might be preferable is another discussion.
Start every day with a smile...... (get it over with) :)

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: Program Memory size value?

#3 Post by Dany » 03 Jul 2020 19:16

hexreader wrote:
01 Jul 2020 21:48
The only possible "bug" I can see is (arguably) the lack of units in the code window. Units of "43K words" or "43K Addresses" would be clearer.
Whether some other measure might be preferable is another discussion.
Indeed. :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: Program Memory size value?

#4 Post by filip.grujcic » 06 Jul 2020 13:17

Hello,

Thank you for your suggestions, I have passed it onto our developer team for consideration.

Kind regards,
Filip Grujcic

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: Program Memory size value?

#5 Post by Dany » 15 Jun 2021 18:47

Dany wrote:
03 Jul 2020 19:16
hexreader wrote:
01 Jul 2020 21:48
The only possible "bug" I can see is (arguably) the lack of units in the code window. Units of "43K words" or "43K Addresses" would be clearer.
Whether some other measure might be preferable is another discussion.
Indeed. :D
I would like to suggest to use the unit "Addresses" (each "address" points to 1.5 bytes actually).
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Post Reply

Return to “mikroProg™ programmer and debugger”