Page 1 of 1

setting frequency??

Posted: Mon Jan 05, 2015 7:03 pm
by eduardo
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

Re: setting frequency??

Posted: Tue Jan 06, 2015 3:33 am
by dhylands
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)

Re: setting frequency??

Posted: Tue Jan 06, 2015 10:46 am
by eduardo
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

Re: setting frequency??

Posted: Wed Jan 07, 2015 5:26 am
by dhylands
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.

Re: setting frequency??

Posted: Wed Jan 07, 2015 8:07 am
by eduardo
Thank you very much for your reply.

You are very helpfull and I apreciate that.

Yours

Re: setting frequency??

Posted: Fri Jan 09, 2015 4:33 am
by Damien
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.

Re: setting frequency??

Posted: Fri Jan 09, 2015 9:02 pm
by eduardo
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.

:-)