This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Please help me!

Hello everybody!

I have a problem by using Hmote2430 and Keil compiler for my sensor network project. When I use Keil compiler to compile my NesC code, I have some error as follow:

vu_anh_dung@anhdung /opt/tinyos-2.x/apps/Battery3
$ ./AUTOMAKE.sh

C:\cygwin\opt\tinyos-2.x\apps\Battery3\build\hmote2430>echo off

A51 MACRO ASSEMBLER V8.01 - SN: K1MMC-0LE18C
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2007

ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)

C:\cygwin\opt\tinyos-2.x\apps\Battery3\build\hmote2430>echo off

C51 COMPILER V8.12 - SN: K1MMC-0LE18C
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2008
*** WARNING C219 IN LINE 1527 OF APP.C: long constant truncated
*** ERROR C136 IN LINE 1596 OF APP.C: invalid dimension size: [0]

C51 COMPILATION COMPLETE. 1 WARNING(S), 1 ERROR(S)

LX51 LINKER/LOCATER V4.25 - SN: K1MMC-0LE18C
COPYRIGHT KEIL ELEKTRONIK GmbH 1995 - 2007
startup.obj, app.obj TO app CLASSES( XDATA(X:0xE000-X:0xFF00), IDATA(I:0-I:0xFF)) REGFILE(app.reg)ma
*** ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: APP.OBJ

Extended 8051/251 Object to Hex File Converter V1.36b
COPYRIGHT KEIL ELEKTRONIK GmbH 2000 - 2006

*** ERROR: CAN'T OPEN FILE 'app'
**********************************************************
***** app.hex is created.. upload IMAGE to CC2430 !! *****
**** You can use SmartRF04 Flash Programmer (chipcon) ****
**********************************************************
ls: app.hex: No such file or directory

- To implement on Hmote2430 device, I used app.hex file to implement on it. but Keil compiler can not generate hex file by this error.
- If I copy the APP file generate from another program, Keil compiler can generate hex file but the result same to that another program.
- I need some help, please!

Parents
  • Thanks, I think my problem was not in NesC code, because when I compiled NesC code, there is no error and have some warning, and if I have something wrong in NesC, the compiler will give me the error message. But when I generated to Hex file by app.c file, I have had some errors what I don't know. So how to solve this problem, could you give me some advise? I really feel worried now.

Reply
  • Thanks, I think my problem was not in NesC code, because when I compiled NesC code, there is no error and have some warning, and if I have something wrong in NesC, the compiler will give me the error message. But when I generated to Hex file by app.c file, I have had some errors what I don't know. So how to solve this problem, could you give me some advise? I really feel worried now.

Children
No data