Porting to PIC18F Microchip XC8 compiler

Configuring cocoOS

Porting to PIC18F Microchip XC8 compiler

Postby whywhy » Sun Dec 16, 2012 3:58 pm

Any idea how to port this architecture? How to test thoroughly?
whywhy
 
Posts: 6
Joined: Sun Dec 16, 2012 3:50 pm

Re: Porting to PIC18F Microchip XC8 compiler

Postby peter » Tue Dec 18, 2012 7:45 am

It is very easy to port cocoOS to other targets.
The first thing you should do is to put your interrupt enable/disable calls in the macro definitions in os_port.h.
Then I suggest you start with an simple application with only one task that simply waits some time, toggles a pin and enter wait again.

Consider which features of cocoOS you need and write test applications for them.
I think os_msgqueue.c could be troublesome for some compilers. It contains some pointer arithmetics that could screw up thing on some architectures. So if you are using messages, you have to test and debug it carefully.

/Peter
peter
Site Admin
 
Posts: 22
Joined: Wed Mar 07, 2012 9:32 am

Re: Porting to PIC18F Microchip XC8 compiler

Postby Baptista » Wed Sep 20, 2017 7:59 am

Yes you have to debug carefully doing this.
Baptista
 
Posts: 1
Joined: Thu Sep 14, 2017 10:30 am


Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron