Tuesday, 4 February 2014

Linux Tinyos example for patching a header file

 I was having problems making a simple program for TinyOS using the command :-

make micaz

The micaz is the target device and can be other devices like iris , telos & tmote etc.

The error I got was:- 

error: variable ‘McuSleepC__atm128PowerBits’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’

From reading around the issue is documented here.

The patch is downloaded to the ~/tinyos-main/ directory and it patches the atm128const.h file to prevent the error messages.

The patch is applied using the following command:-

patch -p1  < tinyos-atm128-const-fix.patch

2 Comments:

At 3 July 2017 at 14:51 , Blogger André Felippe Weber said...

This comment has been removed by the author.

 
At 3 July 2017 at 14:51 , Blogger André Felippe Weber said...

Finally found the solution! Thanks for sharing

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home