When sd card is inserted spi bus is disrupted??


long story short running due based board 3d printer(ultratronics pro). running repetier firmware dev version. have 7 devices on spi bus. 4 max31855 thermocouples, 1 sd card, 1 st7920 full graphic smart controller, , ethernet ic. ehternet not used in firmware potential source of problem though cs pin high

the problem spi buss works okay when sd card removed except 2 horizontal lines across display. lcd , 4 thermocouples read correctly. but! when sd card inserted thermocouples read ones. changing spi settings speed, mode, , polarity not affect error state of thermocouples. can read , write files sd card without issues. , lcd display still responds button presses , acts should except 2 lines. if sd card removed thermocuples start reading correctly.

i have tried read sck , miso pins on oscope 20 mhz , due @ 84 mhz. can see the occasional string of 1's go across screen nothing else appears fast scope.

https://www.youtube.com/watch?v=tiwnwa3w8n4

any ideas troubleshooting i'm kind of blind without scope.

if @ code

https://www.dropbox.com/sh/vbtlvsvruhq5q3a/aadplczfxa7hdvveybvejlsoa?dl=0

i have vague understanding of spi, sw , hw, , modes having heck of time trying figure out section kick can't tell if thermocouple code cause or if sd card code cause. appreciated. thank time , help.






 

i can't find code on link. if big post, attach next post.

i don't understand mean "inserting sd card". starting due sd card inserted? or removing , inserting while running?

always disable spi devices before starting of them. due, can tricky. not set d4 or d10 output. use digitalwrite set them high only. uses weak pullup resistors disable w5100 , sd card.
 


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > When sd card is inserted spi bus is disrupted??


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'