Search found 601 matches

by jickster
Fri Jan 04, 2019 4:04 am
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 3956

Re: How do I make a port of MicroPython for Casio calculators?

The crash is in mp_obj_fun_get_name.

Try commenting out the lines therein and adding them back one at a time.

If you have a debugger, it’s easier cause you can just put a breakpoint in mp_obj_fun_get_name and see where it dies.


Sent from my iPhone using Tapatalk Pro
by jickster
Thu Jan 03, 2019 5:40 pm
Forum: The MicroPython pyboard
Topic: Is there a code level reason why my interrupt is not getting called?
Replies: 9
Views: 280

Is there a code level reason why my interrupt is not getting called?

I think your script just exits cause there’s nothing to keep it from exiting.

Just to test, put an infinite

while True: pass

loop at the very bottom.

Sent from my iPhone using Tapatalk Pro
by jickster
Thu Jan 03, 2019 5:35 pm
Forum: The MicroPython pyboard
Topic: Is there a code level reason why my interrupt is not getting called?
Replies: 9
Views: 280

Re: Is there a code level reason why my interrupt is not getting called?

It wouldn’t hurt to call

ext.enable()


Sent from my iPhone using Tapatalk Pro
by jickster
Wed Jan 02, 2019 7:28 pm
Forum: ESP8266 boards
Topic: Interrupt Routine, counting more than sys.maxsize
Replies: 8
Views: 251

Re: Interrupt Routine, counting more than sys.maxsize

dhylands wrote:Micropython has the notion of hard ISRs and threaded ISRs. I believe that on the ESP8266 all of the ISRs are threaded. Threaded ISRs don't have the same restrictions that hard ISRs do.
Where’s docs for this concept?


Sent from my iPhone using Tapatalk Pro
by jickster
Sat Dec 29, 2018 11:26 pm
Forum: General Discussion and Questions
Topic: Memmory Allocation Error although plenty of RAM left...
Replies: 21
Views: 839

Re: Memmory Allocation Error although plenty of RAM left...

It’s impossible to avoid fragmentation in all cases. A good step to take to mitigate fragmentation is to do gc.threshold(1) That will perform a garbage collection every time you allocate any amount of memory; this will greatly slow down your application. http://docs.micropython.org/en/v1.9.3/pyboard...
by jickster
Fri Dec 28, 2018 6:45 am
Forum: General Discussion and Questions
Topic: PyBoard main.c is not building main.py
Replies: 3
Views: 160

PyBoard main.c is not building main.py

@ dhylands Thank you for your reply, that worked! My steps were as follows: Removed the existing main.py from flash using os.remove('main.py'). Factory reset the file system: http://docs.micropython.org/en/latest/pyboard/tutorial/reset.html main.py now contains the code added to main.c This is blan...
by jickster
Fri Dec 28, 2018 6:36 am
Forum: General Discussion and Questions
Topic: Memmory Allocation Error although plenty of RAM left...
Replies: 21
Views: 839

Re: Memmory Allocation Error although plenty of RAM left...

“Till it is unable to accept another line”

You don’t want to do that.

If you leave too little heap free, you might not be able to execute certain functions because some might need some heap to execute.


Sent from my iPhone using Tapatalk Pro
by jickster
Thu Dec 27, 2018 12:40 am
Forum: General Discussion and Questions
Topic: Memmory Allocation Error although plenty of RAM left...
Replies: 21
Views: 839

Re: Memmory Allocation Error although plenty of RAM left...

Do you have a question?


Sent from my iPhone using Tapatalk Pro
by jickster
Wed Dec 26, 2018 4:18 am
Forum: The MicroPython pyboard
Topic: Regarding Maximum frequency in PyBoard DAC
Replies: 1
Views: 598

Re: Regarding Maximum frequency in PyBoard DAC

Murugan wrote:Hi team,
i Have an Doubt regarding Maximum frequency of DAC in PyBoard, anyone knows tell me
Did you look at the datasheet, manual?


Sent from my iPhone using Tapatalk Pro
by jickster
Wed Dec 26, 2018 4:08 am
Forum: General Discussion and Questions
Topic: Memmory Allocation Error although plenty of RAM left...
Replies: 21
Views: 839

Re: Memmory Allocation Error although plenty of RAM left...

Difficult to understand for me too. Just process each request, the smallest unit possible and you won't run out of RAM. I THINK what he’s saying is that he doesn’t understand how chunks are protected from collection after they’re inserted into a data structure. Sent from my iPhone using Tapatalk Pro