Flash Magic Forum

General => Off-Topic (Read Only) => Topic started by: Kristen on June 06, 2005, 10:00:18 AM

Title: LPC93x programming problems - buffer (pointer)
Post by: Kristen on June 06, 2005, 10:00:18 AM
Hello,

i have a problem with my mcu.

I use
Title: Re: LPC93x programming problems - buffer (pointer)
Post by: Andy Ayre on June 06, 2005, 10:21:39 AM
For non-ISP questions you are better off posting your question on the discussion forum at 8052.com.

Hint: for printf with 8-bit values try %bx instead of %x.

Title: Re: LPC93x programming problems - buffer (pointer)
Post by: Kristen on June 06, 2005, 02:32:50 PM
i have found a other reason, if i send to the i2c driver data from the main c file it is ok but i send from a other c file it dont ok.

the first command i send is 12 flanks the secound command must be 8 flanks but it are 12 flanks.

ram problems?
Title: Re: LPC93x programming problems - buffer (pointer)
Post by: Andy Ayre on June 06, 2005, 02:34:12 PM
I don't know what a "flank" is. You might be better off posting your question on 8052.com.

Title: Re: LPC93x programming problems - buffer (pointer)
Post by: Kristen on June 06, 2005, 03:39:24 PM
ok it is not posible i found more about the problem:
in the main function it can send and recv successfull data to and from i2c bus but outsite the main function it don't work. (the main funktion call a other funktion).


flank = from a digital line (SDA), the changing from low to high.
i can measuring that with a logicprobe.

thanks
Title: Re: LPC93x programming problems - buffer (pointer)
Post by: Kristen on June 07, 2005, 08:40:57 AM
i "found" now the problemm,

it was a problemm for the Keil Compiler C51 - the Optimization Level 6 was to high with level 1 it works but the code is 1 kb bigger thats nod good.

Have anybody a other solution?

Thanks.
Title: Re: LPC93x programming problems - buffer (pointer)
Post by: erikm on June 13, 2005, 06:56:44 AM
Have anybody a other solution?

yes, but not in a FlashMagic forum