Author Topic: LPC93x programming problems - buffer (pointer)  (Read 55784 times)

Kristen

  • Guest
LPC93x programming problems - buffer (pointer)
« on: June 06, 2005, 10:00:18 am »
Hello,

i have a problem with my mcu.

I use

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2165
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC93x programming problems - buffer (pointer)
« Reply #1 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.

Embedded Systems Academy, Inc.
support at esacademy dot com

Kristen

  • Guest
Re: LPC93x programming problems - buffer (pointer)
« Reply #2 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?

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2165
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC93x programming problems - buffer (pointer)
« Reply #3 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.

Embedded Systems Academy, Inc.
support at esacademy dot com

Kristen

  • Guest
Re: LPC93x programming problems - buffer (pointer)
« Reply #4 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

Kristen

  • Guest
Re: LPC93x programming problems - buffer (pointer)
« Reply #5 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.

erikm

  • Guest
Re: LPC93x programming problems - buffer (pointer)
« Reply #6 on: June 13, 2005, 06:56:44 am »
Have anybody a other solution?

yes, but not in a FlashMagic forum