Search found 191 matches

by jgriessen
Mon Aug 13, 2018 9:36 pm
Forum: General Discussion and Questions
Topic: GPIO settings change after USB disconnect, reconnect (caused bympconfigboard.h lines?)
Replies: 4
Views: 505

Re: GPIO settings change after USB disconnect, reconnect (caused bympconfigboard.h lines?)

Oh, thanks for reminding me to look in the board definition files -- mpconfigboard.h has a pin definition for UART2 that I was using when having a hard time with soldering of the QFN48 package of STM32F401CE. // UART config #define MICROPY_HW_UART2_TX (pin_A2) #define MICROPY_HW_UART2_RX (pin_A3) //...
by jgriessen
Mon Aug 13, 2018 3:07 pm
Forum: General Discussion and Questions
Topic: GPIO settings change after USB disconnect, reconnect (caused bympconfigboard.h lines?)
Replies: 4
Views: 505

Re: GPIO settings change after USB disconnect, reconnect (caused bympconfigboard.h lines?)

Can you be more specific about which exact pins change? Port A 1 and 2. PA1 PA2 go to floating, (probably input), from output. rshell issues a few commands when it starts. It calls pyb.RTC or machine.RTC I've seen the port A problem with import also, and rearranged my startup to get all imports don...
by jgriessen
Sat Aug 11, 2018 5:51 pm
Forum: General Discussion and Questions
Topic: GPIO settings change after USB disconnect, reconnect (caused bympconfigboard.h lines?)
Replies: 4
Views: 505

GPIO settings change after USB disconnect, reconnect (caused bympconfigboard.h lines?)

I'm using a STM32F401 platform similar to the G30TH with 512k flash. Is there anything known about this symptom: From hardware reset without USB plugged in, my program starts and port A GPIOs stay as I set them for 60 seconds (more, but I stopped counting) plug in USB connector port A GPIOs stay as ...
by jgriessen
Sat Aug 11, 2018 5:30 pm
Forum: General Discussion and Questions
Topic: Are comments stripped out of code?
Replies: 4
Views: 600

Re: Are comments stripped out of code?

Thanks, I'm not out of space yet, and it's good to know that the comments can flow freely as I improve my code.
I am just loading files to /flash, so they get compiled on the target, but I know how to cross compile instead when I need to.
I'm going to lookup a command to show available flash.
by jgriessen
Thu Aug 09, 2018 11:56 pm
Forum: General Discussion and Questions
Topic: Are comments stripped out of code?
Replies: 4
Views: 600

Are comments stripped out of code?

I'm using a new platform based on STM32F401CE with 512KB Flash/96KB RAM similar to the G30TH, but targeted to using flat flex cables to connect modules instead of 0.1 inch pitch .025 inch square pins and headers. Flex cables make fitting something in an enclosure so much easier. We may be running ou...
by jgriessen
Mon May 14, 2018 7:44 pm
Forum: General Discussion and Questions
Topic: USB MSC mass storage mode as devel tool
Replies: 5
Views: 564

Re: USB MSC mass storage mode as devel tool

The only way to guarantee that no corruption occurs is to turn off access to the filesystem from the pyboard while the host is accessing it.
OK, good! that means I can use it for code development as long as I don't want to do data logging.
by jgriessen
Sat May 12, 2018 10:04 pm
Forum: General Discussion and Questions
Topic: USB MSC mass storage mode as devel tool
Replies: 5
Views: 564

Re: USB MSC mass storage mode as devel tool

So there is occasional file corruption when only doing file writes to USB MSC from the host computer, and only doing soft reset or hard reset from micropython? If this is the status of USB MSC, is there a plan by the main developers to upgrade it so USB MSC will be a valid selling point for code dev...
by jgriessen
Wed May 09, 2018 1:29 pm
Forum: General Discussion and Questions
Topic: USB MSC mass storage mode as devel tool
Replies: 5
Views: 564

USB MSC mass storage mode as devel tool

I've heard warnings about using USB MSC when also wanting to do data logging to the flash memory. Is there any gotcha for using it to develop code? I'm meaning a work flow like: 1. turn on pyboard, 2. leave pyb.usb_mode() at default , 3. on the USB host machine write to the flash via the mounted fil...
by jgriessen
Tue May 08, 2018 3:59 pm
Forum: Other Boards
Topic: open hardware?
Replies: 4
Views: 2085

Re: open hardware?

I have been using the MicroPython PyBoard v1.1 for a project, but now I need to make a custom board to progress further. I make an OSHW Association certified micropython board that is compatible with the v1.9.3 release of micropython and openly documented here: https://github.com/kanzure/culture_sh...
by jgriessen
Mon Apr 30, 2018 9:42 pm
Forum: General Discussion and Questions
Topic: USB MSC mode, #define MICROPY_HW_USB_FS, datalogging
Replies: 2
Views: 442

Re: USB MSC mode, #define MICROPY_HW_USB_FS, datalogging

Files can be retrieved from the Pyboard, for example using Dave Hylands' rshell but (of course) the code will need to close the file before this can reliably be done. Thanks, this is helpful and not easy to find in the docs. So, it seems a good way to do a data logger is have a user button trigger ...