I tried to reload my program with SDCARD in hardware SPI2 and all works fine.
I don't understand
![Sad :(](./images/smilies/icon_sad.gif)
Moderator: Benj
I have already rigged up the hardware and replicated your setup and it worked fine for me, not really sure what else I can do to help...Can you seriously take care of my problem ?
We try and help those that help themselves, can you tell us what you have tried to overcome this problem. Changes or attempts to understand component C code, testing on other devices, testing using 3rd party simulation software, changing pin connections, creating simple test applications, using the SPI component rather then the accelerometer component etc...Can you really make some test and fix your macro ?
Putting Flowcode in the trash isn't really going to help solve the problem unless your microcontroller has a sense of irony, which i'm sure some of them do, ghost in the machine and all thatOr tell me if I have to put Flowcode in the trash ?
Code: Select all
#if (%a_BUS == 0) //SPI TRANSACTION
FC_CAL_Bit_Low(%a_CS_PORT, %a_CS_PIN);
if(multiple)
reg = reg | 0x40;
if (mode)
// reg = reg | 0x01;
reg = reg | 128;