5 ms·
Should note that these are similar in specs to Arduinos, ie. only a few kilobytes of memory and a processor similar to a Cortex-M0. You won't be able to run Li
by rwmj 8y ago
Should note that these are similar in specs to Arduinos, ie. only a few kilobytes of memory and a processor similar to a Cortex-M0. You won't be able to run Linux on them.
- microcolonel 8y ago> similar to a Cortex-M0 Granted, a very high clocked Cortex-M0+. The clocks are about two and a half times the highest clocked M0+es on the market AFAICT. What it lacks is peripherals (especially ADC).
- mattthebaker 8y agoExcept most M0 cores will have 1 or 2 cycle internal flash memory reads, and this has slow external flash.
- baobrien 8y agoIt has 16kb of instruction cache, though, unlike most M0 cores.
- monocasa 8y agoMost M0 chips I've seen have the cache, it just sits on the other side of the AHB matrix. It's more integrated into the flash controller than the CPU core.
- phkahler 8y ago>> Except most M0 cores will have 1 or 2 cycle internal flash memory reads, and this has slow external flash. With 16K cache. I'm not sure how you ensure consistent performance though - make sure your code will all fit in 16K, but is that enough? And what about the first time through?
- simcop2387 8y agoEven on ARM with built in flash you can't ensure that easily. The only way to do so is to copy code to ram and run from there (most of the M0-4 devices I've seen don't have an icache). This is because of the way that flash ends up being read from by them, (I can't remember the correct term, i want to say something like stop-waits) where the processor ends up waiting for an indeterminate time period waiting on the flash memory to read the next page. 16k cache is likely enough to ensure stable performance of any given function and any tight loops you're using but will probably not be enough for the entire program so you'll still have misses that cause slow downs but it'll probably not be terribly noticeable unless you're trying to ensure timing over large functions.
- ctz 8y ago"Wait-states" is the term you're looking for.
- kevin_thibedeau 8y agoSTM32 has the ART accelerator for it's internal flash. 180 MHz F4 can run at full speed without any wait states most of the time.
- davrosthedalek 8y agoHow does IPC compare for Cortex and RISC-V?
- monocasa 8y agoIt's about the same between an M0 and a HiFive1. They're both simple RISCs pretty much straight out of Patterson & Hennessy.
- duskwuff 8y agoAnd a lot fewer peripherals. Interrupt controller, RTC, WDT, 2 SPI units (one of which is used for program flash), 2 very basic UARTs, and three timer/PWM units. Notable omissions include: no DMA, no I2C, no ADC/DAC, and no good documentation. (The documentation that is available is inconsistent and poorly written. Some of the documentation references a nonexistent third SPI peripheral, for instance.)
- SeanLuke 8y ago> no ADC/DAC The arduino has a DAC? > no I2C Well, I'm out then. That's a big one.
- duskwuff 8y agoArduino boards typically don't have a DAC, but it's a common enough feature in microcontrollers that I figured I'd mention its absence.
- jononor 8y agoArduino Uno no, since that uses a chip that is over 8 years old. But a modern 8bit AVR which cost under 1USD in single units, like Attiny3214, has a DAC.
- CamperBob2 8y agoYou can bit-bang I2C easily enough, as long as none of your slave devices have an SMBus-style bus timeout feature. Might be a bit hard for an AVR-class CPU to keep up with those without some attention paid to performance optimization.
- molticrystal 8y agoThere might be a way tune the risc-v port to this chip if there isn't one tuned already, and while it is likely you wouldn't be able to run linux well on them at the moment, and you'd definitely need some additional rw memory of some form, it would be possible, it does run on microcontrollers with worse specs. For example here is how to get Ubuntu linux to boot on an 8-bit AVR ATmega1284p, by emulating ARMv5: http://dmitry.gr/index.php?proj=07.+Linux+on+8bit&r=05.Projects http://dmitry.gr/index.php?proj=07.+Linux+on+8bit&r=05.Proje... And as most people know, but if they didn't, here is linux on a hard drive microcontroller http://spritesmods.com/?art=hddhack&page=1 http://spritesmods.com/?art=hddhack&page=1 And probably the best option for performance, if it can be ported over, uClinux doesn't require an mmu. http://www.uclinux.org/ports/ http://www.uclinux.org/ports/
- CamperBob2 8y agoFor example here is how to get Ubuntu linux to boot on an 8-bit AVR ATmega1284p, by emulating ARMv5 That's awesome, even if it takes 3 hours to boot. :-P Almost everything can be considered a Turing machine if you're patient enough.