CTRLSTAT = 0xffffffff

Sir,

I am working on Cortex-M4 over serial wire debug protocol, i am able to read IDCODE(0x2ba01477) which is correct as per arm cortex m4 technical reference manual, and i am writing 0x50000000 to CTRLSTAT register to enable CSYSPWRUPREQ and CDBGPWRREQ which is also success without any ACK error,but the thing is when i am trying to read the CTRLSTAT register i got 0xffffffff . I don't understand what might be the problem,Please suggest me what would be the problem??

Thanks & Regards

Parents
  • Thanks for Reply sir,

                                  in above post you wrote "0x40023c04=0x45670123. 0x4002c304=0xcdef89ab" hear both addresses are different , in stm32f4 reference manual  3.6.1 he mentioned that both keys 0x45670123 and 0xcdef89ab should be send to FLASH_KEYR(0x40023C04) register please make a clarity on that and another thing is my flash Unlock was unsuccess full.

    my procedure was

    halt

    reset

    reading status of FLASH_CR register if LOCK bit is set then

    sending 0x45670123 and 0xcdef89ab  to FLASH_KEYR register.

    delay: for loop ->1000

    then reading status of FLASH_CR register.

    Thanks and Regards.

Reply
  • Thanks for Reply sir,

                                  in above post you wrote "0x40023c04=0x45670123. 0x4002c304=0xcdef89ab" hear both addresses are different , in stm32f4 reference manual  3.6.1 he mentioned that both keys 0x45670123 and 0xcdef89ab should be send to FLASH_KEYR(0x40023C04) register please make a clarity on that and another thing is my flash Unlock was unsuccess full.

    my procedure was

    halt

    reset

    reading status of FLASH_CR register if LOCK bit is set then

    sending 0x45670123 and 0xcdef89ab  to FLASH_KEYR register.

    delay: for loop ->1000

    then reading status of FLASH_CR register.

    Thanks and Regards.

Children