XMC1300 PASSWD register

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Odri
Level 2
Level 2
First solution authored Welcome! 5 replies posted
Hello

I have a little project running in XMC1300 board.

I start modifying some registers but unfortunately I cant. I want to enable the writting in the protected bits.

Is this register: PASSWD, The PASSWD register is used to control the bit protection scheme.

And this is my code:


#include
#include

void main (void)
{

//Bit Protection Scheme Control Bits
*((uint32_t*)0x40010024)|= (3<<6);
*((uint32_t*)0x40010024)&= ~(1<<5);
*((uint32_t*)0x40010024)&= ~(1<<4);
*((uint32_t*)0x40010024)&= ~(1<<3);

//Password Bits
*((uint32_t*)0x40010024)&= ~(1<<1);
*((uint32_t*)0x40010024)&= ~(1<<0);

for (;;)
{

}
}

2492.attach

Im doing something bad?

Thanks
Xabi
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

I encourage you to use and have a look to the implementation in XMClib.

Regards,
Jesus
0 Likes