AVR Nil demo takes up almost 6k?

Discussions and support about ChibiOS/NIL, the almost nil RTOS.
rongcuid
Posts: 5
Joined: Fri Jan 13, 2017 7:29 pm

AVR Nil demo takes up almost 6k?

Postby rongcuid » Fri Jan 13, 2017 7:39 pm

According to the documents, ChibiOS/Nil should not exceed 1KB at maximum configuration. However, when I try to compile the NIL-ARDUINOUNO demo:

Code: Select all

Size after:
AVR Memory Usage
----------------
Device: atmega328p

Program:    5278 bytes (16.1% Full)
(.text + .data + .bootloader)

Data:        555 bytes (27.1% Full)
(.data + .bss + .noinit)



-------- end --------


This doesn't look quite right, as the bare example alone takes up almost 6k. I tried changing compiler optimization, and it doesn't help a lot here. The make output indicates that the demo is correctly linked to NIL files, so it is not incorrectly linked to RT or something.

Or am I misunderstanding the claim about space? Does HAL take a large chunk of space too?

rongcuid
Posts: 5
Joined: Fri Jan 13, 2017 7:29 pm

Re: AVR Nil demo takes up almost 6k?

Postby rongcuid » Fri Jan 13, 2017 7:59 pm

OK, after some investigation, it looks like that those 5K are actually taken by HAL. Enabling everything in Nil config simply adds a few hundred B to the final size, so I guess that is it.

User avatar
Giovanni
Site Admin
Posts: 11083
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 367 times
Been thanked: 306 times
Contact:

Re: AVR Nil demo takes up almost 6k?

Postby Giovanni » Fri Jan 13, 2017 8:51 pm

Correct, NIL alone, the RTOS, is very small but HAL size varies depending the enabled drivers.

Giovanni


Return to “ChibiOS/NIL”

Who is online

Users browsing this forum: No registered users and 1 guest