23LC1024- Very basic memory IO in gcc
DaemonInformaticus
Posts: 9
in Propeller 1
Greetings. (mostly out of academic interest) I'm working my way to a simple SRAM driver.
Currently I have the code: SPIMemory.c (see attachment)
Which compiles and runs, but doesn't return the values I'm expecting. From debugging de inputs into the seperate functions, I'm fairly sure I'm sending ( / trying to send) the correct data, but apparently I'm missing something else. I'm using the 'Propeller Proto USB' board. I know the memory bank setup should work, because I have no problems reading and writing it from an arduino.
Does anybody see any obvious glaring errors in the code I'm overlooking?
Currently I have the code: SPIMemory.c (see attachment)
Which compiles and runs, but doesn't return the values I'm expecting. From debugging de inputs into the seperate functions, I'm fairly sure I'm sending ( / trying to send) the correct data, but apparently I'm missing something else. I'm using the 'Propeller Proto USB' board. I know the memory bank setup should work, because I have no problems reading and writing it from an arduino.
Does anybody see any obvious glaring errors in the code I'm overlooking?
c
4K
Comments
Andy