Re: [riot-devel] Shell Commands

2019-09-24 Thread Rik Gene
Hi Sebastian,

Thank you - changed the loop part by adding the '\n', did the job.

Cheers,
Rik

>Welcome Rik!
>
>without seeing you actual code it's hard to debug, could you share the
code snippet for
>you shell-command and loop? From what you write: remember to close
everything you want
>to printf with '\n', bc the shell is looking for this before it prints
anything.
>
>It should look like this:
>
>while (run) {
> printf("in the loop\n");
> xtimer_sleep(1);
>}
>
>If you forget the '\n' the shell will buffer the string.
>
>Best,
>  Sebastian
>
> On 22. Sep 2019, at 22:26, Rik Gene  wrote:
>
> Dear All,
>
> I'm writing a shell command that loops until a button press terminates it
through an interrupt callback. The loop delay is set by xtimer.
>
> My printf outputs inside the loop seem to be buffered in the background
and only ends up on screen when the command returns.
>
> How can I get it to print on every loop iteration while the shell command
is still executing?
>
> Using RTT / Linux / pyterm / NRF52.
>
> Cheers,
> Rik
> ___
> 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


[riot-devel] Shell Commands

2019-09-22 Thread Rik Gene
Dear All,

I'm writing a shell command that loops until a button press terminates it
through an interrupt callback. The loop delay is set by xtimer.

My printf outputs inside the loop seem to be buffered in the background and
only ends up on screen when the command returns.

How can I get it to print on every loop iteration while the shell command
is still executing?

Using RTT / Linux / pyterm / NRF52.

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


Re: [riot-devel] Thingy52: Real time terminal output

2019-09-02 Thread Rik Gene
Dear All,

Anybody working with a board using RTT terminal? Any direction would be
appreciated to get this Thingy:52 talking.

Also tried minicom to perhaps eliminate an issue related to pyterm, but
same result.

Cheers,
Rik

On Mon, Aug 26, 2019 at 10:27 AM Rik Gene  wrote:

> Much appreciated!
>
> On Mon, Aug 26, 2019 at 9:44 AM Hauke Petersen <
> hauke.peter...@fu-berlin.de> wrote:
>
>> Hi Rik,
>>
>> it has been a while since I last used that board. I have one here, so I
>> will give this a test sometime today. I'll let you know what I can find out.
>>
>> Cheers,
>> Hauke
>>
>>
>> On 8/22/19 10:49 PM, Rik Gene wrote:
>>
>> Dear All,
>>
>> I'm not getting through to the shell when running
>> release-2019.07/examples/default on the Thingy:52.
>>
>> I'm using a JLink-OB on another DK. The following devices show up on
>> Linux:
>> /dev/ttyACM0
>> /dev/ttyACM1
>> /dev/ttyACM2
>>
>> I've tried them all with no success.
>>
>> Programming works fine, but the RTT terminal doesn't:
>>
>> Downloading file
>> [release-2019.07/examples/default/bin/thingy52/default.bin]...
>> Comparing flash   [100%] Done.
>> Erasing flash [100%] Done.
>> Programming flash [100%] Done.
>> Verifying flash   [100%] Done.
>> J-Link: Flash download: Bank 0 @ 0x: 1 range affected (16384
>> bytes)
>> J-Link: Flash download: Total time needed: 0.327s (Prepare: 0.032s,
>> Compare: 0.004s, Erase: 0.000s, Program: 0.280s, Verify: 0.002s, Restore:
>> 0.007s)
>> O.K.
>>
>> release-2019.07/dist/tools/jlink/jlink.sh term_rtt
>> ### Starting RTT terminal ###
>> Twisted not available, please install it if you want to use pyterm's JSON
>> capabilities
>> 2019-08-22 22:03:24,215 - WARNING # Host name for TCP connection is
>> missing, defaulting to "localhost"
>> 2019-08-22 22:03:24,216 - INFO # Connect to localhost:19021
>> Welcome to pyterm!
>> Type '/exit' to exit.
>> 2019-08-22 22:03:25,220 - INFO # SEGGER J-Link V6.48a - Real time
>> terminal output
>> 2019-08-22 22:03:25,221 - INFO # J-Link OB-K22-NordicSemi compiled Feb 14
>> 2019 14:03:18 V1.0, SN=960077373
>> 2019-08-22 22:03:25,221 - INFO # Process: JLinkExe
>>
>> Any ideas?
>>
>> Cheers,
>> Rik
>>
>> ___
>> devel mailing 
>> listdevel@riot-os.orghttps://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] Thingy52: Real time terminal output

2019-08-26 Thread Rik Gene
Much appreciated!

On Mon, Aug 26, 2019 at 9:44 AM Hauke Petersen 
wrote:

> Hi Rik,
>
> it has been a while since I last used that board. I have one here, so I
> will give this a test sometime today. I'll let you know what I can find out.
>
> Cheers,
> Hauke
>
>
> On 8/22/19 10:49 PM, Rik Gene wrote:
>
> Dear All,
>
> I'm not getting through to the shell when running
> release-2019.07/examples/default on the Thingy:52.
>
> I'm using a JLink-OB on another DK. The following devices show up on Linux:
> /dev/ttyACM0
> /dev/ttyACM1
> /dev/ttyACM2
>
> I've tried them all with no success.
>
> Programming works fine, but the RTT terminal doesn't:
>
> Downloading file
> [release-2019.07/examples/default/bin/thingy52/default.bin]...
> Comparing flash   [100%] Done.
> Erasing flash [100%] Done.
> Programming flash [100%] Done.
> Verifying flash   [100%] Done.
> J-Link: Flash download: Bank 0 @ 0x: 1 range affected (16384 bytes)
> J-Link: Flash download: Total time needed: 0.327s (Prepare: 0.032s,
> Compare: 0.004s, Erase: 0.000s, Program: 0.280s, Verify: 0.002s, Restore:
> 0.007s)
> O.K.
>
> release-2019.07/dist/tools/jlink/jlink.sh term_rtt
> ### Starting RTT terminal ###
> Twisted not available, please install it if you want to use pyterm's JSON
> capabilities
> 2019-08-22 22:03:24,215 - WARNING # Host name for TCP connection is
> missing, defaulting to "localhost"
> 2019-08-22 22:03:24,216 - INFO # Connect to localhost:19021
> Welcome to pyterm!
> Type '/exit' to exit.
> 2019-08-22 22:03:25,220 - INFO # SEGGER J-Link V6.48a - Real time terminal
> output
> 2019-08-22 22:03:25,221 - INFO # J-Link OB-K22-NordicSemi compiled Feb 14
> 2019 14:03:18 V1.0, SN=960077373
> 2019-08-22 22:03:25,221 - INFO # Process: JLinkExe
>
> Any ideas?
>
> Cheers,
> Rik
>
> ___
> devel mailing 
> listdevel@riot-os.orghttps://lists.riot-os.org/mailman/listinfo/devel
>
>
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


[riot-devel] Thingy52: Real time terminal output

2019-08-22 Thread Rik Gene
Dear All,

I'm not getting through to the shell when running
release-2019.07/examples/default on the Thingy:52.

I'm using a JLink-OB on another DK. The following devices show up on Linux:
/dev/ttyACM0
/dev/ttyACM1
/dev/ttyACM2

I've tried them all with no success.

Programming works fine, but the RTT terminal doesn't:

Downloading file
[release-2019.07/examples/default/bin/thingy52/default.bin]...
Comparing flash   [100%] Done.
Erasing flash [100%] Done.
Programming flash [100%] Done.
Verifying flash   [100%] Done.
J-Link: Flash download: Bank 0 @ 0x: 1 range affected (16384 bytes)
J-Link: Flash download: Total time needed: 0.327s (Prepare: 0.032s,
Compare: 0.004s, Erase: 0.000s, Program: 0.280s, Verify: 0.002s, Restore:
0.007s)
O.K.

release-2019.07/dist/tools/jlink/jlink.sh term_rtt
### Starting RTT terminal ###
Twisted not available, please install it if you want to use pyterm's JSON
capabilities
2019-08-22 22:03:24,215 - WARNING # Host name for TCP connection is
missing, defaulting to "localhost"
2019-08-22 22:03:24,216 - INFO # Connect to localhost:19021
Welcome to pyterm!
Type '/exit' to exit.
2019-08-22 22:03:25,220 - INFO # SEGGER J-Link V6.48a - Real time terminal
output
2019-08-22 22:03:25,221 - INFO # J-Link OB-K22-NordicSemi compiled Feb 14
2019 14:03:18 V1.0, SN=960077373
2019-08-22 22:03:25,221 - INFO # Process: JLinkExe

Any ideas?

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