Ticket #445 (new defect)

Opened 4 years ago

Last modified 3 years ago

Compiled tellstick-duo firmware fail to transmit to Nexa

Reported by: niclas forslund <niclas.eriksson@…> Owned by:
Priority: minor Milestone:
Component: other Version: 2.1.2
Keywords: Cc:
Blocked By: Blocking:
Platform: Other Sensitive: no
Verified by Telldus: no

Description

I try to compile a standard firmware for my Tellstick-DUO.
The compilation seem to be OK and a HEX-file is generated. When I load the new firmware it works as the original Rev.12 firmware, but the Nexa wall socket switches of the type "codeswitch" stop working. The type "self-learning" is still working.

One difference that I noteced is that my built firmware is about half the size of the original firmware,
Official fw: 45,868 bytes
My fw: 22,384 bytes

Here is my build environment:
Debian jessie/sid
cmake: 2.8.12.2
Hi-Tech Pro (demo mode): 9.63PL3
Tellstick-DUO: Batch 3, SN:452

I follw the build instruction from the README file here,  http://git.telldus.com/tellstick-duo.git

git clone http://git.telldus.com/tellstick-duo.git
cd tellstick-duo
git submodule init
git submodule update
mkdir build
cd build
cmake ../firmware -DPICC18_PATH=/usr/hitech/picc-18/pro/9.63PL3/bin/picc18
make all

Here is the build log:

$ make all
[  3%] Compiling main.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[  6%] Compiling message.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[  9%] Compiling pwm.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 12%] Compiling rf.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 15%] Compiling usart.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
/home/niclas/work/tellstick-duo/firmware/usart.c: 173: (359) illegal conversion between pointer types (warning)
/home/niclas/work/tellstick-duo/firmware/usart.c: 185: (359) illegal conversion between pointer types (warning)
/home/niclas/work/tellstick-duo/firmware/usart.c: 197: (359) illegal conversion between pointer types (warning)
/home/niclas/work/tellstick-duo/firmware/usart.c: 200: (359) illegal conversion between pointer types (warning)
[ 18%] Compiling /home/niclas/work/tellstick-duo/rf/arctech.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 21%] Compiling /home/niclas/work/tellstick-duo/rf/crc.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 24%] Compiling /home/niclas/work/tellstick-duo/rf/everflourish.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 27%] Compiling /home/niclas/work/tellstick-duo/rf/fineoffset.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 30%] Compiling /home/niclas/work/tellstick-duo/rf/hasta.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 33%] Compiling /home/niclas/work/tellstick-duo/rf/mandolyn.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 36%] Compiling /home/niclas/work/tellstick-duo/rf/oregon.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 39%] Compiling /home/niclas/work/tellstick-duo/rf/oregonv3.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 42%] Compiling /home/niclas/work/tellstick-duo/rf/receive.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 45%] Compiling /home/niclas/work/tellstick-duo/rf/transmit.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
/home/niclas/work/tellstick-duo/rf/transmit.c: 68: (359) illegal conversion between pointer types (warning)
[ 48%] Compiling /home/niclas/work/tellstick-duo/rf/x10.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
: : Employing 18F4520 errata work-arounds:
: :  * Corrupted fast interrupt shadow registers
[ 51%] Linking TellStickDuo.hex
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Tue, 27 Oct 2015
Employing 18F4520 errata work-arounds:
 * Corrupted fast interrupt shadow registers

Memory Summary:
    Program space        used  1FAAh (  8106) of  8000h bytes   ( 24.7%)
    Data space           used   5B0h (  1456) of   600h bytes   ( 94.8%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    ID Location space    used     0h (     0) of     8h nibbles (  0.0%)
    Configuration bits   used     4h (     4) of     7h words   ( 57.1%)

[100%] Built target TellStickDuo

I have used TellStickNetFlasher for OSX (Yosemite) to program the TellstickDUO. There is no indications of that process going wrong.

I have also tried to compile the firmware with a newer compiler,
Microchip MPLAB XC8 C Compiler V1.34
but there is no difference.

If I flash back the original firmware the TX for Nexa codeswitch start to work again.

Change History

comment:1 Changed 3 years ago by niclas forslund <niclas.eriksson@…>

Any updates on this? Are there any information you lack to be able to comment on the ticket?

comment:2 Changed 3 years ago by micke prag <micke.prag@…>

  • Priority changed from major to minor

Try to compile the firmware using the free mode and see if there is any difference?

Note: See TracTickets for help on using tickets.