-
Notifications
You must be signed in to change notification settings - Fork 20
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
dev_config.h referenced but not included #10
Comments
I see now this is generated by the Makefile. I'm trying to get this into the Arduino IDE and onto an ATTiny85. Any help on the easiest way for me to port it? Thanks, |
So after reading all the docs, I get a python error from Cfg.py: RuntimeError: maximum recursion depth exceeded while calling a Python object C |
On 31.08.2015 00:37, Interface Innovations wrote:
I'll need the command you called, your config file, and the actual stack -- Matthias Urlichs |
Matthias, I've tried multiple configs with the same result. Please find one attached. The command issued here was' make CFG=attiny85config.cfg tinytc I have a couple other questions:
Thanks, On 8/30/2015 11:43 PM, Matthias Urlichs wrote:
|
On 31.08.2015 16:17, Interface Innovations wrote:
-- Matthias Urlichs |
I did attach them. It grabbed text and blurged it into the forum here. Why don't we do this: https://interfaceinnovations.org/temp/makeoutput Colin |
On 01.09.2015 08:06, Interface Innovations wrote:
The current master (75fbf68 on github) compiles for me. I also had to fix your config file a bit: . types: . port: 1 . port: . 1: B4~* -- Matthias Urlichs |
Hi, On 31.08.2015 16:17, Interface Innovations wrote:
-- Matthias Urlichs |
Thanks for all the info. Very helpful. I purged and reinstalled gcc-avr and avr-libc, nuked my owslave directory and pulled from the master. Now different errors, the key ones repeated are of the form: /home/colin/avr/owslave-master/moat.c:120: undefined reference to `pgm_read_ptr' https://interfaceinnovations.org/temp/makeoutput2 I am also a bit curious as to why the make begins with a reference to: I assumed that the ref in the config targeted the 85 specifically. With respect to the port needing to be changed, I read from line 152 in HOWTO that this was the 'basic digital input/output pin', which I assumed means this is where the 1Wire emulation will take place. Hence, I changed this to 3, the pin that I want to connect to the 1Wire bus. If this is an incorrect reading, I still need to know where to specify this, as it is not clear from reading through adc.c, main.c, or several other files where I should specify this (or if it is hardcoded for each device type). Overall, this looks quite powerful, and I'd be happy to blog about it to help laypeople such as myself to get it up and running. This functionality is certainly very useful. Cheers, |
I likewise tried to call 'sudo make CFG=world.cfg test85' to try the built-in test config with the same pgm_ptr errors listed above. Colin |
On 01.09.2015 18:21, Interface Innovations wrote:
-- Matthias Urlichs |
Yes, I get that now after reading through world.cfg. It's still a bit Colin On 9/1/2015 10:08 AM, Matthias Urlichs wrote:
|
On 01.09.2015 18:21, Interface Innovations wrote:
-- Matthias Urlichs |
On 01.09.2015 18:21, Interface Innovations wrote:
I added workaround in change e573863 -- please try again. -- Matthias Urlichs |
On 01.09.2015 19:02, Interface Innovations wrote:
Please do NOT use "sudo make". There is no reason whatsoever to do that. -- Matthias Urlichs |
Now we have: /home/colin/avr/owslave-master/moat.c:127: undefined reference to `pgm_read_ptr_near' I'd be happy to update the toolchain. I just grabbed what was in the deb repos. Where should I grab an updated package from? Colin |
I did chown, but I thought I saw a perms issue on something outside of Colin On 9/1/2015 11:02 AM, Matthias Urlichs wrote:
|
On 01.09.2015 20:02, Interface Innovations wrote:
-- Matthias Urlichs |
https://interfaceinnovations.org/temp/pgmspace.h On 9/1/2015 11:31 AM, Matthias Urlichs wrote:
|
Same error on new version of WinAVR with Python 3.4. Fresh download, Colin On 9/1/2015 11:31 AM, Matthias Urlichs wrote:
|
Ok, so my pgmspace.h was very old. I replaced it with what I found here: http://www.nongnu.org/avr-libc/user-manual/pgmspace_8h_source.html Seems to contain the macro that was not found, but I still receive the same error when I attempt compile. This is making me feel pretty dumb. C |
Tried on yet another ubuntu machine: /home/colin/avr/owslave/moat.c:120: undefined reference to `pgm_read_ptr_near' What shall I do? |
Alright. I must confess I haven't compiled and linked c in a decade, so this is all slowly coming back. First, for whatever reason, the pgmspace.h file was not being loaded in the pgm.h workaround. Don't know why. I added another block in pgm.h to include the pgm_read_ptr_near definition, and it now compiles. I still don't understand why this is the case. Where are these definitions supposed to be normally? And why wasn't pgmspace.h being loaded as requested? C |
On 03.09.2015 22:41, Interface Innovations wrote:
I'll implement a workaround for too-old avr/pgmspace.h. -- Matthias Urlichs |
Fair enough. Please feel free to email me off list at Also not the place here, but compile and burn does not work on windows Colin On 9/3/2015 8:51 PM, Matthias Urlichs wrote:
|
Hello!
It appears that dev_config.h is referenced by features.h (and elsewhere, I believe), but it not included here in the repo. Where do I find him?
Thanks,
Colin
The text was updated successfully, but these errors were encountered: