This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Writing to Flash on C8051f350

Hello,

I have some problem when I try to write to Flash memory.

I read AN201 "WRITING TO FLASH FROM FIRMWARE" and I use write functions for F350 (page 100).

There is no problem with a light program.
But now I try to integrate these functions on a large program. When I look at memory, any data has been written.

In AN20 (page 3), I found this : "Be cautious when using the 'Large' and 'Compact' memory models, which target xdata and pdata spaces for user variables, both of which generate MOVX write opcodes."
Indeed, my first program use small memory model (no pb) and my last program use large one.

Is there a solution to write to flash memory with a large program ?

0