Hi,
I am using the ZStack 2.5.1a, and have edited and added to esp.c to suit our needs. Everything works fine until I enable NV_RESTORE: it gives me this error:
Error[e16]: Segment ZIGNV_ADDRESS_SPACE (size: 0x3000 align: 0) is too long for segment definition. At least 0xfd3 more bytes needed. The problem occurred while processing the segment placement command
"-Z(CODE)ZIGNV_ADDRESS_SPACE=_ZIGNV_ADDRESS_SPACE_START-_ZIGNV_ADDRESS_SPACE_END", where at the moment of placement the available memory ranges were "CODE:7d7d3-7f7ff"
Reserved ranges relevant to this placement:
CODE:7c714-7d7d2 BANKED_CODE
CODE:7d7d3-7f7ff ZIGNV_ADDRESS_SPACE
BIT:0-7 BREG
BIT:80-87 SFR_AN
BIT:90-97 SFR_AN
BIT:a0-af SFR_AN
BIT:b8-c7 SFR_AN
BIT:e8-ef SFR_AN
BIT:f8-ff SFR_AN
Error while running Linker
Total number of errors: 1
Total number of warnings: 0
I have tried loading the original unedited esp.c and enabling NV_RESTORE and it works just fine, so I know that the problem is with my code somewhere, but I don't see the relation between the NV memory and address space defining, given that none of my code changes deal with the NV memory.
I will appreciate any help that I can get as I have much to learn about ZStack. Thanks for your time