Hello, I've a firmware built with microvision2 on Infineon C167CRLM.
I download the firmware on flash memory and then program starts correctly.
Then in a function I add the statements
RDYEN4 = 0; // Enable Chip Select 4 input = WOUPORT; RDYEN4 = 1; // Disable Chip Select 4
where WOUPORT is defined as
#define WOUPORT HVAR (UINT,0x0C0000) // Warning Out (Chip Select 4)
I need to change the value of flag RDYEN4 because for chipselect 4 the Input Enable control function is enabled for using in other parts of the program.
Adding these statements the firmware compile correctly, the .H86 download correctly to flash memory, but now the program doesn.t start.
The added statements are already present in another part of my code and the reading is correct.
Can you help me? Many thanks! Marco
1. You are accessing an external memory area immediately after changing it's properties. Don't.
2. Are you sure that the external memory controlled by CS4 is not accessed from within an interrupt service? If it is, you must protect reading WOUPORT from the interrupt(s).
Sauli