VA41620/VA41630 Evaluation Board User’s Manual
V1.0
35
7 Commonly asked questions
1. Code runs but no activity seen on the LED. What is going on?
a. Two items to check are:
i. Make sure that the power to the MCU is set properly
ii. Make sure the MCU board and the GPIO board are firmly connected
iii. Make sure the USB cable is connected to the PC and the board
iv. Disconnect and reconnect everything and try again
2. The debugger downloaded code but when instructed to run, the code does not execute.
What might be causing this?
a. The Keil IDE must have the flash utility totally disabled before downloading code
directly to RAM. Open the Utility window, deselect the programming file and
select “Use External” programmer. From that point on, the debugger should
download code correctly.
b. If the hardware RESET button is pressed on the board, the device will reload
program RAM with information from the FRAM which overwrites what the
debugger placed in RAM. If this is the case, reload the code via the IDE.
3. My code runs from the debugger, but does not run or runs an older program when
powered up on its own.
a. Keil is targeting only volatile program RAM when debugging and not using the
programming algorithm to target the SPI FRAM. All rebooting forces the
VA416xx to reload its program RAM from FRAM. Refer to section 3.7.1 for
programming to FRAM.
4. What is the minimum number of instructions to send information out a UART?
a. The below code can be run to output a 9600 baud message out UARTA on
PORTA[2].
#define FUNCSEL2 2 // used for assigning UARTA to PORTA[2]
VOR_SYSCONFIG->PERIPHERAL_CLK_ENABLE = ( CLK_ENABLE_UARTA |CLK_ENABLE_IOCONFIG ); // enable peripheral clocks
VOR_IOCONFIG->PORTA[9] |= (FUNCSEL2 << IOCONFIG_PORTA_FUNSEL_Pos); // assign UARTA to PORTA[9]