bouffalolab / bl_iot_sdk

BL602/BL702 SDK. Any technical topic, please access the following link.
http://bbs.bouffalolab.com
Apache License 2.0
260 stars 170 forks source link

CKS base address wrong in svd. Overlaps with UART0 #28

Open btashton opened 3 years ago

btashton commented 3 years ago

I could not find much information on what the CKS is but the base address defined in the svd overlaps with UART0 at 0x4000a000. What is the correct base address for this?

shchen-Lab commented 3 years ago

Hi btashton,

UART0 base address is 0x4000a000. Please refer BL602/604 Datasheet and BL602/604 Reference Manual.

https://dev.bouffalolab.com/media/doc/602/open/datasheet/en/html/content/Functional.html https://dev.bouffalolab.com/media/doc/602/open/reference_manual/en/html/index.html

btashton commented 3 years ago

Yes I know. The base address for CKS is also listed as 0x4000a000 which cannot be correct.

shchen-Lab commented 3 years ago

Yes, Thanks for your help. CKS base address wrong in svd, we will fix this issue. You can get clock register information at glb_reg.h. 1609130646(1)

mkroman commented 3 years ago

The base address for CKS in an updated SVD I got from Bouffalo Lab is 0x4000A700.

mkroman commented 3 years ago

I've improved the SVD here and I've written some peripheral details here