This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48L952: Cannot access(read) certain flash area

Part Number: RM48L952
Other Parts Discussed in Thread: HALCOGEN

Hi,

I'm currently trying to buiild my custom bootloader(upgrader) for RM48L952.

I'm using a single sector to store binary program. However when I try to read from the sector the debugger says Target failed to read <address>.

Here's the memory:

struct Sector is following:

struct Sector
{
    union
    {
        uint8_t block[128][1024];
        struct
        {
            uint8_t bigReserved[128 * 1024 - 8];
            uint32_t count;
            uint8_t reserved[2];
            uint8_t writeStart;
            uint8_t writeEnd;
        };
    };
};

When I run without breakpoint, the program aborts at flashErrorReal(dabort.asm) while trying to read those values.

What could be the problem?

Thank you!

Edit: I didn't have problem when using bank7... Could the problem be related to using bank 1?