11 ms·
ESP32-C3 WiFi and BLE RISC-V processor is pin-to-pin compatible with ESP8266
- meekrohprocess 6y agoNice. The XTensa cores always felt weird. Too bad they only included the I/M/C extensions - no floats, vectors, or atomics. And USB would be nice (nevermind, it has USB :D). But it's still very exciting. Maybe there'll be less conflict between ARM/XTensa/PIC32/etc. cores in the coming years.
- baybal2 6y agoI believe the problem was XTensas not being available in hard macros, or at least Chen will not sell them at a price point a mortal can afford. That's a huge thing when power efficiency, and operation from battery mattered.
- Scaevolus 6y agoWhy do you need atomics on a single core device?
- praseodym 6y agoThere are ESP32 variants with a dual-core Xtensa processor (https://en.wikipedia.org/wiki/ESP32 https://en.wikipedia.org/wiki/ESP32).
- meekrohprocess 6y agoInterrupts and exceptions can happen at any point in a program's execution on a microcontroller, and they are free to modify memory and peripheral registers. >Load <register> >Modify register in memory >>Interrupt happens and changes <register> >Write incorrect value back to <register>. These sorts of bugs can be pernicious to debug, and they are easy for novice developers to create.
- yjftsjthsd-h 6y agoThat's horrifying. What is the fix/mitigation if you don't have proper atomics? I can't see how to properly avoid that.
- unwind 6y agoObviously interrupt code can't clobber registers like that, any shared register the ISR needs to share with ordinary code must be saved/restored on entry/exit somehow.
- loeg 6y agoI think GP is talking about MMIO or some device register rather than the CPU’s register file.
- loeg 6y agoYou implement higher-level abstractions like mutexes. On a single core device this could be as simple as masking interrupts. You can use the mutexes to avoid the described race.
- phkahler 6y agoOnly communicate in one direction. I write, you read. I can also provide a large coherent set of data so long as you dont read it until I mark it as ready. There are many other ways too.
- monocasa 6y agoYou just guard those sequences by disabling and reenabling interrupts around them. It's a very common pattern in systems not designed for SMP.
- meekrohprocess 6y agoYou can disable interrupts when modifying locking primitives, and save/restore the CPU context when interrupts are entered/exited. You can also minimize the amount of changes that any interrupt handler can make within the interrupt context. It's not really that bad, and plenty of microcontrollers lack atomic operations.
- stefan_ 6y agoBecause you are likely still running a preemptive multitasking operating system.
- azdle 6y ago> And USB would be nice. The block diagram show "USB Device" in the peripherals block.
- meekrohprocess 6y agoOh yeah, cool - I missed that. Finally! An Espressif chip with WiFi, Bluetooth, and USB!
- Sprite_tm 6y agoNote that the USB device is not a full-function software-controllable device; it provides a built-in 'serial port' and JTAG debugger only.
- sam_bristow 6y agoHaving a RISC-V based ESP also means it should be easy to add support in Renode [1]. [1]https://renode.io/ https://renode.io/
- ed25519FUUU 6y ago> Pricing will also be similar to ESP8266. How can they possibly sell these chips at these prices? This is impossibly cheap. You can’t even accuse them of trying to flood and control the market because they already own the market!
- renw0rp 6y agowhat market are you talking about? hobby projects market? that's for sure, but that's not where the big money is.
- ampdepolymerase 6y agoYou are seeing economies of scale (and cheap labour) in action.
- pjc50 6y agoI'm not sure people realize how cheap small chips are that aren't on the bleeding edge of the process.
- makapuf 6y agoThis is really nice, riscv plus Wifi and BT will be a dream for hackers provided the chip and firmware is well documented. The datasheet is also in the comments (https://mega.nz/file/nk41mSAL#R_d0njlKRb-aIoGuX6JXUB5eeflAdyruz_11tiuvNF4 https://mega.nz/file/nk41mSAL#R_d0njlKRb-aIoGuX6JXUB5eeflAdy... )(chinese pdf) : 160MHz 400k sram apparently single core.
- kanwisher 6y agoSome reason this didn't work, someone made an English translation https://mega.nz/file/4VRGgLzK#YIzeMvj_Z-LayxY8KztL4WiifcmQYcFJTomzFrEr_3c https://mega.nz/file/4VRGgLzK#YIzeMvj_Z-LayxY8KztL4WiifcmQYc...
- codetrotter 6y agoThe comment parent to yours had a closing parentheses and stuff after the link that broke it. The link for the Chinese pdf is https://mega.nz/file/nk41mSAL#R_d0njlKRb-aIoGuX6JXUB5eeflAdyruz_11tiuvNF4 https://mega.nz/file/nk41mSAL#R_d0njlKRb-aIoGuX6JXUB5eeflAdy...
- makapuf 6y agoGood catch, corrected.
- fulafel 6y agoWhat will networking be like from SW POV?
- pantalaimon 6y agoThis only lists features - 23 pages is hardly a data sheet.
- MrBuddyCasino 6y agoThe PDF is encrypted.
- kanwisher 6y agoThis is pretty awesome, ESP32s were great little Arduino nodes with wifi. Having an open architecture should open up more software. They previously had their own cpu arch
- deleted 6y ago[deleted]
- nrp 6y agoEspressif is no longer alone in the ultra low cost hobby WiFi SoC space. Pine has started working with the Bouffalo BL602 which seems to be a fairly similar RISC-V powered part: https://www.cnx-software.com/2020/10/28/the-quest-for-a-blob-free-wifi-bluetooth-stack-for-bl602-wisoc/ https://www.cnx-software.com/2020/10/28/the-quest-for-a-blob... It will be interesting to see which one gains critical mass in community use.
- 4778468d 6y agoIt’s all about the software & documentation. There’s lots of “competitors” to esp32, pretty much none of them except STM have the software for developers, which makes their offerings close to useless. The only way to gain critical mass is relentless deep commitment to developer tools/libraries and documentation. In many cases these competitors actually try to hide their documentation and keep secret how their chips work. I’d be interested to hear if there’s other chip vendors with software/documentation as impressive as Espressif but I haven’t heard any, except as I said STM.
- londons_explore 6y agoIt just means it isn't made for hobbyists... Hardware companies don't care about the lack of good software - they just pay some embedded code monkey a lowish salary to 'just make it work'.
- ducktective 6y ago"embedded code monkey" Is this really the case? :(
- AlotOfReading 6y agoIt's a pretty uncharitable description, but yeah. There are only two types of companies that do this though: companies where they're working at such a scale that spending a few extra months to years of developer time doesn't make a dent compared to the BOM savings. You're more likely to get vendor support by name recognition at these kinds of companies, so it's not as bad as the hobbyist experience. The second kind is where either the project or the company can't afford the capital outlay for better documented chips (or support packages). Stay the heck away from these if you value your sanity or know your own worth.
- ducktective 6y agoJust recently, Bouffalo Lab introduced BL602 which is a RISC-V WiFi-BLE chip with ESP8266 price. I guess Espressif had other plans for the competition! [1] https://news.ycombinator.com/item?id=24877335 https://news.ycombinator.com/item?id=24877335 [2] https://news.ycombinator.com/item?id=24916086 https://news.ycombinator.com/item?id=24916086 Skimming over C3 datasheet, it seems it doesn't have DAC but has one I2S. BL602 has DAC but no I2S!
- lights0123 6y agoI2S is also handy for bit-banging protocols without using CPU time—it's popular to use it on the ESP* chips to drive WS2812B and similar strips without hassle.
- dirtypersian 6y agoCurious question, is it just I2S that is used for this purpose? I'd assume you could use any serial protocol for bit banging purposes right?
- jws 6y agoI use the RMT (Remote Control) devices of the ESP32 from FreeRTOS for this. They were intended for generating on-off-keying of carrier modulated wave forms to blink an IR LED for a remote control. If you leave off the carrier modulation you end up just specifying a list of on and off times and get absolutely rock solid waveforms in hardware. There's a bunch of them, I forget, maybe 8? So you can drive a bunch of chains at once. You can also use these for rock solid reading of input signals too. Say you have a weather station that sends some god awful protocol up a wire at you… you just collect a list of the high and low times and get notified when it stops wiggling the signal. Then you sort out the data from the transmission. The timing might be way off because it's cold and the sender's electronics are really cheap, but you can analyze the signal and see what they meant.
- elcritch 6y ago
- Avamander 6y agoSounds like the Bouffalo BL602 and BL604 that were recently revealed. Competition in this sector is very interesting, I hope the Espressif chip will be as open or even more open than the Bouffalo chip.
- brucehoult 6y agoI believe Bouffalo has floating point. Both are SiFive cores, so well documented and supported.
- robertely 6y agoIt lists `USB Device` as well. This could be a really accessible device for building hybrid usb/bt devices, like wireless keyboards.
- penagwin 6y ago2$ wifi bad usb anyone?
- ducktective 6y agoIt seems it only supports CDC and some JTAG mode. For keyboards and such, the USB stack should support HID which doesn't seem to be the case here. In other words, they've implemented a USB 1.1 FS stack just so far to make intermediary USB2UART chips like FTDI and CP2102 redundant.
- pantalaimon 6y agoI doubt they implemented CDC in hardware. If they have a low-level USB peripheral, all the high-level protocols you want can be implemented in software.
- Rebelgecko 6y agoI wonder how power consumption is? Power power use (especially when sleeping) is probably my main complaint with the ESP boards I've used
- baybal2 6y agoHope it went for the better if the core is a hard macro. As far as I heard, they didn't change the process.
- willemmerson 6y agoThere are plenty of esp32 boards with 10-20uA deep sleep current, how low do you want it?
- Rebelgecko 6y agoMind pointing me in the right direction? The ones I have are more like 10-20mA (maybe that's a side-effect of having USB on board? I'm not really an expert, I just want my battery powered stuff to last months instead of days)
- cerplum 6y agohttps://www.tindie.com/products/kdcircuits/trigboard-ultra-low-power-esp32-iot-platform/ https://www.tindie.com/products/kdcircuits/trigboard-ultra-l... That one has extra circuitry to shut the esp down completely and wake it on either an external trigger or RTC based alarm. It claims 1.5uA sleep current. The creator has a YouTube channel with lots of info about low power and other interesting tidbits https://www.youtube.com/user/kdarrah1234 https://www.youtube.com/user/kdarrah1234
- willemmerson 6y agohttps://www.ezsbc.com/product/esp32-feather/ https://www.ezsbc.com/product/esp32-feather/ https://www.crowdsupply.com/unexpected-maker/tinypico https://www.crowdsupply.com/unexpected-maker/tinypico https://www.olimex.com/Products/IoT/ESP32-S2/ESP32-S2-DevKit-Lipo/open-source-hardware https://www.olimex.com/Products/IoT/ESP32-S2/ESP32-S2-DevKit...
- punnerud 6y agoDupe: https://news.ycombinator.com/item?id=25168302 https://news.ycombinator.com/item?id=25168302
- noodlesUK 6y agoI’d love to see a similar hobby-oriented chip that supported Thread as well. It’s a low power IPv6 networking stack that’s designed for connected home automation.
- mleonhard 6y agoRust is much easier to use on RISC-V [1] than on ESP32 [2]. I'm looking forward to making some small projects with this chip, assuming the software is usable. [1] https://doc.rust-lang.org/nightly/rustc/platform-support.html https://doc.rust-lang.org/nightly/rustc/platform-support.htm... [2] https://github.com/MabezDev/xtensa-rust-quickstart https://github.com/MabezDev/xtensa-rust-quickstart
- elcritch 6y agoEicks! 10GB of disk space and 6GB+ RAM for the compiler? That’s seems crazy. No compiling that on most RPi’s. Maybe the cranelift project will help over time.
- aranw 6y agoI was wondering with these RISC-V processors is a minimum set of features required for Go code to work with them? Is there an easy way to determine if a RISC-V processor will run Go code?
- accurrent 6y agoSomeone would likely have to port this: https://tinygo.org/ https://tinygo.org/ Seems to work on Silicon Hi-Five.
- person_of_color 6y agoAny MOOCs on RISC-V?