[SOLVED] SD card not visible on Omega2+
-
@crispyoz I didn't know about cross compile. I had just started using Omega, so I am still learning about it.
Thx for your suggestion!
However, I would still like to make the micro SD card useable for future needs.
-
@Cristian-Bourceanu Booting from SD Card is different from using the SD Card. The reason I suggest cross compiling is because you need to consider that the Omega is designed for IoT types of applications so resources are limited. Instead you can develop your apps on your PC under windows/Linux etc with all the features and power that provides, then deploy your app to your Omega. You can even do remote debugging if you need to.
Take a look at cross compiling in the docs (https://docs.onion.io/omega2-docs/cross-compiling.html), the setup is pretty straight forward and many people seem to use the prebuilt docker image available on Onion github (https://github.com/OnionIoT) I'm not personally a fan of using the Docker image or Docker in general but that's a flame war for a later date. I prefer to develop on I linux machine using the Onion source repository as a starting point. (https://github.com/OnionIoT/source)
Regarding the SD Card, assuming you boot as normal you can insert the SDCard and it should automount so you run df to see the mount point.
-
@crispyoz I will follow your advise about cross compiling. Remote debugging sounds very satisfying and can't wait to learn about it.
The SD card did not automount and that was my problem in the first place. I have even factory reset it, but nothing changed. I kind of use all the peripherals(GPIOs) available on the omega, but that shouldn't interfere with the SD unless there are some common connections, but I couldn't confirm that since I didn't find any schematic for Omega2+.
-
@Cristian-Bourceanu which Omega model are you using? Omega2/2+/S/S+/Pro
-
@crispyoz Omega2+
I have designed my own PCB that I connect Omega2+ to. You can check that out here: https://github.com/cristi-bourceanu/Omega2P_FruitingChamber.git
-
Update!
I have disconnected the Omega from the board that I have designed and powered it up separately and now the SD card is discoverable. Thus, something from my PCB is definitely interfering with the SD card. Does anyone have a clue what could be the cause of it?
-
@Cristian-Bourceanu I found my issues with sdcard were due to bad or non-existent gnd on pin 7 of the sdcard slot. Might be worth checking.
-
Solved!
My Omega was controlling some outputs with the help of some transistors. The resistors between Omega and the base of transistors were all 1kohm, which might have been too low for Omega capabilities of 4 mA per GPIO. I replaced all of them with 4k7 and it is now working.I don't even know why I have used such low resitances. I guess I was thinking that if I am not low on power, then why not.
-
@Cristian-Bourceanu said in [SOLVED] SD card not visible on Omega2+:
I have designed my own PCB that I connect Omega2+ to. You can check that out here: https://github.com/cristi-bourceanu/Omega2P_FruitingChamber.git
Please share with us your Eagle schematic(s) in pdf (or png) format too.
-
@György-Farkas
Sure! I have uploaded a PDF schematic on github under the PCB White Rabbit folder.
-
@Cristian-Bourceanu Thanks. Where are those problematic transistors and 1 kOhm resistors?
I'd like to reproduce your "SD card not visible on Omega2+" issue.
-
@György-Farkas I have updated the schematic with the resistors values I was using when the SD card was not visible.
-
@Cristian-Bourceanu Thanks, I will try it.