LIS2DS12 has Tap detection functionality. The ODR (output data rate) has to be >=400 Hz is stated in the datasheet. In low power mode ODR of 400 Hz en 800 Hz are supported (10 bit) resolution. Is Tap detection supported in low power mode? I cannot f...
Hi,When looking into stm32l4xx_hal_sd.c, I observed the following code: if(hsd->SdCard.CardType != CARD_SDHC_SDXC) { add *= 512U; } /* Set Block Size for Card */ errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); if(errorsta...
By coincidence I discovered a bug in HAL_delay(). __weak void HAL_Delay(uint32_t Delay){ uint32_t tickstart = HAL_GetTick(); uint32_t wait = Delay; /* Add a period to guaranty minimum wait */ if (wait < HAL_MAX_DELAY) { wait++; } while((HAL_GetTick...
I think this answer deserves better explanation.Well imho there are 3 options:You change the _write implementationYou overwrite the "weak" implementation of _write with your own implementation You implement __io_putcharIf you choose 1 and the code i...
I would prefer clean code and simple code in stead of exceptions for cards that do not comply with the standard. Wrt your point b) I would say in that case the performance hit is the worst: 1 command bus access that is not needed for 512 bytes of dat...
Thnx for the ticket. For SDHC and SDHX explicit init of the block size is not even required if I understand the standard correctly, Since standard SD cards are not available a quick fix without side effects would be to only set the block size expli...