[CC3200] Problems with SD and wrong documentation

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
beattherain
Posts: 2
Joined: Sun Jan 05, 2020 12:39 pm

[CC3200] Problems with SD and wrong documentation

Post by beattherain » Sun Jan 05, 2020 12:46 pm

Hello there,
I am currently trying to get micropython running on my toniebox which is based on the cc3200 with a custom pcb. I2C seems to run flawlessly.
But setting up the sd doesn't work.

Code: Select all

sd = machine.SD(pins=('GP10', 'GP11', 'GP9'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 5] EIO
https://docs.micropython.org/en/latest/ ... ne.SD.html

I also have problems with some documented functions not working as they should:
https://docs.micropython.org/en/latest/ ... s-and-gpio

Code: Select all

>>> from machine import Pin
>>> power_pin = Pin('GP6', mode=Pin.OUT) 
>>> power_pin.toggle()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: no such attribute
Is there something I missed?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: [CC3200] Problems with SD and wrong documentation

Post by Roberthh » Sun Jan 05, 2020 8:51 pm

Using a Pycom expansion board 2, SD card works on my CC3200 device. It uses however GP15 for the data0 pin. The SD card has to be inserted when the statement `sd = machine.SD(pins=('GP10', 'GP11', 'GP15'))` is executed. Otherwise I get the error 5.
And accrrding to my tests, some SD cards for not work at all.
The toggle method is not implemented for the CC3200 port. The documentation is a little bit misleading with it's general disclaimer, that not all features are present at all ports.

jedie
Posts: 252
Joined: Fri Jan 29, 2016 12:32 pm
Contact:

Re: [CC3200] Problems with SD and wrong documentation

Post by jedie » Mon Jan 06, 2020 9:32 am

beattherain wrote:
Sun Jan 05, 2020 12:46 pm
I am currently trying to get micropython running on my toniebox which is based on the cc3200 with a custom pcb.
Wow, very interesting!

beattherain
Posts: 2
Joined: Sun Jan 05, 2020 12:39 pm

Re: [CC3200] Problems with SD and wrong documentation

Post by beattherain » Mon Jan 06, 2020 6:39 pm

Roberthh wrote:
Sun Jan 05, 2020 8:51 pm
Using a Pycom expansion board 2, SD card works on my CC3200 device. It uses however GP15 for the data0 pin. The SD card has to be inserted when the statement `sd = machine.SD(pins=('GP10', 'GP11', 'GP15'))` is executed. Otherwise I get the error 5.
And accrrding to my tests, some SD cards for not work at all.
The toggle method is not implemented for the CC3200 port. The documentation is a little bit misleading with it's general disclaimer, that not all features are present at all ports.
Thanks for making that clear. The sd card should work, as it works with the original firmware. But the VDD is 0V.
There seems to be a problem with the board configuration, as I am also unable to toggle GP24. Toggling it with a non micropython firmware (energia) it works fine.
Also I cannot toggle PWM Timer1B

Post Reply