I tried starting my sensor interrupt handler from core_1 but found that the handler then runs on core_0 anyway.
So I guess that if I am running code on core_1 that sends data to the UART buffers the interrupts for those buffers run on core_0. Could that be what is messing up the memory?
Search found 40 matches
- Tue Apr 27, 2021 7:53 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
- Tue Apr 27, 2021 11:54 am
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
Re: UART not working with today's version of micropython
And since my sensor and the uarts both use interrupts they should both be on core 0?
- Tue Apr 27, 2021 11:37 am
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
Re: UART not working with today's version of micropython
I am seeing some delay in the handling of my interrupts when the code is running on one core.
Would it be possible to run my interrupt handler in core 2?
Would that be as simple as running the initialisation on core2 or would I have to have a loop running on core 2 for that to work?
Would it be possible to run my interrupt handler in core 2?
Would that be as simple as running the initialisation on core2 or would I have to have a loop running on core 2 for that to work?
- Thu Apr 22, 2021 3:26 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
Re: UART not working with today's version of micropython
I managed to rewrite my code to use a single core and it looks like the buffered UART's are now fast enough to not get in the way of my interrupt handling. I haven't seen any errors from the UART using only one core. I did have to increase the buffer on the receiving side (ESP32) because things were...
- Thu Apr 22, 2021 12:59 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
Re: UART not working with today's version of micropython
Does that mean it now also supports irq?
- Fri Apr 16, 2021 4:50 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
Re: UART not working with today's version of micropython
Thank you very much, I'll try that tomorrow.
- Thu Apr 15, 2021 8:51 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
Re: UART not working with today's version of micropython
That sounds very wrong. I do have a lot of code so .. But that means that I might be able to get the whole thing to function if I stick to one core for now. That might be a solution for my problem at least. Since the uart writes are non blocking as you say, they might now be fast enough to stick eve...
- Thu Apr 15, 2021 8:29 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
Re: UART not working with today's version of micropython
I was trying out the nightly build because I was having a problem with the sensor interrupt handler dying after about 40 minutes on the build I was using. So no luck there
Very odd that you do get errors but hardly ever the one I am seeing.
Thank you very much for taking the time to look at this.
Very odd that you do get errors but hardly ever the one I am seeing.
Thank you very much for taking the time to look at this.
- Thu Apr 15, 2021 6:22 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
Re: UART not working with today's version of micropython
Yes, my uarts are both running in thread_1
- Thu Apr 15, 2021 5:06 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 45
- Views: 19436
Re: UART not working with today's version of micropython
running MicroPython v1.14-170-ga9bbf7083-dirty on 2021-04-15; Raspberry Pi Pico with RP2040
No improvement:
{"sessionid":"0_1_1618506200","startT":25227,"endT":35421,"staarrttDD""::2233111144,,""eeddDD""::3399666644,,""aavvggRR""::00}}
No improvement:
{"sessionid":"0_1_1618506200","startT":25227,"endT":35421,"staarrttDD""::2233111144,,""eeddDD""::3399666644,,""aavvggRR""::00}}