Hi,
My flash placement file has the following code:
The .uicrbootstartaddress section is defined in the code starting at 0x10001014, with a size of 4, so it should end at 0x10001018, and .uicrRBPCONF section start at 0x10001004, should end at 0x10001008, is that right?
But then I compiled the my program, I reported the following error: section .uicrBootStartAddress overlaps absolute placed section .uicrRBPCONF I want to know why is this happening? How should I properly configure the flash placement file?
When I put the definition of .uicrRBPCONF section before .uicrbootstartaddress section, there was no more error, but there was A new problem,I've defined A variable to put in .uicrRBPCONF section, the code is:
I then downloaded the program to the chip and found that the contents of the address 0x10001014 did indeed become 0xff00ff, but several of the following addresses were also changed to zero by the outside address, which should have been 0xffffff. And although I added the volatile qualifier o m_uicr_rbpconf_value variable, its value wouldn't be written to the address 0x10001004 if I didn't use this variable in my code.I want to know where the problem is and how to solve it.
Thank you very much for your support.
My flash placement file has the following code:
Source Code
- <MemorySegment name="$(FLASH_NAME:UICR)">
- <ProgramSection alignment="4" size="0x04" load="Yes" name=".uicrBootStartAddress" start="$(UICR_BOOTLOADER:0x10001014)" />
- <ProgramSection alignment="4" size="0x04" load="Yes" name=".uicrRBPCONF" start="$(UICR_RBPCONF:0x10001004)" />
- <ProgramSection alignment="4" size="0x04" load="Yes" name=".uicrMbrParamsPageAddress" start="$(UICR_MBR_PARAM_PAGE:0x10001018)" />
- </MemorySegment>
But then I compiled the my program, I reported the following error: section .uicrBootStartAddress overlaps absolute placed section .uicrRBPCONF I want to know why is this happening? How should I properly configure the flash placement file?
When I put the definition of .uicrRBPCONF section before .uicrbootstartaddress section, there was no more error, but there was A new problem,I've defined A variable to put in .uicrRBPCONF section, the code is:
Thank you very much for your support.