Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: FLASH API integration on YRDKRX63N board sample code

$
0
0
Hello, I am using YRDKRX63N board for evaluation purpose. I got the FLASH API with its application note 'r01an0544eu0240_rx.pdf'. FLASH API demo code is running successfully. But, further i want to integrate this FLASH API in another sample code say sample code for PWM generation. I have used the application note for integration of code and as mentioned in document following care has been taken: 1. Moving the flash routines from FCU ROM to FCU RAM by calling R_FlashCodeCopy() function. 2. Defining the RPFRAM and PFRAM sectors in linker settings Problem: To erase the ROM, R_FlashErase() fucntion is called which calls enter_pe_mode() function. In enter_pe_mode() function, when FWEPROR is set to 0x01 to enable the erasing of ROM, the program counter points to any random location say, 0x00000002, 0x00000004 and code stuck. Why is it happening? Is there any extra care need to take?

Viewing all articles
Browse latest Browse all 59170

Trending Articles