More confussing stuff from Mike

  • Thread starter Thread starter AMP
  • Start date Start date
A

AMP

I have a statement:
if ((error = bslTxRx(BSL_MERAS, /* Command: Mass Erase */
0xff00, /* Any address within flash memory. */
0xa506, /* Required setting for mass erase! */
null, blkin)) != ERR_NONE)

The Return Statement from bslTxRx is:

return (ERR_NONE);

FYI:
ERR_NONE=0

But "error" comes back as 1.
There are no errors, as this return statment gets fired.

Of Course I'm doing something wrong, but what?
Thanks
Mike
 
|I have a statement:
| if ((error = bslTxRx(BSL_MERAS, /* Command: Mass Erase */
| 0xff00, /* Any address within flash memory. */
| 0xa506, /* Required setting for mass erase! */
| null, blkin)) != ERR_NONE)
|

Seems like C code, right? Are you calling this from C#?

| The Return Statement from bslTxRx is:
|
| return (ERR_NONE);
|
| FYI:
| ERR_NONE=0
|
| But "error" comes back as 1.
| There are no errors, as this return statment gets fired.
|
| Of Course I'm doing something wrong, but what?

Hard to tell without seeing any code, so please post the code( supposing
it's C# code).


Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top