Page 1 of 1

Missing prototype for OSinit

PostPosted: Tue Jun 02, 2015 1:54 am
by mattwhillock
Hi,

I'm trying to use Rowley's CrossStudio for msp430 to build a tiny test program but when building the program I get a "Missing prototype for 'OSinit'" from the compiler and an "undefined symbol '_OSinit'" from the linker. Here is main.c:

#include <salvo.h>
#include <msp430.h>
#include "Task1.h"

void main(void) {
_disable_interrupt();
OSinit();
...
}

The only options I had to link against from Salvo are libsalvofra430-t.hza and libsalvofra430x-t.hza from the Salvo lib directory. I've pointed CrossStudio to the Salvo inc directory for the includes. If anybody has any suggestions as to how I can get CrossStudio and Salvo to talk together I would be lost grateful. There appears to be no instructions on the Rowley website as to how to do this; I've tried following Pumpkin's AN-23 many times but it is woefully out of date.

Cheers,
Matt

Re: Missing prototype for OSinit

PostPosted: Tue Jun 02, 2015 7:07 am
by aek
C is case-sensitive; use OSInit(), not OSinit().