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

Multiple call to segment warning

I am seeing this warning when I try to compile my code

Warning L15: multiple call to segment
segment: ?pr?_nvmwrit?nvmem_cc
caller1: ?pr?spicommisr?spi_com_cc
caller2: ?c_c51startup

I looked through my code, I don't call nvmwrite in spicommisr routine. And what is this c51startup file?

thanks,
DG

Parents
  • one more difference, I did a compile with optimizer set to be 1 then I search ?SPICOMMISR? in the map file.

    I find that SPICOMMISR show up in XDATA memory section besides CODE MEMORY and OVERLAY MAP:
    XDATA 066FH 0001H UNIT ?XD?SPICOMMISR?SPI_COM_CC

    And optimizer set > 1, SPICOMMISR only show up in CODE MEMORY and OVERLAY MAP area. So I guess the data overlaying process move ISR out of xdata space, and somehow mess up other stuff?

Reply
  • one more difference, I did a compile with optimizer set to be 1 then I search ?SPICOMMISR? in the map file.

    I find that SPICOMMISR show up in XDATA memory section besides CODE MEMORY and OVERLAY MAP:
    XDATA 066FH 0001H UNIT ?XD?SPICOMMISR?SPI_COM_CC

    And optimizer set > 1, SPICOMMISR only show up in CODE MEMORY and OVERLAY MAP area. So I guess the data overlaying process move ISR out of xdata space, and somehow mess up other stuff?

Children