Re: [riot-devel] Ceedling

2018-01-10 Thread Attilio Dona
Some time ago I managed to write some tests with Unity.

It is not difficult to integrate into RIOT build system.

As prerequisite you need ruby (sudo apt install ruby) and Unity installed
somewhere (/opt/Unity-master)


My opinionated recipe was to create the module libunity (and libcmock):

sys
├── libunity
│   ├── Makefile
│   └── unity.c
 |── libcmock
│   ├── cmock.c
│   ├── cmock.h
│   ├── cmock_internals.h
│   └── Makefile

and to use a tests/Makefile.include like this for auto generating the main
test file:

APPLICATION = unity

BOARD ?= cc3200-launchxl
BURBA ?= $(CURDIR)/../..
RIOTBASE ?= $(BURBA)/RIOT

UNITY_ROOT ?= /opt/Unity-master

QUIET ?= 1

INCLUDES += -I$(CURDIR)/../../sys/mqtt -I$(BURBA)/sys/protobuf-c


USEMODULE += libunity
USEMODULE += libcmock

...


all: auto_main.c

full-clean: clean
@rm -rf main.c

auto_main.c: test_cases.c
ruby $(UNITY_ROOT)/auto/generate_test_runner.rb $? $@


include $(BURBA)/Makefile.include


I have adjusted my old code to the current Unity version (NOTE: libcmock
module is not updated!), see:

https://github.com/attdona/NAIS/tree/master/burba/tests/xtimer


Greetings
Attilio



On Wed, Jan 10, 2018 at 9:17 PM, Martine Lenders 
wrote:

> Hi Francisco,
>
> as far as I know Cenk looked into that a few months back. I don't know
> however what came out of that?
>
> Cheers,
> Martine
>
> 2018-01-10 21:10 GMT+01:00 Francisco Molina :
>
>> Following up with Baptiste question. Has anyone integrated other testing
>> tools into RIOT like Unity?. And how easily (or not) could this integration
>> be achieved, how much tinkering with the actual build system would have to
>> be done for this? Cheers!
>>
>> Francisco
>>
>> ___
>> devel mailing list
>> devel@riot-os.org
>> https://lists.riot-os.org/mailman/listinfo/devel
>>
>>
>
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] cc2650-launchpad support

2018-01-10 Thread amid
Update to my last email.
Once I flashed RIOT tests_leds.hex to cc265-launchpad with Flash Programmer
2, program execution doesn't start. Then I flashed same hex with Uniflash
and behavior described before (program executes once after flashing, but
not executing after board power-cycle) reproduced.
Maybe someone else could reproduce and clarify what is happening?

BR,
amid

2018-01-10 22:52 GMT+02:00 amid :

> Hi Andreas,
> Thank you for reply.
> I'm not using command line Uniflash (unable to setup on Win10, any good
> guide?), so flashing with GUI version. With a first board I really don't
> know why program was not executing after launchpad power-cycle. Doing the
> same operations with another launchpad - no problem.
> Any suggestion regarding "Keep CCFG data" in Uniflash GUI under Settings &
> Utilities, should I check/uncheck it?
> FYI: Later the first board I bricked by checking box "Binary" in Uniflash,
> same problem is described in TI forum
> https://e2e.ti.com/support/wireless_connectivity/low_
> power_rf_tools/f/155/p/551375/2024942#pi239031350=1
>
> Best Regards,
> amid
>
> 2018-01-10 20:24 GMT+02:00 Andreas "Paul" Pauli <
> andreas.pa...@haw-hamburg.de>:
>
>> Hi amid,
>>
>> Am 06.01.2018 um 21:55 schrieb amid:
>>
>>> However another problem I have. Once I power cycle the board (reset
>>> button or re-attach USB) no leds blink / UART output, so I need to flash
>>> the binary again. Why it is happening?
>>>
>>
>> I have checked with my launchpad and the LEDs are blinking after a reset
>> as well as removing power for ~1 minute.
>> I have no clue what might be the issue on your system.
>>
>> regards
>> Paul
>>
>
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] cc2650-launchpad support

2018-01-10 Thread amid
Hi Andreas,
Thank you for reply.
I'm not using command line Uniflash (unable to setup on Win10, any good
guide?), so flashing with GUI version. With a first board I really don't
know why program was not executing after launchpad power-cycle. Doing the
same operations with another launchpad - no problem.
Any suggestion regarding "Keep CCFG data" in Uniflash GUI under Settings &
Utilities, should I check/uncheck it?
FYI: Later the first board I bricked by checking box "Binary" in Uniflash,
same problem is described in TI forum
https://e2e.ti.com/support/wireless_connectivity/low_power_rf_tools/f/155/p/551375/2024942#pi239031350=1

Best Regards,
amid

2018-01-10 20:24 GMT+02:00 Andreas "Paul" Pauli <
andreas.pa...@haw-hamburg.de>:

> Hi amid,
>
> Am 06.01.2018 um 21:55 schrieb amid:
>
>> However another problem I have. Once I power cycle the board (reset
>> button or re-attach USB) no leds blink / UART output, so I need to flash
>> the binary again. Why it is happening?
>>
>
> I have checked with my launchpad and the LEDs are blinking after a reset
> as well as removing power for ~1 minute.
> I have no clue what might be the issue on your system.
>
> regards
> Paul
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] Ceedling

2018-01-10 Thread Martine Lenders
Hi Francisco,

as far as I know Cenk looked into that a few months back. I don't know
however what came out of that?

Cheers,
Martine

2018-01-10 21:10 GMT+01:00 Francisco Molina :

> Following up with Baptiste question. Has anyone integrated other testing
> tools into RIOT like Unity?. And how easily (or not) could this integration
> be achieved, how much tinkering with the actual build system would have to
> be done for this? Cheers!
>
> Francisco
>
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] Ceedling

2018-01-10 Thread Francisco Molina
Following up with Baptiste question. Has anyone integrated other testing
tools into RIOT like Unity?. And how easily (or not) could this integration
be achieved, how much tinkering with the actual build system would have to
be done for this? Cheers!

Francisco
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


[riot-devel] RIOT extension for Visual Studio Code

2018-01-10 Thread Attilio Dona
Dear RIOTers,

Recently I switched between a lot of editors and now I landed on Visual
Studio Code.

It is just a 0.0.1 version but I'm pleased to inform you that I've just
published a Visual Studio Code extension for RIOT:

https://marketplace.visualstudio.com/items?itemName=attdona.riot

I have decided to write this simple extension for easing the integration of
RIOT for vscode.

riot-code is a thin wrapper over the build system of RIOT: it runs make
targets and parses make output for configuring the intellisense engine of
vscode.

I hope you will enjoy riot-code!
feedback welcome!!

greetings
Attilio
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] cc2650-launchpad support

2018-01-10 Thread Andreas "Paul" Pauli

Hi amid,

Am 06.01.2018 um 21:55 schrieb amid:
However another problem I have. Once I power cycle the board (reset 
button or re-attach USB) no leds blink / UART output, so I need to flash 
the binary again. Why it is happening?


I have checked with my launchpad and the LEDs are blinking after a reset 
as well as removing power for ~1 minute.

I have no clue what might be the issue on your system.

regards
Paul
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


[riot-devel] RIOT @ FOSDEM 2018

2018-01-10 Thread Emmanuel Baccelli
Dear all,

RIOT will be present at FOSDEM this year: we have a dedicated booth there,
in the AW building, on Feb. 3-4.

Hoping to see you there!

For more info check out https://fosdem.org/2018/stands/ and practical infos
at https://fosdem.org/2018/practical/transportation/

Best,

Emmanuel
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


[riot-devel] Embedded World 2018

2018-01-10 Thread Matthias Waehlisch
Hi,

  over the last years some of the RIOT maintainers presented RIOT at 
Embedded World. This was always supported by companies or other 
organizations, such that RIOTers did not need to pay for the booths. 
Unfortunately, this option is not available this year, so far.

  If you attend Embedded World and show RIOT, or if you can spare some 
space at your booth where RIOT developers can show some RIOT 
applications, please reply, either on- or offlist.



Thanks
  matthias


-- 
Matthias Waehlisch
.  Freie Universitaet Berlin, Computer Science
.. http://www.cs.fu-berlin.de/~waehl
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] cc2650-launchpad support

2018-01-10 Thread Andreas "Paul" Pauli
Hello amid,

Am 06.01.2018 um 21:55 schrieb amid:
> However another problem I have. Once I power cycle the board (reset button
> or re-attach USB) no leds blink / UART output, so I need to flash the
> binary again. Why it is happening?

I'm going to examine this when I have physical access to a board again
(likely today).

> Is there any explanation why I can't use TI SmartRF Flash Programmer?

I have no experience with this tool, because I run my toolchain
completely under unix.
Have you tried the config files under ?
The "ccxml" files should be platform independent for the TI tools.


___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel