F7 SPI challenges

This commit is contained in:
rusefi 2020-01-24 23:52:56 -05:00
parent aabc50e7a9
commit fea2394c7b
2 changed files with 8 additions and 2 deletions

View File

@ -80,6 +80,8 @@ void baseMCUInit(void) {
DWT->CYCCNT = 0;
BOR_Set(BOR_Level_1); // one step above default value
SCB_DisableDCache();
}
void _unhandled_exception(void) {

View File

@ -29,8 +29,12 @@ EXTERN_ENGINE;
#include "pin_repository.h"
static Logging *logger;
static unsigned char tx_buff[2];
static unsigned char rx_buff[1];
/**
* We need to make sure we do not get F7 SPI DMA caching issues
* We also have "SCB_DisableDCache();" which is about the same since we need DMA SPI addressed not only for cj125
*/
static unsigned char tx_buff[2] CCM_OPTIONAL;
static unsigned char rx_buff[1] CCM_OPTIONAL;
static CJ125 globalInstance;