Hello to everyone. I write code for NRF24LE1 using KEIL and rtx tiny. But i have some problems when include a library.
When i complile the project without ds18b20.c, everythink works good
compiling radio.c... compiling id.c... compiling dht11.c... linking... Program Size: data=182.5 xdata=225 const=7 code=6915 creating hex file from "NDEVICE"... "NDEVICE" - 0 Error(s), 0 Warning(s).
but when i include ds18b20.c i get this message
compiling dht11.c... compiling ds18b20.c... linking... *** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: DATA SEGMENT: _DATA_GROUP_ LENGTH: 000060H Program Size: data=206.5 xdata=225 const=7 code=8428 Target not created
The problem is when i include ds18b20 library i get address space overflow........; what is the problem and how can i solve it; thanks.
MY PROGECT IS HERE drive.google.com/.../view
I like to use the LARGE mamary model.
When i change the memory model from small to large or compact everything looks good! bad when i download the program to the device instruction "radio_get_pload_byte(i)" in "func RF_NRFRxString(msgpayload)" don't work correct! Why when i change memory model i get this bug; what i do wrong; and what i can do to correct it! special thanks!!
People who like to use the LARGE mamary [sic!] model are expected to get problems. Often with lower-back pain. By the way - there is one more 'm' in mammary.
I like to use the LARGE mamary model. bad idea, everything slow down, code space grows, ....
RF_NRFRxString(msgpayload)" don't work correct! Why when i change memory model i get this bug; what i do wrong; code made to work with one memory model often fail when you change the model.
stick to small, relocate a couple of variables (as suggested above)
Erik
Thank you Erik!