Feb 03, 2017
06:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 03, 2017
06:34 AM
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 (;;)
{
}
}
Im doing something bad?
Thanks
Xabi
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 (;;)
{
}
}
Im doing something bad?
Thanks
Xabi
- Tags:
- IFX
1 Reply
Feb 05, 2017
11:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 05, 2017
11:10 PM
Hi,
I encourage you to use and have a look to the implementation in XMClib.
Regards,
Jesus
I encourage you to use and have a look to the implementation in XMClib.
Regards,
Jesus