Losing the REPL when an IRQ is triggered

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
jgmdavies
Posts: 56
Joined: Tue Aug 09, 2016 2:39 pm

Re: Losing the REPL when an IRQ is triggered

Postby jgmdavies » Thu Sep 15, 2016 6:50 am

Many thanks both!

User avatar
Roberthh
Posts: 691
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Losing the REPL when an IRQ is triggered

Postby Roberthh » Thu Sep 15, 2016 7:40 pm

I removed the server timeout setting, but still no change. The ISR stays stable. So the only thing left to try would be omitting the expansion board and direct supply of WiPy. About the boot vs. boot.py issue. If you cannot load the new boot.py, you could rename the files on WiPy at the REPL prompt with uos.rename.

Code: Select all

import uos
uos.rename(old_name, new_name)

User avatar
Roberthh
Posts: 691
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Losing the REPL when an IRQ is triggered

Postby Roberthh » Fri Sep 16, 2016 6:25 am

This morning the behaviour changed. I found the by mistake I had loaded Version 1.6-310. I uploaded today's V1.8.4.12, and no I have the ISR failures. Most of the time, I do not even see the '1' count. Going back to 1.6.-310 cured it.
That indicates that it is indeed a SW version issue. Not clear why it worked with other 1.8 variants before.

jgmdavies
Posts: 56
Joined: Tue Aug 09, 2016 2:39 pm

Re: Losing the REPL when an IRQ is triggered

Postby jgmdavies » Fri Sep 16, 2016 7:04 am

Thanks Robert. I haven't had time to do more experiments yet. Typically, my ISR didn't even reach the '1' count in previous tries, although I have occasionally seen it work for a while with 1.8.3.

User avatar
Roberthh
Posts: 691
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Losing the REPL when an IRQ is triggered

Postby Roberthh » Sat Sep 17, 2016 5:59 am

Ok, now I have a consistent picture. The most recent stable version from the download page is 1.8.1. All others fail after a while, and that while can be hours, if your network is quiet. Following Damien's suggestion and changing mpconfigport.h to

Code: Select all

#define MICROPY_PY_THREAD                           (0)
#define MICROPY_PY_THREAD_GIL                       (0)

seems to suppress the problem for the recent builds. A build created that way now runs for 10 hours. I've placed a copy here, for people who do not want to build it themselves: https://github.com/robert-hh/Shared-Stuff

jgmdavies
Posts: 56
Joined: Tue Aug 09, 2016 2:39 pm

Re: Losing the REPL when an IRQ is triggered

Postby jgmdavies » Sat Sep 17, 2016 12:54 pm

Well done, and thanks Robert!

It's working so far here - I don't suppose Damien could include it as a run-time option soon? :D

What do you think is the best place for 'user contributions' like this for the WiPy? I had a go at a simple Float package, and I've also done small versions of things like 'configparser' for the WiPy. I think it would be good to have a shared list of contributions in one place, so anyone can see what's available (and what isn't).

Jim

User avatar
pythoncoder
Posts: 1721
Joined: Fri Jul 18, 2014 8:01 am

Re: Losing the REPL when an IRQ is triggered

Postby pythoncoder » Mon Sep 19, 2016 7:18 am

Consider starting a WiPy section on the Wiki http://wiki.micropython.org/Home?
Peter Hinch

jgmdavies
Posts: 56
Joined: Tue Aug 09, 2016 2:39 pm

Re: Losing the REPL when an IRQ is triggered

Postby jgmdavies » Mon Sep 19, 2016 7:24 am


danielm
Posts: 132
Joined: Mon Oct 05, 2015 12:24 pm

Re: Losing the REPL when an IRQ is triggered

Postby danielm » Wed Sep 21, 2016 4:39 pm

Robert, your build of v1.8.4-16 works for me as well.
Hope there will be a solution which will make it work with threading enabled.

User avatar
Roberthh
Posts: 691
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Losing the REPL when an IRQ is triggered

Postby Roberthh » Wed Sep 21, 2016 6:54 pm

I'll update them about once a week, just in case you need it.


Return to “The WiPy and CC3200 boards”

Who is online

Users browsing this forum: No registered users and 3 guests