2017-11-15 12:39 AM
CAN
******************************************************************************
* @file stm32f1xx_hal_can.h
* @author MCD Application Team
* @version V1.1.1
* @date 12-May-2017
* @brief Header file of CAN HAL module.
******************************************************************************
#define CAN_FLAG_TXOK0 ((uint32_t)((TSR_REGISTER_INDEX << 8U) | CAN_TSR_TXOK0_BIT_POSITION)) /*!< Transmission OK MailBox0 flag */
#define CAN_FLAG_TXOK1 ((uint32_t)((TSR_REGISTER_INDEX << 8U) | CAN_TSR_TXOK1_BIT_POSITION)) /*!< Transmission OK MailBox1 flag */
#define CAN_FLAG_TXOK2 ((uint32_t)((TSR_REGISTER_INDEX << 8U) |
CAN_TSR_RQCP0_BIT_POSITION
)) /*!< Transmission OK MailBox2 flag */
it should be
CAN_TSR_TXOK2_BIT_POSITION
-------------------------------------------------------------------------------------------------------------------------------------------------
AFIO
/**
* @brief Enable the remapping of SPI1 alternate function NSS, SCK, MISO and MOSI.
* @note ENABLE: Remap (NSS/PA15, SCK/PB3, MISO/PB4, MOSI/PB5)
* @retval None
*/
#define __HAL_AFIO_REMAP_SPI1_ENABLE() SET_BIT(AFIO->MAPR,
AFIO_MAPR_SPI1_REMAP
)
AFIO_MAPR_SPI1_REMAP ======>
AFIO_MAPR_SPI1_REMAP|AFIO_MAPR_SWJ_CFG
/**
* @brief Disable the remapping of SPI1 alternate function NSS, SCK, MISO and MOSI.
* @note DISABLE: No remap (NSS/PA4, SCK/PA5, MISO/PA6, MOSI/PA7)
* @retval None
*/
#define __HAL_AFIO_REMAP_SPI1_DISABLE()
CLEAR_BIT(
AFIO->MAPR, AFIO_MAPR_SPI1_REMA)
CLEAR_BIT=====>
MODIFY_REG
2017-11-15 07:49 AM
Hello,
I will check your reported issue and come back to you as soon as possible.
Best Regards
Imen
2017-11-21 04:16 AM
Hello
v.v.010
,Thank you for your reported issues.
I confirm CAN issue and raised it internally to the appropriate team for fix.
About SPI1 REMAP issue, could you please precise which device F1 are yous using ?
Best Regards
Imen
2017-12-19 09:03 AM
Hi,
What I really do not understand is why ST does not use any Source Control System like Github, Bitbucket or a own Gitlab Solution with Issue Tracking. That would be an improvement for everything.