News for hackers. Stuff that matters.
Re:ESP32-S3 has a few SIMD instructions by adolph on Sunday May 05, 2024 @01:39PM (#40266625)
The Xtensa processor comes from Cadence and for some reason they like to keep everything under NDA, even information which would help people use their processors. I find it hard to understand why the instruction set should be kept secret; a CPU vendor should make it as easy as possible for engineers to use their CPUs.

The P4 can't come soon enough to get off Xtensa.

Re:ESP32-S3 has a few SIMD instructions by jsheard on Sunday May 05, 2024 @01:48PM (#40266708)
The P4 doesn't have a built-in radio though, so if you want those beefy RISC-V cores you will need to integrate a second ESP32 just to handle WiFi/BT :(

It will have USB-OTG and an LCD driver at least, which so far have been missing from all of their RISC-V parts.

Re:ESP32-S3 has a few SIMD instructions by sitkack on Sunday May 05, 2024 @03:55PM (#40267684)
The ESP8684H2 is 1.20 qty 1, more than enough to handle BT an Wifi, then you can use any MCU you want as your application processor.
Re:ESP32-S3 has a few SIMD instructions by antoniuschan99 on Sunday May 05, 2024 @02:54PM (#40267235)
I think that’s totally fine. Might actually be the future direction. But yea would’ve been nice to have wifi/bt integrated.

Eg if you want 5ghz then use c5, or if you want some wifi-6 so c6, etc.

Also here’s a talk by them on how to use esp as a wifi coprocessor https://youtu.be/g14aEjnjRLw?si=TgkEyJJ2_L_Shuom

There’s also adafruit airlift https://www.adafruit.com/product/4201

Re:ESP32-S3 has a few SIMD instructions by Aurornis on Sunday May 05, 2024 @11:58PM (#40271030)
> I think that’s totally fine. Might actually be the future direction.

Using a second board just for WiFi is definitely not totally fine for most applications. Having everything integrated into a single package important for everything from reducing BOM count to lower power consumption to development simplicity.

Re:ESP32-S3 has a few SIMD instructions by ComputerGuru on Sunday May 05, 2024 @01:55PM (#40266775)
Cost optimization aside, that has always been the best way to use an ESP chip. Just go with one of their barebone models wired up as a peripheral to an ARM or RISC mcu.
Re:ESP32-S3 has a few SIMD instructions by clbrmbr on Sunday May 05, 2024 @02:33PM (#40267077)
Yet it’s possible to build some incredible applications on top of just ESP32, especially with extra RAM.
Re:ESP32-S3 has a few SIMD instructions by devmunchies on Sunday May 05, 2024 @10:48PM (#40270700)
We use esp32-s3 at my company (smart speaker) but we don't don anything fancy.

Can you explain this? Why use esp as a peripheral if you already have an ARM chip?

We were considering moving off of esp to something that would make it easier do cpu-bound AI inference on-device or to enable more advanced audio DSP algos.

Re:ESP32-S3 has a few SIMD instructions by throwup238 on Monday May 06, 2024 @04:54AM (#40272601)
Based on cost and development time, it’s usually just easier to add an ESP and communicate to it using a generic SPI library or something than to add a radio to your PCB and get vendor libraries working on an arbitrary platform.
Re:ESP32-S3 has a few SIMD instructions by timschmidt on Sunday May 05, 2024 @02:25PM (#40267017)
Seems likely they'll continue releasing more models, further integrating the features of the P4 and C6 for example. Maybe we'll even get some risc-v SIMD instructions and support for off-chip SRAM.
Re:ESP32-S3 has a few SIMD instructions by yau8edq12i on Sunday May 05, 2024 @02:59PM (#40267273)
Without the builtin radio it's really hard to justify the use of an ESP32 over, say, an STM32. The integrated small package with "everything" to make a fun project is the whole appeal.
Re:ESP32-S3 has a few SIMD instructions by AlotOfReading on Sunday May 05, 2024 @04:45PM (#40268177)
Espressif has a huge advantage in lead times over ST recently. I migrated a few projects over because ST couldn't or wouldn't give us supply in under a month when you could buy ESP chips and have them on your doorstep practically overnight.
Re:ESP32-S3 has a few SIMD instructions by vbezhenar on Sunday May 05, 2024 @05:40PM (#40268715)
Did you look at chinese STM clones? We used gd32, I liked it.
Re:ESP32-S3 has a few SIMD instructions by 6SixTy on Sunday May 05, 2024 @08:56PM (#40270102)
Wide product range. ARM and RISC-V all called GD32 with an extra letter for the exact line.
Re:ESP32-S3 has a few SIMD instructions by makapuf on Monday May 06, 2024 @05:38AM (#40272831)
Depends if you want to condone IP theft (compatible independent developments is of course different but I'm not sure this is the case). R&D, Support, good documentation in English and accuracy of specs come at a price.
Re:ESP32-S3 has a few SIMD instructions by pantalaimon on Monday May 06, 2024 @08:59AM (#40274114)
Is implementing the same peripheral register API really IP theft?
Re:ESP32-S3 has a few SIMD instructions by makapuf on Monday May 06, 2024 @12:36PM (#40276502)
No, this was my remark about being compatible.
Re:ESP32-S3 has a few SIMD instructions by vbezhenar on Monday May 06, 2024 @01:39PM (#40277209)
Espressif is Chinese company, just like gigadevices.

I don't think they do IP theft from STM32 (if it's even possible at current node size). They have very thorough datasheets different from STM32 ones and their own SDK with unique code (although it seems to be inspired by STM32 libraries, but absolutely not theft).

Re:ESP32-S3 has a few SIMD instructions by yau8edq12i on Monday May 06, 2024 @03:39PM (#40278675)
Nobody said that espressif steals IP from ST.
Re:ESP32-S3 has a few SIMD instructions by makapuf on Tuesday May 07, 2024 @01:46AM (#40282748)
I don't think expressif steals from ST. I m quite sure GD steals from ST (source: ST themselves, see answer from ST in https://www.th3dstudio.com/2021/08/03/gd32-cpu-license-issue...)
Re:ESP32-S3 has a few SIMD instructions by dbuder on Tuesday May 07, 2024 @08:50AM (#40284856)
If they didn't copy the peripheral blocks, then all they did was implement the ARM IP just like ST Micro did in a way to be pin to pin compatible with the STM32 chips. Happy to learn otherwise. I wouldn't put them in a real product for many reasons but this is not one of them.
Re:ESP32-S3 has a few SIMD instructions by the__alchemist on Sunday May 05, 2024 @10:27PM (#40270593)
That's a big differentiator - it's surprising that there is no STM32 with Wi-Fi.
Re:ESP32-S3 has a few SIMD instructions by mort96 on Monday May 06, 2024 @03:36AM (#40272163)
That's the whole appeal to hobbyists, sure. But I'm guessing Espressif wants to be considered for more serious applications as well. Currently, there isn't much reason to choose an ESP32 over an STM32 for a commercial product if you don't need RF (or if RF is handled by another part of the product, such as a SoM running Linux). I'm guessing they wanna change that.
Re:ESP32-S3 has a few SIMD instructions by ajross on Sunday May 05, 2024 @04:25PM (#40267977)
FWIW this bit in the article is a little confused. The SIMD instructions being detailed appear to be Espressif-custom things implemented using Cadence's "TIE" facility.

Cadence does indeed have their own SIMD architecture ("HiFi", really it's a family of similar but binary-incompatible ISAs). And indeed docs for that don't appear in public (though if you look carefully, details for how to emit the instructions are part of the GNU toolchain integration).

But that isn't this. If you want docs for this, talk to Espressif, not Cadence.

Re:ESP32-S3 has a few SIMD instructions by mianos on Sunday May 05, 2024 @07:00PM (#40269404)
It is possible there is some licensing issue around the SIMD, after all it is an optional component. It was available for the LX6 as well, but not included. It's been a good run but it's great the are going to the RISCV, at the very least for the vibe. I have used both architectures, more recently using their esp-idf and it is surprisingly uneventful to switch between them. The only issue I had is the different high/low speed timer devices between chips. In fact it is a surprise the on chip peripheral hardware is incredibly compatible with their idf. Sure, they have a layer for some calls but a lot is just issuing commands to io devices directly, and the same between riskv and tensilkica cores.
Re:ESP32-S3 has a few SIMD instructions by ajb on Sunday May 05, 2024 @07:02PM (#40269416)
Xtensa is an unusual beast because its USP (at least, back when it was owned by tensilica) was that you could easily add extensions. Not just off the shelf ones - ones you defined yourself. They had some automation that would generate a toolchain for you to use with your shiny new instructions. Most CPU architectures exist to allow programs written on once implementation to work on another, with Xtensa it's kind of the opposite - it exists to allow each chip to have its own special sauce.

Honestly I was a bit surprised that espressif used it without defining their own extension of some kind, if you're not doing that then you might as well use something better known.

Edit: ajross* points out that this SIMD extension is such a one, not an off the shelf one. So I guess that explains it.

* https://news.ycombinator.com/item?id=40267977