Search found 14 matches
- Mon Mar 06, 2017 2:49 pm
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
Thank you mcauser. I'm a MicroPython newbie, and I've just started looking at source code. I've done some more tests. Servo: >>> sr=pyb.Servo(1) >>> sr.angle(-90) >>> sr.angle(90) >>> sr.angle(-90) >>> sr.angle(90) >>> sr.angle() 85 >>> sr.angle(-90) >>> sr.angle() -79 >>> sr.angle(-90) >>> sr.angle...
- Mon Mar 06, 2017 2:13 pm
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
Indeed one more mistake. You need to put #define MICROPY_HW_RTC_USE_LSE (1) ***AFTER*** pll definitions or you'll get wrong cpu freq. e.g.: #define STM32F407COREV #define MICROPY_HW_BOARD_NAME "Black STM32F407CORE (8MHz HSE)" #define MICROPY_HW_MCU_NAME "STM32F407" #define MICROPY_HW_HAS_SWITCH (1) ...
- Mon Mar 06, 2017 10:44 am
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
Finally, I got it! >>> rtc=pyb.RTC() >>> rtc.datetime() (2000, 1, 1, 1, 1, 38, 47, 22) >>> rtc.datetime((2017,3,6,1,11,25,0,0)) >>> rtc.datetime() (2017, 3, 6, 1, 11, 25, 2, 0) **************************** SOFT RESET **************************** >>> rtc=pyb.RTC() >>> rtc.datetime() (2017, 3, 6, 1, 1...
- Mon Mar 06, 2017 9:23 am
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
So the answer (IMHO):"It's not a HW problem" I compiled a test sketch in Arduino (STM32Arduino). It's not easy to work with F4 because of preliminary Arduino support. Anyway there is a RTC lib which lacks of maintainer=xxx def (yes, it blocks building :-) ). I've manually uploaded .bin with stm32fla...
- Sun Mar 05, 2017 8:06 am
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
I made some more tests. I've changed battery with a new one (no difference) and made some run without battery (same results). Here also some rtc.info() >>> rtc.datetime() (2015, 1, 1, 4, 0, 0, 0, 255) >>> rtc=pyb.RTC() Traceback (most recent call last): File "<stdin>", line 1 SyntaxError: invalid sy...
- Sun Mar 05, 2017 6:38 am
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
>>> >>> rtc=pyb.RTC() >>> rtc.datetime() (2015, 1, 1, 4, 0, 0, 0, 255) >>> rtc.datetime((2017,3,5,7,7,28,30,0)) >>> rtc.datetime() (2017, 3, 5, 7, 7, 28, 33, 236) >>> Traceback (most recent call last): File "<stdin>", line 1 SyntaxError: invalid syntax >>> >>> rtc=pyb.RTC() >>> rtc.datetime() (2015...
- Sat Mar 04, 2017 11:54 pm
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
Ok, found dot on pcb. Dot on chip is the small one. Pin6 ->3.1v.
I'm thinking about a test with stm32arduino just to check rtc healt. Anyway now in Italy is midnight... so.... eventually tomorrow...
Thanks again!
I'm thinking about a test with stm32arduino just to check rtc healt. Anyway now in Italy is midnight... so.... eventually tomorrow...
Thanks again!
- Sat Mar 04, 2017 11:40 pm
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
I found pinout somewhere, the first one on line. Vbat -> pin 6. On that pin (maybe i'm wrong, they're tiny) 3.1v.
I'm not sure also about pin numbering because chip has two 'dots'. Anyway seems correct.
Thank you for your help.
I'm not sure also about pin numbering because chip has two 'dots'. Anyway seems correct.
Thank you for your help.
- Sat Mar 04, 2017 10:28 pm
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
It works, set, but reset on power cycle. Backup battery is ok. Strange. Seems like hw failure or something. Machine.RTC should be more tight to hw, were pyb sounds like a wrapper (newbie hunch)
- Sat Mar 04, 2017 9:41 pm
- Forum: Other Boards
- Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
- Replies: 167
- Views: 309845
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
Well, RTC seems have major trouble: >>> rtc = machine.RTC() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'RTC' >>> machine.freq() (168000000, 168000000, 42000000, 84000000) >>> machine.unique_id() b'G\x001\x00\x16Q606478' ......