Home     Company     Products     Services     Community     Download     Store
    []
Community
Community
Login Form





Lost Password?
No account yet? Register
Evidence Forum
Welcome, Guest
Please Login or Register.    Lost Password?
DMA1Interrupt (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: DMA1Interrupt
#162
roberto.bucher@supsi.ch (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
DMA1Interrupt 3 Months, 2 Weeks ago Karma: 0  
Following the info of Daniele Zadra I've added some functions to the ee_board.c file in order to work with the multibus card and the CAN bus.

For the CAN, a _DMA1Interrupt has been defined. The same function has been defined for the implementation of the USB communication in the new 1.4.3 release too. Now, I have a function defined twice!
I commented the function of the USB, but this is not the right solution...

Roberto
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#163
paolo.gai (Admin)
Admin
Posts: 108
graph
User Offline Click here to see the profile of this user
Re:DMA1Interrupt 3 Months, 2 Weeks ago Karma: 4  
Hi Robi!

The problem is the following:

- the function _DMA1Interrupt is the DMA interrupt, which is the DMA used by Francesco for the SPI connection to the PIC18 of the Flex Full.

- Then, the file ...evidenceeeexamplespic30pic30_scicosconf_scicos.oil has the following lines
BOARD_DATA = EE_FLEX {
TYPE = DEMO {
OPTIONS = ALL;
};
};

"ALL" includes all the supports for the demo board... meaning... -also- the USB.

What you can do is the following:

Create a separate EE configuration that you can use to generate code. To do that, copy the directory

Evidence/examples/pic30/pic30_scicos

into

Evidence/examples/Robi/myconfiguration

Then change the ID in the template._xml_. The ID is the string that is then used into the FLEX codegen in scicos.

Then, change the BOARD_DATA section

BOARD_DATA = EE_FLEX {
TYPE = MULTI {
OPTIONS = ALL;
};
};

to use the MULTIBUS daughter board (which is the one you are currently using for the CAN bus).

---

As a general comment, it is probably good to synchronize ourselves in using the DSpic resources. For that reason, I just created a Wiki page to track peripheral usage in the various FLEX boards...

Ciao!

PJ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Evidence S.r.l. - PIVA: 01638690501
Via Carducci 64/A - Ghezzano - Pisa - Italy
Privacy Policy