Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #105

Closed
sveco86 opened this issue Nov 26, 2018 · 4 comments
Closed

build error #105

sveco86 opened this issue Nov 26, 2018 · 4 comments

Comments

@sveco86
Copy link

sveco86 commented Nov 26, 2018

It is not possible to build following firmware using building scripts in src folder:

  • celsius_com
  • celsius_probe2
  • celsius_fo433
  • celsius_minute_probe2
  • celsius_minute_com
  • celsius_ovbsc

e.g. ./build.sh com gives:
./build.sh com

Building stc1000p_com
sdcc -c -o build/page0_celsius_com.o page0.c --use-non-free -mpic14 -p16f1828 --opt-code-size --no-pcode-opt --stack-size 8 -DCOM
sdcc -c -o build/page1_celsius_com.o page1.c --use-non-free -mpic14 -p16f1828 --opt-code-size --no-pcode-opt --stack-size 8 -DCOM
sdcc -o build/stc1000p_celsius_com build/page0_celsius_com.o build/page1_celsius_com.o --use-non-free -mpic14 -p16f1828 --opt-code-size --no-pcode-opt --stack-size 8 -DCOM
message: Using default linker script "/usr/share/gputils/lkr/16f1828_g.lkr".
error: No target memory available for section ".code".
Makefile:13: recipe for target 'stc1000p_celsius_com' failed
make: *** [stc1000p_celsius_com] Error 1
rm build/page0_celsius_com.o build/page1_celsius_com.o

@matsstaff
Copy link
Owner

Looks like the generated code does not fit. It is a tight squeeze.
My guess is you are using a version of sdcc that produces slightly larger code.
Try changing to an older sdcc version (I think I've tried 3.4.0 and 3.5.0).

Either that, or you've made changes/additions to the code?

@sveco86
Copy link
Author

sveco86 commented Nov 29, 2018

Hello,
thank you for your reply.

I am using SDCC version 3.8.0, I will try to use older version.

I would like to implement 2 changes described in Issue 104 (#104) which will allow me to control STC over internet (ESP8266 using MQTT) by changing SP in Th mode and running profiles.

@matsstaff - Can you please support me in implementation of described changes?

@sveco86
Copy link
Author

sveco86 commented Dec 6, 2018

I can confirm that using sdcc 3.3.0 for compilation works.

@sveco86 sveco86 closed this as completed Dec 6, 2018
@matsstaff
Copy link
Owner

Nice to hear you got the compilation working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants