Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC32 using the DEE emulation library

Status
Not open for further replies.

Graham1904

Junior Member level 1
Junior Member level 1
Joined
Aug 13, 2009
Messages
17
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,283
Location
Durban
Visit site
Activity points
1,372
I have posted before but no answers were forthcoming and now I have the same situation again - that of using the DEE emulation for the PIC32.

I have downloaded the DEE library and implemented the functions in the main body of the program but am getting nowhere fast.

Code:
DataEEInit(); // initialise data EE
DataEEWrite(0x1234,0x0000); // write some "test" data to DEE
DEE_Data = DataEERead(unsigned int *data,0x0000); // read data back

A simple test but what is "unsigned int *data" ? I can't see why in a READ statement you need and data in the call.

The routines do not seem to produce any meaningful results.

I have noticed that NVMADDR changes from 0x1D004000 to 0x1D004560 after the DataEEWrite() command but a search for 0x1234 does not reveal any results.

Anyone used these routines successfully before ?

Graham
 

A simple test but what is "unsigned int *data" ?
Whereever you got this strange code, it's not in the PIC32 DEE example downloadable from Microchip. **broken link removed**

The read call passes an unitialized pointer rather than the address of an existing data object, thus it will either generate a bus error exception or do just nothing.

There's a complete example project and I suggest to use it as a starting point if you don't understand the required interface of the DEE library.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top