delay_us error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
PDeGr
Posts: 12
Joined: Fri Dec 01, 2006 2:56 pm
Location: Belgium

delay_us error

Post by PDeGr »

How can this be solved? By setting the clock speed to 20MHz?

Error: Unable to successfully create 'delay_us' for target with clock freq 19660800 Hz
Error: Unavailable timing functions used!

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

Hello Patrick,

I think you can solve this by using a 20MHz frequency instead.

The linker with BoostC will only produce microsecond delays if it can do them exactly. The older C2C compiler always made microsecond delay code, even if it was not accurate.

By the way, is this in your own code or is the "delay_us" call in the code for one of Flowcode's components? I thought I removed all "us" calls.

BoostC has an equivalent "delay_10us()" call which seems to compile with all clock settings - perhaps you could use this instead?

PDeGr
Posts: 12
Joined: Fri Dec 01, 2006 2:56 pm
Location: Belgium

Post by PDeGr »

Hi,

The "delay_10us() works fine with a clock freq of 19660800 Hz.
The example I used was PhoneExamples_02.zip

Thanks,
Patrick

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

Hello Patrick,

I'm happy this problem is solved.

We updated the files for the mobile phone solution earlier this year and you may have old copies. If you want new files, please contact Ben on our support email address (support@matrixmultimedia.co.uk) and he will send the new files to you.

PDeGr
Posts: 12
Joined: Fri Dec 01, 2006 2:56 pm
Location: Belgium

Post by PDeGr »

Hi steve,

It is not an old copy, it's a download from last week!

Best regards,
Patrick

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

It looks like the CD has changed but we have forgotten to update the download files. I will ask Ben to update these files sometime today.

Thanks for letting me know!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

The Mobile phone example updates now available from the Download section.

Alternativly you can visit this link.

http://www.matrixmultimedia.com/faq_ans ... b08bc2c83f

Post Reply