AVR atmega1284p shell

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
zola1981
Posts: 3
Joined: Sun Dec 07, 2014 10:43 am

AVR atmega1284p shell

Post by zola1981 »

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...
User avatar
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

Post by Giovanni »

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
zola1981
Posts: 3
Joined: Sun Dec 07, 2014 10:43 am

Re: AVR atmega1284p shell

Post by zola1981 »

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.
Post Reply