PIC24FJ EPMP / EDS issue

General discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
jmusselman64
Posts: 31
Joined: 15 May 2018 21:05

PIC24FJ EPMP / EDS issue

#1 Post by jmusselman64 » 04 Jun 2018 01:44

Hello,

I'm converting an application to Mickrobasic that uses the PI24FJ128GA204 on the Microchip PIC24 Curiosity board.
The code uses the EPMP on that chip to drive an LCD display using a circular buffer and timer.

So far so good except for the following:

Code: Select all

dim LCDCMD as word absolute 0x8000             ' RS = 0  For each address, bit 15 is set to trigger EDS. (See datasheet)
dim LCDDAT as word absolute 0x8002             ' RS = 1
These lines give 'Bad absolute address' errors.

From what I can tell, the area above 0x7FFF is undefined in the .mlk file for that chip.

Is this function unimplemented in Mikrobasic?
If so, how would I attempt this ?

Thanks,
Jerry

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC24FJ EPMP / EDS issue

#2 Post by filip » 04 Jun 2018 08:51

Hi,

I have tried this in the 7.1.0. version (latest) and I could compile this without any errors.

Regards,
Filip.

jmusselman64
Posts: 31
Joined: 15 May 2018 21:05

Re: PIC24FJ EPMP / EDS issue

#3 Post by jmusselman64 » 04 Jun 2018 14:39

Thanks, Filip...

..but I should have included the entire test code:

Code: Select all

program EPMP_test

dim LCDCMD as word absolute 0x8000             ' RS = 0  For each address, bit 15 is set to trigger EDS. (See datasheet)
dim LCDDAT as word absolute 0x8002             ' RS = 1

main:
'   Main program 

LCDCMD = 0x55

LCDDAT = 0xAA

end.
This gives the errors I mentioned.

Thanks, Jerry

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC24FJ EPMP / EDS issue

#4 Post by filip » 05 Jun 2018 16:07

Hi,

The addresses above 0x8000 belong to Extended Data Space, which is currently not supported by the compiler,
the compiler allocates 8K of RAM for this device (you may see this upon compilation).

Maybe I can do a little tweak in the MLK file, but I'm not sure that it will work, I will let you know.

Regards,
Filip.

jmusselman64
Posts: 31
Joined: 15 May 2018 21:05

Re: PIC24FJ EPMP / EDS issue

#5 Post by jmusselman64 » 05 Jun 2018 16:36

Thanks Filip...I'd appreciate anything you can do.

I think this module would be a good addition to Libstock when finished.

Jerry

jmusselman64
Posts: 31
Joined: 15 May 2018 21:05

Re: PIC24FJ EPMP / EDS issue

#6 Post by jmusselman64 » 23 Aug 2019 18:54

Hello Philip,

I'd really like to implement this chip in a project...have you been able to find a work-around for the compiler to recognize the EDS memory ?

Thanks much,
Jerry

Post Reply

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