AnsweredAssumed Answered

stm32f303xx pma address calculation conflict

Question asked by tag.aseok on Nov 9, 2016
Latest reply on Nov 15, 2016 by ForumSTM32.ForumSTM3
Hello
As i inspected through stm32cubef3_1.6 and tested with keil uvision, pma address caculation is as follows:
USB_ADDRn_TX: 0x40006000(usb PMA base) + (BTABLE + 8*n) * 2
USB_COUNTn_TX: 0x40006000(usb PMA base) + (BTABLE + 8*n + 2) * 2
USB_ADDRn_RX: 0x40006000(usb PMA base) + (BTABLE + 8*n + 4) * 2
USB_COUNTn_RX: 0x40006000(usb PMA base) + (BTABLE + 8*n + 6) * 2
But as it seems, it is written wrong in RM0316(REV7, Pages1087 to 1089):
USB_ADDRn_TX(offset):  (BTABLE + 16*n)
USB_COUNTn_TX(offset)(BTABLE + 16*n + 4)
USB_ADDRn_RX(offset):  (BTABLE + 16*n + 8)
USB_COUNTn_RX(offset)(BTABLE + 16*n + 12)

Outcomes