EasyManua.ls Logo

VORAGO REB1 - Other Resources for Va108 X0 Code; Revision History

VORAGO REB1
35 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VA10800/VA10820 Evaluation Board User’s Manual
V3.0
33
guide. The IOCONFIG peripheral is often an overlooked peripheral that
must be enabled if using a peripheral module to control a port pin.
ii. The functional selection bits must be set to allow a peripheral to control a
port pin. See IO Configuration Register
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 EEPROM 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 EEPROM. All rebooting forces the
VA108xx to reload its program RAM from EEPROM. Refer to section 3.7.1 for
programming to EPROM.
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[9].
#define FUNCSEL2 2 // used for assigning UARTA to PORTA[9]
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]
VOR_UART->BANK[0].CTRL = 0x30 ; // this is default value, no parity, 8-bits
VOR_UART->BANK[0].CLKSCALE = 0x5161; // baud rate = 50Mhz /
VOR_UART->BANK[0].ENABLE = 2 ; // only enable TX = bit position 1.
VOR_UART->BANK[0].DATA = 0x5A ; // send single byte out.
8 Other resources for VA108x0 code
Vorago application notes: http://www.voragotech.com/resources
9 Revision history
1.0 April 2016
2.0 November 2016
2.1 Includes sections for IAR and iSystem
2.2 Corrected connector definition table.

Related product manuals