Got it! Found a solder splash that was pulling NRST low... Never assume....
I did not implement the partial pull-up circuit that ST shows on P19, and it did not seem to matter.
It loaded the latest code from the site. Now I will test to make sure.
Thanks again- just needed a confidence boost!
Search found 68 matches
- Sun Apr 26, 2015 12:44 am
- Forum: Other Boards
- Topic: Installing Micropython on a blank STM
- Replies: 24
- Views: 20081
- Sat Apr 25, 2015 11:58 pm
- Forum: Other Boards
- Topic: Installing Micropython on a blank STM
- Replies: 24
- Views: 20081
Re: Installing Micropython on a blank STM
Thanks- that helps a lot. Looks like I missed several things, especially the tricky little circuit on the bottom of P19. It appears you have to pull USB-DP up to 3.3V, although I don't see where that happens on the Pyboard.... Still don't have it working, but I have a bunch of things to try. Those d...
- Sat Apr 25, 2015 10:52 pm
- Forum: Other Boards
- Topic: Installing Micropython on a blank STM
- Replies: 24
- Views: 20081
Installing Micropython on a blank STM
I have a board (own design) with a blank STM32F405RG (same chip as Pyboard). I connect the USB and run the ST "DfuSe Demo", but the device does not show up under "Available DFU Devices". Is there anywhere a "check list" of what to do with a blank chip to get Micropython on it? Here is what I have: 1...
- Tue Mar 24, 2015 7:30 pm
- Forum: General Discussion and Questions
- Topic: Importing a module seems to execute it
- Replies: 5
- Views: 5272
Re: Importing a module seems to execute it
Okay mystery solved! It was the outdent that caused Python to think that the class definition was over, and that code was following, which of course it executes. So no error or warning, but here are the two instances, note that in the second snip the "try" is indented: Bad: """ Class definition for ...
- Tue Mar 24, 2015 6:21 pm
- Forum: General Discussion and Questions
- Topic: Importing a module seems to execute it
- Replies: 5
- Views: 5272
Re: Importing a module seems to execute it
Sorry, I should have been clearer. The only thing in that module is a single class definition- here is the first part of it: """ Class definition for Corvus BC EPS Power Board""" import pyb import math import PAC1720, PCAL9535 # base classes for I2C devices on BB class eps_PB: """ class for creating...
- Tue Mar 24, 2015 5:56 pm
- Forum: General Discussion and Questions
- Topic: Importing a module seems to execute it
- Replies: 5
- Views: 5272
Importing a module seems to execute it
I have a weird thing going on. When I import a module, it appears to execute it. Just to be sure, I put print statements before and after the import, thusly: #main.py import pyb from pyb import USB_VCP, I2C print('importing starts') import eps_PB , eps_BB #classes for various boards print('importing...
- Mon Mar 16, 2015 11:10 pm
- Forum: MicroPython pyboard
- Topic: PyB-to-PyB using I2C?
- Replies: 24
- Views: 20130
Re: PyB-to-PyB using I2C?
I tested the following slave code, and it works as expected: i2cS = I2C(2, I2C.SLAVE) # create and init as a slave i2cS.init(I2C.SLAVE, addr = 0x55) # init as a slave print("Slave") while True: data = [] try: data = i2cS.recv(3, timeout=100) # 100 msec except: pass if data != []: print(data) else: p...
- Mon Mar 16, 2015 9:31 pm
- Forum: MicroPython pyboard
- Topic: PyB-to-PyB using I2C?
- Replies: 24
- Views: 20130
Re: PyB-to-PyB using I2C?
At some point all of these leave the strictly lower level and need to address what the user is trying to do, and the consequences of, say, a corrupt block/packet of data. In a previous project, the data was real-time and was sent at a rate of 100 hz. It was important to reliably detect that a packet...
- Mon Mar 16, 2015 7:55 pm
- Forum: MicroPython pyboard
- Topic: PyB-to-PyB using I2C?
- Replies: 24
- Views: 20130
Re: PyB-to-PyB using I2C?
At some point all of these leave the strictly lower level and need to address what the user is trying to do, and the consequences of, say, a corrupt block/packet of data. In previous projects, the data was real-time and was sent at a rate of 100 hz. It was important to reliably detect that a packet ...
- Mon Mar 16, 2015 6:10 pm
- Forum: MicroPython pyboard
- Topic: PyB-to-PyB using I2C?
- Replies: 24
- Views: 20130
Re: PyB-to-PyB using I2C?
From the STM32F405 data sheet: "Up to three I²C bus interfaces can operate in multimaster and slave modes. They can support the Standard-mode (up to 100 kHz) and Fast-mode (up to 400 kHz) . They support the 7/10-bit addressing mode and the 7-bit dual addressing mode (as slave). A hardware CRC genera...