Search found 12 matches
- Wed May 19, 2021 2:18 am
- Forum: Other Boards
- Topic: [STM32L432KC] Getting MicroPython on to an STM32L432KC?
- Replies: 5
- Views: 4525
Re: [STM32L432KC] Getting MicroPython on to an STM32L432KC?
I use the built in STLINK interface with stmcubeprog software. It doesn't need boot0 jumpered. I got it downloaded via the stmcubeprog software and can connect and pull up a REPL. I cannot get the PYBOARD internal filesystem to show up so I can actually read and write .py files to it. Any help there?
- Fri May 14, 2021 1:54 pm
- Forum: Other Boards
- Topic: [STM32L432KC] Getting MicroPython on to an STM32L432KC?
- Replies: 5
- Views: 4525
Re: [STM32L432KC] Getting MicroPython on to an STM32L432KC?
I can see on my board that SB12 is bridged through a tiny SMT resistor. I can remove that resistor quite easily and unbridle the connection. If the resistor has to be put back in place though, I have no easy way to do it.
I will give it a try tonight though and see what happens!
I will give it a try tonight though and see what happens!
- Fri May 14, 2021 2:09 am
- Forum: Other Boards
- Topic: [STM32L432KC] Getting MicroPython on to an STM32L432KC?
- Replies: 5
- Views: 4525
[STM32L432KC] Getting MicroPython on to an STM32L432KC?
I have been experimenting with a variety of Nucleo and Discovery boards and have been able to get MicroPython on to all of them except this little Nucelo L432KC board: https://www.st.com/en/evaluation-tools/nucleo-l432kc.html On all the others I simply connect BOOT0 to 3.3v and use dfu-util under Li...
- Wed Aug 17, 2016 12:44 am
- Forum: General Discussion and Questions
- Topic: Interrupt vector numbers
- Replies: 3
- Views: 4888
Interrupt vector numbers
I think I might have answered my own question via experimentation but I wanted to ask just to make sure. I am building robots with the MicroPython board and wrote a quadrature encoder class. It is initialized as follows: def __init__(self, pinA, pinB, pullups=True): #configure the two pins and set t...
- Tue Jul 26, 2016 8:06 pm
- Forum: MicroPython pyboard
- Topic: Serial output and ISR
- Replies: 5
- Views: 4793
Re: Serial output and ISR
I changed the ISR to the below code and it seems to work perfectly: #======================================================================= # Callback for our leaf switch #======================================================================= #Some global variables for our callback leafCounter = 0...
- Tue Jul 26, 2016 5:01 am
- Forum: MicroPython pyboard
- Topic: Serial output and ISR
- Replies: 5
- Views: 4793
Re: Serial output and ISR
I am running the following:
MicroPython v1.8.2-11-gbe313ea on 2016-07-13; PYBv1.1 with STM32F405RG
Getting rid of the call to delay fixes the problem. I will implement a routine to debounce the switch without using a delay.
MicroPython v1.8.2-11-gbe313ea on 2016-07-13; PYBv1.1 with STM32F405RG
Getting rid of the call to delay fixes the problem. I will implement a routine to debounce the switch without using a delay.
- Tue Jul 26, 2016 12:19 am
- Forum: MicroPython pyboard
- Topic: Serial output and ISR
- Replies: 5
- Views: 4793
Re: Serial output and ISR
Im not doing the serial writes inside an ISR, they take place inside of a while loop in main.py. I have experimented with timeout values all the way up to 1000ms and I always get the error. Here is the complete serial LCD class in its current rough state: '''This is a simple class for interfacing an...
- Mon Jul 25, 2016 3:47 am
- Forum: MicroPython pyboard
- Topic: Serial output and ISR
- Replies: 5
- Views: 4793
Serial output and ISR
I am writing an interface/driver for an Adafruit serial LCD. It is a simple device that requires only one serial wire to operate. It accepts simple byte sized commands to control the LCD. I have it working, it works great. However, in my test setup I also have an ISR that reads a switch. The only th...
- Thu Jul 14, 2016 9:10 pm
- Forum: MicroPython pyboard
- Topic: Timer channel names
- Replies: 1
- Views: 2329
Timer channel names
I setup a few test circuits to test out my Pyboard. One had a simple photo-resistor hooked to one of the ADC lines (X8). I then read the ADC and converted it to a 0-100 value and fed it into the duty cycle of a PWM channel. I used pin Y12 which according to the diagram is timer 1 channel "CH3N ". It...
- Thu Jul 14, 2016 5:08 pm
- Forum: MicroPython pyboard
- Topic: detect interrupt type in ISR?
- Replies: 4
- Views: 4133
Re: detect interrupt type in ISR?
Yep, I properly debounced it.
I have to say, this is one of the cooler little devices I have played with. I plan to turn it into a general purpose robotics controller for small mobile robots and let my students experiment with them.
I have to say, this is one of the cooler little devices I have played with. I plan to turn it into a general purpose robotics controller for small mobile robots and let my students experiment with them.