Can we program ESP32 UART in assembly language ?

Rushi3499
Posts: 4
Joined: Mon May 16, 2022 6:37 am

Can we program ESP32 UART in assembly language ?

Postby Rushi3499 » Mon May 16, 2022 6:45 am

I tried the assembly language on ESP32-c3-devKitC-02, but I cannot see the output. So, can we program the UART in assembly for the same esp32?

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Can we program ESP32 UART in assembly language ?

Postby ESP_Sprite » Mon May 16, 2022 6:53 am

Yes.

Rushi3499
Posts: 4
Joined: Mon May 16, 2022 6:37 am

Re: Can we program ESP32 UART in assembly language ?

Postby Rushi3499 » Thu Jun 23, 2022 11:51 am

Any sample assembly code for that?

Rushi3499
Posts: 4
Joined: Mon May 16, 2022 6:37 am

Re: Can we program ESP32 UART in assembly language ?

Postby Rushi3499 » Fri Jun 24, 2022 4:26 am

Can you help for tha UART assembly programming for transmite and receive the data ?

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Can we program ESP32 UART in assembly language ?

Postby ESP_Sprite » Fri Jun 24, 2022 5:01 am

No, sorry, while it's possible, no one really programs the ESP32 series in assembly. If you want UART code, you'll likely have to write it yourself.

(Btw, is there a reason you're so adamant on writing it in assembly rather than e.g. using the existing C drivers?)

bobolink
Posts: 98
Joined: Mon Feb 26, 2018 4:17 pm

Re: Can we program ESP32 UART in assembly language ?

Postby bobolink » Fri Jun 24, 2022 10:33 am

A google search for “risc-v uart assembly” turned up lots of examples for me.
I think it is a popular homework assignment.

Who is online

Users browsing this forum: Bing [Bot], MicroController and 146 guests