Re: [Article] NuttX on Star64 JH7110: Power Up the Display Controller with U-Boot Bootloader
wow :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
[Article] NuttX on Star64 JH7110: Power Up the Display Controller with U-Boot Bootloader
In olden days we’d "peek" and "poke" the Display Controller, to see weird and wonderful displays. Today (46 years later), we poke around the Display Controller of Star64 JH7110 RISC-V SBC with a modern tool (not BASIC): U-Boot Bootloader! In this article we discover… (1) U-Boot Commands "md" and "mw" for Dumping and Writing Memory (2) That we use to power up the Video Output and Display Controller on the StarFive JH7110 SoC (3) By modding the JH7110 Registers for Power Management Unit, Clock and Reset (4) Also how we’ll create our NuttX Display Driver for JH7110 (5) In spite of the Missing and Incorrect Docs Here's the article: https://lupyuen.codeberg.page/articles/display3.html Lup
Re: ESP32-S3 RS485 support
I rethink my question again and this depends on HW configuration also, so can't be handled at driver level generically. сб, 2 вер. 2023 р. о 18:31 Petro Karashchenko пише: > Hello Alan, > > Thank you. I will try to port SW RS485 to ESP32-S3, but from my experience > in the past with RS485 I have a question: how TX echo is filtered out from > RX stream when SW RS485 is used? Or that should be done at the application > layer? > > Best regards, > Petro > > сб, 2 вер. 2023 р. о 16:46 Alan C. Assis пише: > >> Hi Petro, >> >> The current RS485 implementation used on ESP32 is not using internal >> RS485 controller of ESP32, it is implemented by "software". So you can >> use it connecting a RS485 transceiver to UART port and using the right >> DIR pin controller by RS485 driver. >> >> It is possible to use the internal IP RS485 from ESP32 or ESP32-S3, >> you just need to look how it is done in the ESP-IDF and replicate it. >> >> But the SW RS485 works fine and it is easier to implement. >> >> BR, >> >> Alan >> >> On 9/2/23, Petro Karashchenko wrote: >> > Hi, >> > >> > I'm currently trying to enable RS485 support for ESP32-S3. I see that >> there >> > is some support of RS485 mode in ESP32 and it seems to be straight >> forward >> > to port it to ESP32-S3 however I see that currently ESP32-S3 lowputc has >> > next lines >> > >> > modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485_EN_M, 0); >> > modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485TX_RX_EN_M, 0); >> > modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485RXBY_TX_EN_M, 0); >> > >> > >> > So I wonder if anybody has already leveraged the RS458 capabilities of >> > ESP32-S3? >> > >> > Additionally I see that the same registers are available for ESP32, but >> I >> > do not see any place where the "UART_RS485_CONF_REG" register is >> modified >> > for ESP32 with RS485 enabled UARTs. >> > >> > Best regards, >> > Petro >> > >> >
Re: ESP32-S3 RS485 support
Hello Alan, Thank you. I will try to port SW RS485 to ESP32-S3, but from my experience in the past with RS485 I have a question: how TX echo is filtered out from RX stream when SW RS485 is used? Or that should be done at the application layer? Best regards, Petro сб, 2 вер. 2023 р. о 16:46 Alan C. Assis пише: > Hi Petro, > > The current RS485 implementation used on ESP32 is not using internal > RS485 controller of ESP32, it is implemented by "software". So you can > use it connecting a RS485 transceiver to UART port and using the right > DIR pin controller by RS485 driver. > > It is possible to use the internal IP RS485 from ESP32 or ESP32-S3, > you just need to look how it is done in the ESP-IDF and replicate it. > > But the SW RS485 works fine and it is easier to implement. > > BR, > > Alan > > On 9/2/23, Petro Karashchenko wrote: > > Hi, > > > > I'm currently trying to enable RS485 support for ESP32-S3. I see that > there > > is some support of RS485 mode in ESP32 and it seems to be straight > forward > > to port it to ESP32-S3 however I see that currently ESP32-S3 lowputc has > > next lines > > > > modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485_EN_M, 0); > > modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485TX_RX_EN_M, 0); > > modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485RXBY_TX_EN_M, 0); > > > > > > So I wonder if anybody has already leveraged the RS458 capabilities of > > ESP32-S3? > > > > Additionally I see that the same registers are available for ESP32, but I > > do not see any place where the "UART_RS485_CONF_REG" register is modified > > for ESP32 with RS485 enabled UARTs. > > > > Best regards, > > Petro > > >
Re: ESP32-S3 RS485 support
Hi Petro, The current RS485 implementation used on ESP32 is not using internal RS485 controller of ESP32, it is implemented by "software". So you can use it connecting a RS485 transceiver to UART port and using the right DIR pin controller by RS485 driver. It is possible to use the internal IP RS485 from ESP32 or ESP32-S3, you just need to look how it is done in the ESP-IDF and replicate it. But the SW RS485 works fine and it is easier to implement. BR, Alan On 9/2/23, Petro Karashchenko wrote: > Hi, > > I'm currently trying to enable RS485 support for ESP32-S3. I see that there > is some support of RS485 mode in ESP32 and it seems to be straight forward > to port it to ESP32-S3 however I see that currently ESP32-S3 lowputc has > next lines > > modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485_EN_M, 0); > modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485TX_RX_EN_M, 0); > modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485RXBY_TX_EN_M, 0); > > > So I wonder if anybody has already leveraged the RS458 capabilities of > ESP32-S3? > > Additionally I see that the same registers are available for ESP32, but I > do not see any place where the "UART_RS485_CONF_REG" register is modified > for ESP32 with RS485 enabled UARTs. > > Best regards, > Petro >
ESP32-S3 RS485 support
Hi, I'm currently trying to enable RS485 support for ESP32-S3. I see that there is some support of RS485 mode in ESP32 and it seems to be straight forward to port it to ESP32-S3 however I see that currently ESP32-S3 lowputc has next lines modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485_EN_M, 0); modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485TX_RX_EN_M, 0); modifyreg32(UART_RS485_CONF_REG(priv->id), UART_RS485RXBY_TX_EN_M, 0); So I wonder if anybody has already leveraged the RS458 capabilities of ESP32-S3? Additionally I see that the same registers are available for ESP32, but I do not see any place where the "UART_RS485_CONF_REG" register is modified for ESP32 with RS485 enabled UARTs. Best regards, Petro