Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect AON offset in SVD file? #56

Open
Yangff opened this issue Jul 25, 2021 · 0 comments
Open

Incorrect AON offset in SVD file? #56

Yangff opened this issue Jul 25, 2021 · 0 comments

Comments

@Yangff
Copy link

Yangff commented Jul 25, 2021

https://raw.githubusercontent.com/bouffalolab/bl_iot_sdk/master/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/soc602_reg.svd

Here the peripheral AON has a baseAddress of 0x4000F800, but all registers in this section has an offset of 0x800.
I think his offset is redundant as the 0x800 is already added in its base address.
Another proof is bl602.h, where AON_BASE is set to 0x4000F000 and the offsets in aon_reg.h has an offset of 0x8XX based on this base address.

			<peripheral>
				<name>AON</name>
				<description>AON.</description>
				<baseAddress>0x4000F800</baseAddress>
				<groupName>AON</groupName>
				<size>32</size>
				<access>read-write</access>
				<addressBlock>
					<offset>0</offset>
					<size>0x1000</size>
					<usage>registers</usage>
				</addressBlock>
				<registers>
					<register>
						<name>aon</name>
						<description>aon.</description>
						<addressOffset>0x800</addressOffset>
						<fields>
							<field>
								<name>sw_pu_ldo11_rt</name>
								<lsb>22</lsb>
								<msb>22</msb>
							</field>
							<field>
								<name>ldo11_rt_pulldown_sel</name>
								<lsb>21</lsb>
								<msb>21</msb>
							</field>
							<field>
								<name>ldo11_rt_pulldown</name>
								<lsb>20</lsb>
								<msb>20</msb>
							</field>
							<field>
								<name>pu_aon_dc_tbuf</name>
								<lsb>12</lsb>
								<msb>12</msb>
							</field>
@Yangff Yangff changed the title Incorrect ANO offset in SVD file? Incorrect AON offset in SVD file? Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant