setting frequency??

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
eduardo
Posts: 31
Joined: Mon Jan 05, 2015 6:48 pm

setting frequency??

Post by eduardo » Mon Jan 05, 2015 7:03 pm

I am using the following version

PYB: soft reboot
Micro Python v1.3.3 on 2014-10-02; PYBv1.0 with STM32F405RG
Type "help()" for more information.

setting frequency gives me the following error

>>> import pyb
>>> pyb.freq(30000000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: function takes 0 positional arguments but 1 were given
>>>

What am i doing wrong?

Thank you

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: setting frequency??

Post by dhylands » Tue Jan 06, 2015 3:33 am

I think that your firmware might be too old.

Code: Select all

Micro Python v1.3.8-9-g8a2cc1c on 2014-12-29; F4DISC with STM32F407
Type "help()" for more information.
>>> pyb.freq(30000000)
>>> pyb.freq()        
(30000000, 30000000, 7500000, 15000000)
>>> pyb.freq(40000000)
>>> pyb.freq()        
(40000000, 40000000, 10000000, 20000000)

eduardo
Posts: 31
Joined: Mon Jan 05, 2015 6:48 pm

Re: setting frequency??

Post by eduardo » Tue Jan 06, 2015 10:46 am

As I ordered end Of december, I had hoped that I get a current Firmware version.

Sending out outdated firmware version to force people to do a firmware update seems to me
a little bit "odd".

ed

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: setting frequency??

Post by dhylands » Wed Jan 07, 2015 5:26 am

I checked the history and it look like the frequency stuff had some issues that were fixed in 1.3.6.

Since your firmware is earlier than that, that's why it isn't working.

I don't know how frequently Damien flashes the firmware for the boards, but I expect he does them in batches.

eduardo
Posts: 31
Joined: Mon Jan 05, 2015 6:48 pm

Re: setting frequency??

Post by eduardo » Wed Jan 07, 2015 8:07 am

Thank you very much for your reply.

You are very helpfull and I apreciate that.

Yours

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Re: setting frequency??

Post by Damien » Fri Jan 09, 2015 4:33 am

eduardo wrote:As I ordered end Of december, I had hoped that I get a current Firmware version.

Sending out outdated firmware version to force people to do a firmware update seems to me
a little bit "odd".

ed
We program the boards in large batches and so their firmware is unfortunately not the very latest version. We also add features quite quickly so version numbers move fast. And It's not feasible to program the boards each day ; if we did this then all we would be doing is programming and would have no time for bug fixes and new features!

Hopefully that clarifies the situation.

eduardo
Posts: 31
Joined: Mon Jan 05, 2015 6:48 pm

Re: setting frequency??

Post by eduardo » Fri Jan 09, 2015 9:02 pm

Thank you very much for the explanation.

Yes; I prefer getting "bugfixes" over "delivered with actual firmware version".

As the product is new, I would need to reflash the board anyway sometime in the future.

:-)

Post Reply