Re:Freescale Shrinks World’s Smallest ARM-Based MCU by 15%
by dman on Sunday March 02, 2014 @10:48AM
(#7329483)
What os do people run on this?
[ Parent
| on HN ]
Re:Freescale Shrinks World’s Smallest ARM-Based MCU by 15%
by sitkack on Sunday March 02, 2014 @12:51PM
(#7329949)
They don't usually run an OS. But are structured like
void setup_code() {
// configure SPI
// analog to digital converters
// timers
// fix internal and external buggy hardware
}
void interrupt_handler() {
TURN_OFF_INTERRUPTS;
// packet recv
// time expired
// etc
TURN_ON_INTERRUPTS;
}
setup_code();
register_interrupt_handler(interrupt_handler);
while(1) {
// application code
}
Microcontrollers like this only have 2k of working state, the presentable complexity is in the code, not the data.
Re:Freescale Shrinks World’s Smallest ARM-Based MCU by 15%
by posborne on Sunday March 02, 2014 @11:15AM
(#7329573)
Freescale provides an RTOS for free called MQX (http://www.freescale.com/webapp/sps/site/homepage.jsp?code=M...) that I have seen used on some projects. Otherwise, bare metal or one of the other standard RTOS options.
Re:Freescale Shrinks World’s Smallest ARM-Based MCU by 15%
by rwmj on Sunday March 02, 2014 @11:33AM
(#7329638)
There are various FORTHs which run on this and similar chips. Search for M0 FORTH. For example I think this one will run on the Freedom Board:
Re:Freescale Shrinks World’s Smallest ARM-Based MCU by 15%
by timthorn on Sunday March 02, 2014 @10:53AM
(#7329497)
You quite possibly don't run an OS, but there are a number of RTOS stacks available - or some people still brew their own.
Re:Freescale Shrinks World’s Smallest ARM-Based MCU by 15%
by jmpe on Sunday March 02, 2014 @10:51AM
(#7329491)
an RTOS (uC/OS, Freertos, chibios, ...) or simply a hal such as CMSIS.
Re:Freescale Shrinks World’s Smallest ARM-Based MCU by 15%
by Qworg on Sunday March 02, 2014 @10:55AM
(#7329500)
Or right on the bare metal.
Re:Freescale Shrinks World’s Smallest ARM-Based MCU by 15%
by pjmlp on Sunday March 02, 2014 @11:33AM
(#7329636)
Bare metal, and preferably Assembly as you need every byte in those 32KB/2KB.
Re:Freescale Shrinks World’s Smallest ARM-Based MCU by 15%
by cnvogel on Sunday March 02, 2014 @02:02PM
(#7330262)
Bare metal: Probably yes, if you don't need the services of an multithreading-OS.
Assembly: probably no. Have a look at what people are doing in C++ on the Arduino platform (the Mega328 has the same Flash/RAM).