You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by murat tologlu <mt...@hotmail.com> on 2021/07/25 19:31:20 UTC

Esp32-wrover-kit:lvgl SPI Configuration Occupies IO13; why, how?

Hi,

I would like to use lvgl and mmcsd together on esp32-wrover-kit.

lvgl configuration uses these SPI2 IO numbers: 22,19,23,25 ( https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl2.JPG ). I want to use SPI3 IO numbers 13,14,15,2 to connect the SD Card.

However I see that Lvgl SPI configuration occupies IO13 somehow and disturbs my SPI3 configuration ( https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl.JPG ).

Could anyone tell me the reason and how to handle this issue?

BR,
Murat

 


Re: Esp32-wrover-kit:lvgl SPI Configuration Occupies IO13; why, how?

Posted by murat tologlu <mt...@hotmail.com>.
I think it is software related. I checked the possibility of a short circuit as much as I could.

It is interesting that there is no any signal on GPIO25 SPI2 MISO line but there is an un-expected signal on GPIO13; something like GPIO13 and GPIO25 lines are cross wired!

On 2021/07/25 19:49:08, Nathan Hartman <ha...@gmail.com> wrote: 
> On Sun, Jul 25, 2021 at 3:31 PM murat tologlu <mt...@hotmail.com> wrote:
> 
> > Hi,
> >
> > I would like to use lvgl and mmcsd together on esp32-wrover-kit.
> >
> > lvgl configuration uses these SPI2 IO numbers: 22,19,23,25 (
> > https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl2.JPG ). I want to use SPI3
> > IO numbers 13,14,15,2 to connect the SD Card.
> >
> > However I see that Lvgl SPI configuration occupies IO13 somehow and
> > disturbs my SPI3 configuration (
> > https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl.JPG ).
> >
> > Could anyone tell me the reason and how to handle this issue?
> >
> > BR,
> > Murat
> >
> >
> >
> >
> Is it the software doing it or is there any possibility of a short between
> the two traces on your circuit board?
> 
> If it is software, can you try to single step using a debugger and see
> where code is taking a wrong turn?
> 

Re: Esp32-wrover-kit:lvgl SPI Configuration Occupies IO13; why, how?

Posted by Nathan Hartman <ha...@gmail.com>.
On Sun, Jul 25, 2021 at 3:31 PM murat tologlu <mt...@hotmail.com> wrote:

> Hi,
>
> I would like to use lvgl and mmcsd together on esp32-wrover-kit.
>
> lvgl configuration uses these SPI2 IO numbers: 22,19,23,25 (
> https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl2.JPG ). I want to use SPI3
> IO numbers 13,14,15,2 to connect the SD Card.
>
> However I see that Lvgl SPI configuration occupies IO13 somehow and
> disturbs my SPI3 configuration (
> https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl.JPG ).
>
> Could anyone tell me the reason and how to handle this issue?
>
> BR,
> Murat
>
>
>
>
Is it the software doing it or is there any possibility of a short between
the two traces on your circuit board?

If it is software, can you try to single step using a debugger and see
where code is taking a wrong turn?

Re: Re: Esp32-wrover-kit:lvgl SPI Configuration Occupies IO13; why, how?

Posted by murat tologlu <mt...@hotmail.com>.
I confirm wapi + mmcsdspi + lvgl and many more is successfully working on esp-wrover-kit

A video is here in our new Discord channel: https://discord.com/channels/716091708336504884/716091708819111959/870740784939417690

On 2021/07/29 07:26:21 murat tologlu wrote:
> One definite problem is misuse of IO21 on shared DC and CD/DC lines of the SDCard and the Display; If an SDCard is inserted into the SDCard slot, the dispaly stops. I can simply remove R167 to isolate the SDCard connector Pin9, or I can continue my experiments as it is, but in long term a proper solution should be found for this issue.
> 
> I continue the work.
> 
> @Gustavo, thank you very much for your help but I already checked the JTAG.
> 
> On 2021/07/27 12:11:58, Gustavo Henrique Nihei <gh...@gmail.com> wrote: 
> > Hi Murat,
> > 
> > IO13 on the ESP-WROVER-KIT is shared by both JTAG and MicroSD:
> > https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-wrover-kit.html#:~:text=IO13,JTAG%2C%20MicroSD
> > 
> > Could you confirm if JTAG functionality is properly disabled?
> > 
> > Best regards,
> > Gustavo.
> > 
> > On Tue, Jul 27, 2021 at 2:52 AM murat tologlu <mt...@hotmail.com> wrote:
> > 
> > > PROGRESS:
> > > To simplify the problem I removed LVGL and its SPI 2 configurations, tried
> > > to run MmcSDSpi with SPI Port 3. Initially it didn't work due a restriction
> > > in Nuttx (esp32_mmcsd.c Line 70), but after I changed the expected port
> > > number from 2 to 3, I could mount and use the MMcSD as expected with SPI
> > > Port 3.
> > >
> > > This also proves that there is no a short circuit on GPIO13 trace and it
> > > works correctly with a proper software.
> > > https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl-4.JPG
> > >
> > > Now I will try to find who is interfering to GPIO13 line.
> > >
> > > On 2021/07/25 19:31:20, murat tologlu <mt...@hotmail.com> wrote:
> > > > Hi,
> > > >
> > > > I would like to use lvgl and mmcsd together on esp32-wrover-kit.
> > > >
> > > > lvgl configuration uses these SPI2 IO numbers: 22,19,23,25 (
> > > https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl2.JPG ). I want to use SPI3
> > > IO numbers 13,14,15,2 to connect the SD Card.
> > > >
> > > > However I see that Lvgl SPI configuration occupies IO13 somehow and
> > > disturbs my SPI3 configuration (
> > > https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl.JPG ).
> > > >
> > > > Could anyone tell me the reason and how to handle this issue?
> > > >
> > > > BR,
> > > > Murat
> > > >
> > > >
> > > >
> > > >
> > >
> > 
> > 
> > -- 
> > Gustavo Henrique Nihei
> > 
> 

Re: Esp32-wrover-kit:lvgl SPI Configuration Occupies IO13; why, how?

Posted by murat tologlu <mt...@hotmail.com>.
One definite problem is misuse of IO21 on shared DC and CD/DC lines of the SDCard and the Display; If an SDCard is inserted into the SDCard slot, the dispaly stops. I can simply remove R167 to isolate the SDCard connector Pin9, or I can continue my experiments as it is, but in long term a proper solution should be found for this issue.

I continue the work.

@Gustavo, thank you very much for your help but I already checked the JTAG.

On 2021/07/27 12:11:58, Gustavo Henrique Nihei <gh...@gmail.com> wrote: 
> Hi Murat,
> 
> IO13 on the ESP-WROVER-KIT is shared by both JTAG and MicroSD:
> https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-wrover-kit.html#:~:text=IO13,JTAG%2C%20MicroSD
> 
> Could you confirm if JTAG functionality is properly disabled?
> 
> Best regards,
> Gustavo.
> 
> On Tue, Jul 27, 2021 at 2:52 AM murat tologlu <mt...@hotmail.com> wrote:
> 
> > PROGRESS:
> > To simplify the problem I removed LVGL and its SPI 2 configurations, tried
> > to run MmcSDSpi with SPI Port 3. Initially it didn't work due a restriction
> > in Nuttx (esp32_mmcsd.c Line 70), but after I changed the expected port
> > number from 2 to 3, I could mount and use the MMcSD as expected with SPI
> > Port 3.
> >
> > This also proves that there is no a short circuit on GPIO13 trace and it
> > works correctly with a proper software.
> > https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl-4.JPG
> >
> > Now I will try to find who is interfering to GPIO13 line.
> >
> > On 2021/07/25 19:31:20, murat tologlu <mt...@hotmail.com> wrote:
> > > Hi,
> > >
> > > I would like to use lvgl and mmcsd together on esp32-wrover-kit.
> > >
> > > lvgl configuration uses these SPI2 IO numbers: 22,19,23,25 (
> > https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl2.JPG ). I want to use SPI3
> > IO numbers 13,14,15,2 to connect the SD Card.
> > >
> > > However I see that Lvgl SPI configuration occupies IO13 somehow and
> > disturbs my SPI3 configuration (
> > https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl.JPG ).
> > >
> > > Could anyone tell me the reason and how to handle this issue?
> > >
> > > BR,
> > > Murat
> > >
> > >
> > >
> > >
> >
> 
> 
> -- 
> Gustavo Henrique Nihei
> 

Re: Esp32-wrover-kit:lvgl SPI Configuration Occupies IO13; why, how?

Posted by Gustavo Henrique Nihei <gh...@gmail.com>.
Hi Murat,

IO13 on the ESP-WROVER-KIT is shared by both JTAG and MicroSD:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-wrover-kit.html#:~:text=IO13,JTAG%2C%20MicroSD

Could you confirm if JTAG functionality is properly disabled?

Best regards,
Gustavo.

On Tue, Jul 27, 2021 at 2:52 AM murat tologlu <mt...@hotmail.com> wrote:

> PROGRESS:
> To simplify the problem I removed LVGL and its SPI 2 configurations, tried
> to run MmcSDSpi with SPI Port 3. Initially it didn't work due a restriction
> in Nuttx (esp32_mmcsd.c Line 70), but after I changed the expected port
> number from 2 to 3, I could mount and use the MMcSD as expected with SPI
> Port 3.
>
> This also proves that there is no a short circuit on GPIO13 trace and it
> works correctly with a proper software.
> https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl-4.JPG
>
> Now I will try to find who is interfering to GPIO13 line.
>
> On 2021/07/25 19:31:20, murat tologlu <mt...@hotmail.com> wrote:
> > Hi,
> >
> > I would like to use lvgl and mmcsd together on esp32-wrover-kit.
> >
> > lvgl configuration uses these SPI2 IO numbers: 22,19,23,25 (
> https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl2.JPG ). I want to use SPI3
> IO numbers 13,14,15,2 to connect the SD Card.
> >
> > However I see that Lvgl SPI configuration occupies IO13 somehow and
> disturbs my SPI3 configuration (
> https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl.JPG ).
> >
> > Could anyone tell me the reason and how to handle this issue?
> >
> > BR,
> > Murat
> >
> >
> >
> >
>


-- 
Gustavo Henrique Nihei

Re: Esp32-wrover-kit:lvgl SPI Configuration Occupies IO13; why, how?

Posted by murat tologlu <mt...@hotmail.com>.
PROGRESS:
To simplify the problem I removed LVGL and its SPI 2 configurations, tried to run MmcSDSpi with SPI Port 3. Initially it didn't work due a restriction in Nuttx (esp32_mmcsd.c Line 70), but after I changed the expected port number from 2 to 3, I could mount and use the MMcSD as expected with SPI Port 3.

This also proves that there is no a short circuit on GPIO13 trace and it works correctly with a proper software. https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl-4.JPG 

Now I will try to find who is interfering to GPIO13 line. 

On 2021/07/25 19:31:20, murat tologlu <mt...@hotmail.com> wrote: 
> Hi,
> 
> I would like to use lvgl and mmcsd together on esp32-wrover-kit.
> 
> lvgl configuration uses these SPI2 IO numbers: 22,19,23,25 ( https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl2.JPG ). I want to use SPI3 IO numbers 13,14,15,2 to connect the SD Card.
> 
> However I see that Lvgl SPI configuration occupies IO13 somehow and disturbs my SPI3 configuration ( https://ta1db.5g.com.tr/murat/SPI2-SPI3-lvgl.JPG ).
> 
> Could anyone tell me the reason and how to handle this issue?
> 
> BR,
> Murat
> 
>  
> 
>