Author Topic: Using MPLAB with salvo  (Read 3654 times)

0 Members and 1 Guest are viewing this topic.

Offline tarun172Topic starter

  • Regular Contributor
  • *
  • Posts: 65
  • Country: us
Using MPLAB with salvo
« on: June 25, 2013, 10:49:15 pm »
Hello,
         This is Tarun. I am still relatively new with MPLAB. I complied and ran few programs on MPLAB 8.88. I am using a PIC12 micro controller. Recently, I was given an old project to work with. This project uses SALVO RTOS. The code was complied in the older MPLAB. Every time I try compiling this program, I get a bunch of errors. Reading all the documents tell me that I have a compiler/linker/debugger/macros/preprocessor settings problem. Does anybody have any experience with SALVO RTOS or RTOS in general running on MPLAB?
« Last Edit: July 20, 2013, 05:12:16 pm by tarun172 »
Thanks & Regards,
Tarun S
 

Offline adam1213

  • Regular Contributor
  • *
  • Posts: 120
  • Country: au
Re: Using MPLAB with salvo
« Reply #1 on: June 25, 2013, 11:24:14 pm »
You may need to modify / add includes / define constants to get the information on hardware. The reason for this is that message such as :
"undefined identifier "GPIO3" look like a reference to hardware which is usually provide by the includes. **it may just be a "compiler/linker/debugger/macros/preprocessor settings problem. "  as you suggested.

e.g. you might want to follow the advice "Warning [162] C:\Program Files (x86)\HI-TECH Software\PICC\9.83\include\pic12f683.h; 3.81 #warning: Header file pic12f683.h included directly. Use #include <htc.h> instead"  ** though it might not make a difference. Though in general the fewer warnings the better.



 

Offline Skimask

  • Super Contributor
  • ***
  • Posts: 1433
  • Country: us
Re: Using MPLAB with salvo
« Reply #2 on: June 25, 2013, 11:30:29 pm »
And according to the SALVO pdf, the 12F683 isn't supported...
I didn't take it apart.
I turned it on.

The only stupid question is, well, most of them...

Save a fuse...Blow an electrician.
 

Offline adam1213

  • Regular Contributor
  • *
  • Posts: 120
  • Country: au
Re: Using MPLAB with salvo
« Reply #3 on: June 26, 2013, 11:15:58 pm »
For the message
Error   [500] ; 0. undefined symbols:....

It is likely caused by:
  • The file containing the functions has not been built
  • The functions being contained in an #if condition such that they are included based on the micrcontroller. As the PIC12f683 is not officially the functions might be excluded by default
 

Offline tarun172Topic starter

  • Regular Contributor
  • *
  • Posts: 65
  • Country: us
Re: Using MPLAB with salvo
« Reply #4 on: July 01, 2013, 06:13:15 pm »
@adam1213. I manage to get it project to compile today.:clap: I had read the entire salvo user manual to figure the last error out |O |O. After trying for a while, I found that compiler is unable to find definition of these functions located in specific files. I added salvo files specific to those functions in my source directory. The list of functions and file are given on Page 405 of salvo user manual.

http://www.pumpkininc.com/content/doc/manual/SalvoUserManual-v3.2.3.pdf

Today, I plan to run more tests to see if this is working. Thanks a ton for helping.

- Tarun :box:
Thanks & Regards,
Tarun S
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf