Hi,
I tried to flash a sketch on my new Photon but there seems to be three errors. The sketch works on my Core.
I am logging values of three sensors to an SD-Card (Adafruit Micro SD-Card breakout).
The errors:
sd-card-library/sd2-card.cpp: In member function 'uint8_t Sd2Card::sparkSPISend(uint8_t)':
This looks like an error in sd-card-library library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
sd-card-library/sd2-card.cpp:764:40: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
PIN_MAP[mosiPin_].gpio_peripheral->BSRR = PIN_MAP[mosiPin_].gpio_pin; // Data High
^
This looks like an error in sd-card-library library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
sd-card-library/sd2-card.cpp:766:40: error: 'struct GPIO_TypeDef' has no member named 'BRR'
PIN_MAP[mosiPin_].gpio_peripheral->BRR = PIN_MAP[mosiPin_].gpio_pin; // Data Low
^
This looks like an error in sd-card-library library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
sd-card-library/sd2-card.cpp:768:40: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
PIN_MAP[clockPin_].gpio_peripheral->BSRR = PIN_MAP[clockPin_].gpio_pin; // Clock High
^
This looks like an error in sd-card-library library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
sd-card-library/sd2-card.cpp:774:40: error: 'struct GPIO_TypeDef' has no member named 'BRR'
PIN_MAP[clockPin_].gpio_peripheral->BRR = PIN_MAP[clockPin_].gpio_pin; // Clock Low
^
make[1]: *** [../build/target/user/platform-6sd-card-library/sd2-card.o] Error 1
make: *** [user] Error 2
Has this library already been ported to the Photon? I really appreciate your help!
Kind regards,
Tom