Hi!
I try to activate the shell on the avr microcontroller.
I've encounter those problems:
in the syscals.c i miss those :
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/reent.h>
if I comment those I need allsow to provide @p __heap_base__ and @p __heap_end__ (I don't know how to do it, never do it before)
Some help please...
AVR atmega1284p shell
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: AVR atmega1284p shell
Hi,
You don't need syscall.c for the shell, you can remove it from the makefile. About the missing symbols, those are required if you want to use all RAM for the heap, the .ld file has to export them. If you don't want to modify the .ld file then set the heap size to a fixed amount in chconf.h.
Giovanni
You don't need syscall.c for the shell, you can remove it from the makefile. About the missing symbols, those are required if you want to use all RAM for the heap, the .ld file has to export them. If you don't want to modify the .ld file then set the heap size to a fixed amount in chconf.h.
Giovanni
Re: AVR atmega1284p shell
Funziona!!
Grazie 1000 Giovanni!
Now if I want to use whole RAM, how should look the ld file inside (targheted to AVR), and where it must be placed?
I'm new to command line compiling and GCC, i've read something about malloc() and gcc, but stil got no ideea how to do it.
What I know is only this: the heam must not colide with the stack.
Grazie 1000 Giovanni!
Now if I want to use whole RAM, how should look the ld file inside (targheted to AVR), and where it must be placed?
I'm new to command line compiling and GCC, i've read something about malloc() and gcc, but stil got no ideea how to do it.
What I know is only this: the heam must not colide with the stack.