Posted on March 26, 2017 at 18:55
I use SPI and DMA transfer.
I use the following functions:
HAL_StatusTypeDef HAL_SPI_Transmit_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size);
HAL_StatusTypeDef HAL_SPI_Receive_DMA(SPI_HandleT...
Posted on January 27, 2017 at 11:39
Hi,
When accessing some calibration registers, I get a hard fault. It might be due to unaligned access.
Is the '
stm32l0xx_ll_adc.h,V1.7.0' correct?
The 'VREFINT_CAL_ADDR' works correctly.
'TEMPSE...
Posted on January 19, 2017 at 15:15I need to read the unique device ID from a STM32L0.The Low Level hal driver source (stm32l0xx_ll_utils.h, V1.7.0, 31-May-2016) uses:__STATIC_INLINE uint32_t LL_GetUID_Word0(void){ return (uint32_t)(READ_REG(*((uint...
Posted on April 18, 2015 at 23:00Hi,I am not able to program the flash of a STM32L151RC using ''half page'' programming.Normal programming (word by word) works fine.I have tried it using the 2 latest GCC compilers (4.8.4), and I have tried with the ...
Posted on March 26, 2017 at 12:09Yes, it is possible to force the MOSI to high - if 0xFF is transmitted. It is not necessary to change SCK pin, because data can be transmitted without slave device is selected...When using SPI in 3 wire mode (which i...
Posted on March 26, 2017 at 08:45Hi,I am having the same problem. I use SPI in half duplex mode, and to make sure MOSI is never left floating, I have a pull-up (4K7) on that pin. Further more I have a series resistor (1K) to the slave device.After t...
Posted on January 27, 2017 at 13:25'uint16_t' was defined as 'unsigned int', which caused the pointer to be treated as a 32bit pointer.When defining 'uint16_t' as 'unsigned short', it is correctly handled as 16bit pointer by the compiler.And it all ...
Posted on January 27, 2017 at 11:34I have also struggled with this power consumption for MANY hours. The features are very complex. Did you enable low power mode?// Enable low power LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR); LL_PWR_EnableUlt...
Posted on January 27, 2017 at 11:29The STM32L0 library does include interrupt handling:__RAM_FUNC HAL_FLASHEx_HalfPageProgram(uint32_t Address, uint32_t *pBuffer){ uint32_t count; HAL_StatusTypeDef status;/* Wait for last operation to be completed ...