Live data from Hacker News

Setting serial baud rate on ESP-IDF does nothing

atomic14.substack.com

11–20 of 40 posts

Re: Setting serial baud rate on ESP-IDF does nothing

#11

Is it common for microcontrollers to lack comprehensive documentation, or is it just espressif?

Espressif has stellar datasheets and a very good HAL (esp-idf) with an established community process.

This is more about the application running on that device.

Re: Setting serial baud rate on ESP-IDF does nothing

#12
post #7

Is it common for microcontrollers to lack comprehensive documentation, or is it just espressif?

My experience with microcontrollers is not up to date. Most of the stuff I did was 15 years ago.I remember, Espressif really disrupted the market. Things changed already with Advent of Arduino. Before that people wrote a lot of asm code inline and MCUs particularly from microchip had really good documentations (sure some quirks and errata always appeared later, but as I remember they found their ways into data sheets…

> Most of the stuff I did was 15 years ago.I remember, Espressif really disrupted the market.

They still are.

No vendor until now was able to push out microcontrollers with a solid Wifi integration. Sometimes you can find weird 2-chip-solutions.

I still wonder why ST doesn't bring one. That device would be a multi-billion-business.

Re: Setting serial baud rate on ESP-IDF does nothing

#13
post #7

Earlier quoted context omitted.

My experience with microcontrollers is not up to date. Most of the stuff I did was 15 years ago.I remember, Espressif really disrupted the market. Things changed already with Advent of Arduino. Before that people wrote a lot of asm code inline and MCUs particularly from microchip had really good documentations (sure some quirks and errata always appeared later, but as I remember they found their ways into data sheets…

> Most of the stuff I did was 15 years ago.I remember, Espressif really disrupted the market. They still are. No vendor until now was able to push out microcontrollers with a solid Wifi integration. Sometimes you can find weird 2-chip-solutions. I still wonder why ST doesn't bring one. That device would be a multi-billion-business.

ST are overpriced, no self respecting internet of shit vendor would be caught dead using their MCUs when cheap clones exist.

Re: Setting serial baud rate on ESP-IDF does nothing

#16
post #13

Earlier quoted context omitted.

> Most of the stuff I did was 15 years ago.I remember, Espressif really disrupted the market. They still are. No vendor until now was able to push out microcontrollers with a solid Wifi integration. Sometimes you can find weird 2-chip-solutions. I still wonder why ST doesn't bring one. That device would be a multi-billion-business.

ST are overpriced, no self respecting internet of shit vendor would be caught dead using their MCUs when cheap clones exist.

Most clones aren't even close compatible to their originals.

Maybe some basic stuff like usart, i2c works fine. But the the deeper you dig into the specialties the more you will have problems.

And STM32s and expensive? Maybe if you buy them from Digikey or Mouser. With the right distributor they are dirt cheap.

Re: Setting serial baud rate on ESP-IDF does nothing

#18
post #13

Earlier quoted context omitted.

ST are overpriced, no self respecting internet of shit vendor would be caught dead using their MCUs when cheap clones exist.

Most clones aren't even close compatible to their originals. Maybe some basic stuff like usart, i2c works fine. But the the deeper you dig into the specialties the more you will have problems. And STM32s and expensive? Maybe if you buy them from Digikey or Mouser. With the right distributor they are dirt cheap.

Lots of horror stories from people who had to respin their boards because you couldn't buy ST at any price when they redirected all their output to car manufacturers during the chip shortage. They may be cheaper now but vendor lock-in never helped anyone (except that vendor) in the long run. Oh, and most Chinese wifi gadgets use Beken nowadays because it's even cheaper than Espressif, what are the chances of them switching to a more expensive chipset instead?

Re: Setting serial baud rate on ESP-IDF does nothing

#19
Virtual com ports or USB CDC do not require a baud rate as it's not a real serial port. As mentioned ESP32 has native USB and Arduino/ESP-IDF use USB CDC over this port to communicate with a host computer. Serial.begin() is used for all kinds of serial ports including virtual serial ports. Those libraries probably require a baudrate argument for Serial.begin() which will be ignored. This is probably in the documentation for that function.

If the same function is used on a physical serial port (of which there are a few on ESP32 iirc) the baudrate argument will be used to set the baudrate setting in the peripheral by the library.

Re: Setting serial baud rate on ESP-IDF does nothing

#20
post #18

Earlier quoted context omitted.

Most clones aren't even close compatible to their originals. Maybe some basic stuff like usart, i2c works fine. But the the deeper you dig into the specialties the more you will have problems. And STM32s and expensive? Maybe if you buy them from Digikey or Mouser. With the right distributor they are dirt cheap.

Lots of horror stories from people who had to respin their boards because you couldn't buy ST at any price when they redirected all their output to car manufacturers during the chip shortage. They may be cheaper now but vendor lock-in never helped anyone (except that vendor) in the long run. Oh, and most Chinese wifi gadgets use Beken nowadays because it's even cheaper than Espressif, what are the chances of them swi…

We never had problems as a small vendor with ST during the chip crisis and all distributors honored our delivery contracts. Even most big companies don't deal with ST directly when it comes to the last mile.

Porting stuff to another microcontroller would be easy as we are not using too proprietary features... as long the uC has SPI/I2C and a bunch of timers the embedded developers will be happy. Thanks to Zephyr.

Post reply on HN