mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-10 17:43:21 +00:00
Convert bsps/*/README to MarkDown
Some of this content is really old we will have to go through it.
This commit is contained in:
committed by
Joel Sherrill
parent
adce380138
commit
a7f2cb4562
@@ -1,5 +1,5 @@
|
|||||||
Overview
|
Overview
|
||||||
--------
|
========
|
||||||
Evaluation board for this BSP:
|
Evaluation board for this BSP:
|
||||||
- Cyclone V SoC FPGA Development Kit
|
- Cyclone V SoC FPGA Development Kit
|
||||||
- DK-DEV-5CSXC6N/ES-0L
|
- DK-DEV-5CSXC6N/ES-0L
|
||||||
@@ -9,11 +9,14 @@ RTC
|
|||||||
The evaluation board contains a DS1339C RTC connected to I2C0. To use it you
|
The evaluation board contains a DS1339C RTC connected to I2C0. To use it you
|
||||||
have to set the following options:
|
have to set the following options:
|
||||||
|
|
||||||
|
```c
|
||||||
#define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
|
#define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
|
||||||
#define CONFIGURE_BSP_PREREQUISITE_DRIVERS I2C_DRIVER_TABLE_ENTRY
|
#define CONFIGURE_BSP_PREREQUISITE_DRIVERS I2C_DRIVER_TABLE_ENTRY
|
||||||
|
```
|
||||||
|
|
||||||
Additional there has to be one free file descriptor to access the i2c. Set the
|
Additional there has to be one free file descriptor to access the i2c. Set the
|
||||||
CONFIGURE_MAXIMUM_FILE_DESCRIPTORS accordingly.
|
`CONFIGURE_MAXIMUM_FILE_DESCRIPTORS` accordingly.
|
||||||
|
|
||||||
|
|
||||||
Network
|
Network
|
||||||
-------
|
-------
|
||||||
@@ -22,23 +25,28 @@ drv_ctrl pointer of the rtems_bsdnet_ifconfig structure should point to a
|
|||||||
dwmac_ifconfig_drv_ctrl object with the appropriate settings before the
|
dwmac_ifconfig_drv_ctrl object with the appropriate settings before the
|
||||||
rtems_bsdnet_initialize_network() is called. E.g.:
|
rtems_bsdnet_initialize_network() is called. E.g.:
|
||||||
|
|
||||||
|
```c
|
||||||
#include <libchip/dwmac.h>
|
#include <libchip/dwmac.h>
|
||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
|
|
||||||
static dwmac_ifconfig_drv_ctrl drv_ctrl = {
|
static dwmac_ifconfig_drv_ctrl drv_ctrl = {
|
||||||
.phy_addr = 1
|
.phy_addr = 1
|
||||||
};
|
};
|
||||||
|
```
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
```c
|
||||||
static struct rtems_bsdnet_ifconfig some_ifconfig = {
|
static struct rtems_bsdnet_ifconfig some_ifconfig = {
|
||||||
.name = RTEMS_BSP_NETWORK_DRIVER_NAME,
|
.name = RTEMS_BSP_NETWORK_DRIVER_NAME,
|
||||||
.attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
|
.attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
|
||||||
.drv_ctrl = &drv_ctrl
|
.drv_ctrl = &drv_ctrl
|
||||||
};
|
};
|
||||||
|
```
|
||||||
...
|
...
|
||||||
|
|
||||||
|
```c
|
||||||
rtems_bsdnet_initialize_network();
|
rtems_bsdnet_initialize_network();
|
||||||
|
```
|
||||||
|
|
||||||
If drv_ctrl is the NULL pointer, default values will be used instead.
|
If drv_ctrl is the NULL pointer, default values will be used instead.
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
Atmel SAM
|
||||||
|
=========
|
||||||
|
|
||||||
Board support package for the Atmel SAM V71/V70/E70/S70 chip platform.
|
Board support package for the Atmel SAM V71/V70/E70/S70 chip platform.
|
||||||
|
|
||||||
The BSP is customized to a particular board/chip variant by means of configure
|
The BSP is customized to a particular board/chip variant by means of configure
|
||||||
@@ -28,7 +31,8 @@ another setting in your external SDRAM, you should also use the
|
|||||||
ATSAM_CHANGE_CLOCK_FROM_SRAM=1 option. To overwrite the clock settings, define
|
ATSAM_CHANGE_CLOCK_FROM_SRAM=1 option. To overwrite the clock settings, define
|
||||||
the following structures in your application:
|
the following structures in your application:
|
||||||
|
|
||||||
--------
|
|
||||||
|
```c
|
||||||
const struct atsam_clock_config atsam_clock_config = {
|
const struct atsam_clock_config atsam_clock_config = {
|
||||||
.pllar_init = my_custom_pllar_value,
|
.pllar_init = my_custom_pllar_value,
|
||||||
.mckr_init = my_custom_mckr_value,
|
.mckr_init = my_custom_mckr_value,
|
||||||
@@ -41,7 +45,7 @@ const struct BOARD_Sdram_Config BOARD_Sdram_Config = {
|
|||||||
.sdramc_mdr = my_custom_sdramc_mdr_value,
|
.sdramc_mdr = my_custom_sdramc_mdr_value,
|
||||||
.sdramc_cfr1 = my_custom_sdramc_cfr1_value
|
.sdramc_cfr1 = my_custom_sdramc_cfr1_value
|
||||||
};
|
};
|
||||||
--------
|
```
|
||||||
|
|
||||||
Use ATSAM_SLOWCLOCK_USE_XTAL=0 to disable the usage of the external 32kHz
|
Use ATSAM_SLOWCLOCK_USE_XTAL=0 to disable the usage of the external 32kHz
|
||||||
oscillator for the slow clock. This is useful for example for the SAM E70
|
oscillator for the slow clock. This is useful for example for the SAM E70
|
||||||
@@ -1,12 +1,15 @@
|
|||||||
|
Beagleboard
|
||||||
|
===========
|
||||||
|
|
||||||
BSP for beagleboard xm, beaglebone (original aka white), and beaglebone black.
|
BSP for beagleboard xm, beaglebone (original aka white), and beaglebone black.
|
||||||
|
|
||||||
original beagleboard isn't tested.
|
original beagleboard isn't tested.
|
||||||
|
|
||||||
wiki: http://www.rtems.org/wiki/index.php/Beagleboard
|
|
||||||
|
|
||||||
1. *** CONFIGURING ************
|
|
||||||
|
|
||||||
|
CONFIGURING
|
||||||
|
-----------
|
||||||
bsp-specific build options in the environment at build time:
|
bsp-specific build options in the environment at build time:
|
||||||
|
|
||||||
CONSOLE_POLLED=1 use polled i/o for console, required to run testsuite
|
CONSOLE_POLLED=1 use polled i/o for console, required to run testsuite
|
||||||
CONSOLE_BAUD=... override default console baud rate
|
CONSOLE_BAUD=... override default console baud rate
|
||||||
|
|
||||||
@@ -22,8 +25,8 @@ distinctions are made in the future, so this can be done without changing the
|
|||||||
usage.
|
usage.
|
||||||
|
|
||||||
|
|
||||||
2. *** BUILDING ************
|
BUILDING
|
||||||
|
--------
|
||||||
To build BSPs for the beaglebone white and beagleboard xm, starting from
|
To build BSPs for the beaglebone white and beagleboard xm, starting from
|
||||||
a directory in which you have this source tree in rtems-src:
|
a directory in which you have this source tree in rtems-src:
|
||||||
|
|
||||||
@@ -43,8 +46,8 @@ $ mkimage -A arm -O rtems -T kernel -a 0x80000000 -e 0x80000000 -n RTEMS -d $exe
|
|||||||
|
|
||||||
All beagles have memory starting at 0x80000000 so the load & run syntax is the same.
|
All beagles have memory starting at 0x80000000 so the load & run syntax is the same.
|
||||||
|
|
||||||
3. *** BOOTING ************
|
BOOTING
|
||||||
|
-------
|
||||||
Then, boot the beaglebone with u-boot on an SD card and load rtems-app.img
|
Then, boot the beaglebone with u-boot on an SD card and load rtems-app.img
|
||||||
from u-boot. Interrupt the u-boot boot to get a prompt.
|
from u-boot. Interrupt the u-boot boot to get a prompt.
|
||||||
|
|
||||||
@@ -52,8 +55,9 @@ Set up a tftp server and a network connection for netbooting. And to
|
|||||||
copy rtems-app.img to the tftp dir. Otherwise copy the .img to the FAT
|
copy rtems-app.img to the tftp dir. Otherwise copy the .img to the FAT
|
||||||
partition on the SD card and make uboot load & run that.
|
partition on the SD card and make uboot load & run that.
|
||||||
|
|
||||||
4. *** BEAGLEBONES ************
|
|
||||||
|
|
||||||
|
BEAGLEBONES
|
||||||
|
-----------
|
||||||
(tested on both beaglebones)
|
(tested on both beaglebones)
|
||||||
|
|
||||||
Beaglebone original (white) or beaglebone black netbooting:
|
Beaglebone original (white) or beaglebone black netbooting:
|
||||||
@@ -71,8 +75,9 @@ uboot# fatload mmc :1 0x80800000 ticker.img
|
|||||||
uboot# dcache off ; icache off
|
uboot# dcache off ; icache off
|
||||||
uboot# bootm 0x80800000
|
uboot# bootm 0x80800000
|
||||||
|
|
||||||
4. *** BEAGLEBOARD ************
|
|
||||||
|
|
||||||
|
BEAGLEBOARD
|
||||||
|
-----------
|
||||||
(tested on xm)
|
(tested on xm)
|
||||||
|
|
||||||
For the beagleboard the necessary commands are a bit different because
|
For the beagleboard the necessary commands are a bit different because
|
||||||
@@ -88,8 +93,9 @@ uboot# tftp 0x80800000 rtems-app.img
|
|||||||
uboot# dcache off ; icache off
|
uboot# dcache off ; icache off
|
||||||
uboot# bootm 0x80800000
|
uboot# bootm 0x80800000
|
||||||
|
|
||||||
4. *** SD CARD ****************
|
|
||||||
|
|
||||||
|
SD CARD
|
||||||
|
-------
|
||||||
There is a script here that automatically writes an SD card for any of
|
There is a script here that automatically writes an SD card for any of
|
||||||
the beagle targets.
|
the beagle targets.
|
||||||
|
|
||||||
@@ -97,8 +103,10 @@ Let's write one for the Beaglebone Black. Assuming your source tree is
|
|||||||
at $HOME/development/rtems/rtems-src and your bsp is built and linked
|
at $HOME/development/rtems/rtems-src and your bsp is built and linked
|
||||||
with examples and installed at $HOME/development/rtems/4.11.
|
with examples and installed at $HOME/development/rtems/4.11.
|
||||||
|
|
||||||
|
```shell
|
||||||
% cd $HOME/development/rtems/rtems-src/c/src/lib/libbsp/arm/beagle/simscripts
|
% cd $HOME/development/rtems/rtems-src/c/src/lib/libbsp/arm/beagle/simscripts
|
||||||
% sh sdcard.sh $HOME/development/rtems/4.11 $HOME/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/testsuites/samples/hello/hello.exe
|
% sh sdcard.sh $HOME/development/rtems/4.11 $HOME/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/testsuites/samples/hello/hello.exe
|
||||||
|
```
|
||||||
|
|
||||||
The script should give you a whole bunch of output, ending in:
|
The script should give you a whole bunch of output, ending in:
|
||||||
|
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
PWM
|
||||||
|
===
|
||||||
|
|
||||||
Pulse Width Modulation subsystem includes EPWM, ECAP , EQEP. There are
|
Pulse Width Modulation subsystem includes EPWM, ECAP , EQEP. There are
|
||||||
different instances available for each one. For PWM there are three
|
different instances available for each one. For PWM there are three
|
||||||
different individual EPWM module 0 , 1 and 2. So wherever pwmss word is
|
different individual EPWM module 0 , 1 and 2. So wherever pwmss word is
|
||||||
@@ -29,6 +32,7 @@ To generate different frequencies with the help of PWM module , SYSCLKOUT
|
|||||||
need to be scaled down, which will act as TBCLK and TBCLK will be base clock
|
need to be scaled down, which will act as TBCLK and TBCLK will be base clock
|
||||||
for the pwm subsystem.
|
for the pwm subsystem.
|
||||||
|
|
||||||
|
```
|
||||||
TBCLK = SYSCLKOUT/(HSPCLKDIV * CLKDIV)
|
TBCLK = SYSCLKOUT/(HSPCLKDIV * CLKDIV)
|
||||||
|
|
||||||
|----------------|
|
|----------------|
|
||||||
@@ -40,10 +44,13 @@ TBCLK = SYSCLKOUT/(HSPCLKDIV * CLKDIV)
|
|||||||
| |
|
| |
|
||||||
TBCTL[CLKDIV]----- ------TBCTL[HSPCLKDIV]
|
TBCTL[CLKDIV]----- ------TBCTL[HSPCLKDIV]
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
CLKDIV and HSPCLKDIV bits are part of the TBCTL register (Refer TRM).
|
CLKDIV and HSPCLKDIV bits are part of the TBCTL register (Refer TRM).
|
||||||
CLKDIV - These bits determine part of the time-base clock prescale value.
|
CLKDIV - These bits determine part of the time-base clock prescale value.
|
||||||
Please use the following values of CLKDIV to scale down sysclk respectively.
|
Please use the following values of CLKDIV to scale down sysclk respectively.
|
||||||
|
|
||||||
|
```
|
||||||
0h (R/W) = /1
|
0h (R/W) = /1
|
||||||
1h (R/W) = /2
|
1h (R/W) = /2
|
||||||
2h (R/W) = /4
|
2h (R/W) = /4
|
||||||
@@ -52,9 +59,11 @@ Please use the following values of CLKDIV to scale down sysclk respectively.
|
|||||||
5h (R/W) = /32
|
5h (R/W) = /32
|
||||||
6h (R/W) = /64
|
6h (R/W) = /64
|
||||||
7h (R/W) = /128
|
7h (R/W) = /128
|
||||||
|
```
|
||||||
These bits determine part of the time-base clock prescale value.
|
These bits determine part of the time-base clock prescale value.
|
||||||
Please use following value of HSPCLKDIV to scale down sysclk respectively
|
Please use following value of HSPCLKDIV to scale down sysclk respectively
|
||||||
|
|
||||||
|
```
|
||||||
0h (R/W) = /1
|
0h (R/W) = /1
|
||||||
1h (R/W) = /2
|
1h (R/W) = /2
|
||||||
2h (R/W) = /4
|
2h (R/W) = /4
|
||||||
@@ -63,7 +72,7 @@ Please use following value of HSPCLKDIV to scale down sysclk respectively
|
|||||||
5h (R/W) = /10
|
5h (R/W) = /10
|
||||||
6h (R/W) = /12
|
6h (R/W) = /12
|
||||||
7h (R/W) = /14
|
7h (R/W) = /14
|
||||||
|
```
|
||||||
For example, if you set CLKDIV = 3h and HSPCLKDIV= 2h Then
|
For example, if you set CLKDIV = 3h and HSPCLKDIV= 2h Then
|
||||||
SYSCLKOUT will be divided by (1/8)(1/4). It means SYSCLKOUT/32
|
SYSCLKOUT will be divided by (1/8)(1/4). It means SYSCLKOUT/32
|
||||||
|
|
||||||
@@ -80,19 +89,22 @@ Here by default period is 1/100MHz = 10 nsec
|
|||||||
|
|
||||||
Following example shows value to be loaded into TBPRD
|
Following example shows value to be loaded into TBPRD
|
||||||
|
|
||||||
|
```
|
||||||
e.g. TBPRD = 1 = 1 count
|
e.g. TBPRD = 1 = 1 count
|
||||||
count x Period = 1 x 1ns = 1ns
|
count x Period = 1 x 1ns = 1ns
|
||||||
freq = 1/Period = 1 / 1ns = 100 MHz
|
freq = 1/Period = 1 / 1ns = 100 MHz
|
||||||
|
```
|
||||||
|
|
||||||
For duty cycle CMPA and CMPB are the responsible registers.
|
For duty cycle CMPA and CMPB are the responsible registers.
|
||||||
|
|
||||||
To generate single with 50% Duty cycle & 100MHz freq.
|
To generate single with 50% Duty cycle & 100MHz freq.
|
||||||
|
|
||||||
|
```
|
||||||
CMPA = count x Duty Cycle
|
CMPA = count x Duty Cycle
|
||||||
= TBPRD x Duty Cycle
|
= TBPRD x Duty Cycle
|
||||||
= 1 x 50/100
|
= 1 x 50/100
|
||||||
= 0.2
|
= 0.2
|
||||||
|
```
|
||||||
The value in the active CMPA register is continuously compared to
|
The value in the active CMPA register is continuously compared to
|
||||||
the time-base counter (TBCNT). When the values are equal, the
|
the time-base counter (TBCNT). When the values are equal, the
|
||||||
counter-compare module generates a "time-base counter equal to
|
counter-compare module generates a "time-base counter equal to
|
||||||
@@ -112,10 +124,12 @@ List of pins for that can be used for different PWM instance :
|
|||||||
| BBB_P8_45_2A | BBB_P9_14_1A | BBB_P9_29_0B |
|
| BBB_P8_45_2A | BBB_P9_14_1A | BBB_P9_29_0B |
|
||||||
| BBB_P8_46_2B | BBB_P9_16_1B | BBB_P9_31_0A |
|
| BBB_P8_46_2B | BBB_P9_16_1B | BBB_P9_31_0A |
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
|
|
||||||
BBB_P8_13_2B represents P8 Header , pin number 13 , 2nd PWM instance and B channel.
|
BBB_P8_13_2B represents P8 Header , pin number 13 , 2nd PWM instance and B channel.
|
||||||
|
|
||||||
Following sample program can be used to generate 7 Hz frequency.
|
Following sample program can be used to generate 7 Hz frequency.
|
||||||
|
|
||||||
|
```c
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -194,4 +208,4 @@ rtems_task Init(
|
|||||||
|
|
||||||
#define CONFIGURE_INIT
|
#define CONFIGURE_INIT
|
||||||
#include <rtems/confdefs.h>
|
#include <rtems/confdefs.h>
|
||||||
|
```
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
CSB336
|
||||||
|
======
|
||||||
|
|
||||||
This is the BSP for Cogent Computer System's CSB336, a single board
|
This is the BSP for Cogent Computer System's CSB336, a single board
|
||||||
computer using the Motorola MC9328MXL CPU.
|
computer using the Motorola MC9328MXL CPU.
|
||||||
|
|
||||||
@@ -1,11 +1,15 @@
|
|||||||
|
CSB337
|
||||||
|
======
|
||||||
This is the BSP for Cogent Computer System's CSB337 and updated
|
This is the BSP for Cogent Computer System's CSB337 and updated
|
||||||
for CSB637, single board computers using the Atmel AT91RM9200 CPU.
|
for CSB637, single board computers using the Atmel AT91RM9200 CPU.
|
||||||
The differences in the board are very slight but important:
|
The differences in the board are very slight but important:
|
||||||
|
|
||||||
|
```
|
||||||
CSB337 CSB637
|
CSB337 CSB637
|
||||||
======== ========
|
======== ========
|
||||||
16Mb RAM 64Mb RAM
|
16Mb RAM 64Mb RAM
|
||||||
??
|
??
|
||||||
|
```
|
||||||
|
|
||||||
Please check README.kit637_v6 for more explanation about the Cogent's
|
Please check README.kit637_v6 for more explanation about the Cogent's
|
||||||
Development Kit that uses the CSB637 single board computer.
|
Development Kit that uses the CSB637 single board computer.
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
umon
|
||||||
|
====
|
||||||
|
|
||||||
# Fernando Nicodemos <fgnicodemos@terra.com.br>
|
# Fernando Nicodemos <fgnicodemos@terra.com.br>
|
||||||
# from NCB - Sistemas Embarcados Ltda. (Brazil)
|
# from NCB - Sistemas Embarcados Ltda. (Brazil)
|
||||||
#
|
#
|
||||||
@@ -15,7 +18,7 @@ application. This directory contiains:
|
|||||||
available under RTEMS as a regular filesystem.
|
available under RTEMS as a regular filesystem.
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
=====
|
-----
|
||||||
|
|
||||||
For any of this functionality to work, the application is
|
For any of this functionality to work, the application is
|
||||||
responsible for connecting the library to the monitor.
|
responsible for connecting the library to the monitor.
|
||||||
@@ -28,21 +31,24 @@ To use the TFS filesystem, it is necessary to mount it
|
|||||||
by calling the rtems_initialize_tfs_filesystem() routine
|
by calling the rtems_initialize_tfs_filesystem() routine
|
||||||
and providing it the name of the mount point directory.
|
and providing it the name of the mount point directory.
|
||||||
|
|
||||||
|
|
||||||
CONFIGURATION
|
CONFIGURATION
|
||||||
=============
|
-------------
|
||||||
The TFS filesystem uses a single Classic API Semaphore.
|
The TFS filesystem uses a single Classic API Semaphore.
|
||||||
|
|
||||||
The monlib functionality will eventually also use a single
|
The monlib functionality will eventually also use a single
|
||||||
Classic API Semaphore.
|
Classic API Semaphore.
|
||||||
|
|
||||||
|
|
||||||
STATUS
|
STATUS
|
||||||
======
|
------
|
||||||
|
|
||||||
+ Limited testing -- especially of TFS RTEMS filesystem.
|
+ Limited testing -- especially of TFS RTEMS filesystem.
|
||||||
+ monlib is NOT currently protected by a mutex.
|
+ monlib is NOT currently protected by a mutex.
|
||||||
|
|
||||||
|
|
||||||
SOURCE ORIGIN
|
SOURCE ORIGIN
|
||||||
=============
|
-------------
|
||||||
Some of the files in this directory are included in the
|
Some of the files in this directory are included in the
|
||||||
MicroMonitor distribution and may need to be updated
|
MicroMonitor distribution and may need to be updated
|
||||||
in the future.
|
in the future.
|
||||||
@@ -1 +1,4 @@
|
|||||||
|
edb7312
|
||||||
|
=======
|
||||||
|
|
||||||
This board is from Cogent.
|
This board is from Cogent.
|
||||||
@@ -1,2 +1,5 @@
|
|||||||
|
gumstix
|
||||||
|
=======
|
||||||
|
|
||||||
This is the BSP for GUMSTIX which has a PXA255 CPU.
|
This is the BSP for GUMSTIX which has a PXA255 CPU.
|
||||||
|
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
lm3s69xx
|
||||||
|
========
|
||||||
|
|
||||||
Tested only on Qemu simulator with git (git://git.qemu.org/qemu.git) version
|
Tested only on Qemu simulator with git (git://git.qemu.org/qemu.git) version
|
||||||
1.0.50.
|
1.0.50.
|
||||||
|
|
||||||
@@ -1,11 +1,14 @@
|
|||||||
|
lpc176x
|
||||||
|
=======
|
||||||
|
|
||||||
Development Board: Base Board from Embedded Artists
|
Development Board: Base Board from Embedded Artists
|
||||||
|
|
||||||
http://www.embeddedartists.com/products/lpcxpresso/mbed.php
|
http://www.embeddedartists.com/products/lpcxpresso/mbed.php
|
||||||
|
|
||||||
Drivers:
|
Drivers:
|
||||||
|
|
||||||
o Console
|
* Console
|
||||||
o Clock
|
* Clock
|
||||||
o Timer
|
* Timer
|
||||||
o GPIO
|
* GPIO
|
||||||
o Watchdog
|
* Watchdog
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
lpc24xx
|
||||||
|
=======
|
||||||
|
|
||||||
Development Board: QVGA Base Board from Embedded Artists
|
Development Board: QVGA Base Board from Embedded Artists
|
||||||
|
|
||||||
http://www.embeddedartists.com/products/uclinux/oem_lpc2478.php
|
http://www.embeddedartists.com/products/uclinux/oem_lpc2478.php
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
lpc32xx
|
||||||
|
=======
|
||||||
|
|
||||||
Development board is phyCORE-LPC3250 RDK. Basic initialization via stage 1
|
Development board is phyCORE-LPC3250 RDK. Basic initialization via stage 1
|
||||||
bootloader or U-Boot will be assumed. Drivers:
|
bootloader or U-Boot will be assumed. Drivers:
|
||||||
|
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
Raspberry PI
|
||||||
|
============
|
||||||
|
|
||||||
BSP for the Raspberry Pi ARM board
|
BSP for the Raspberry Pi ARM board
|
||||||
This is a basic port that should work on either Model A or Model B.
|
This is a basic port that should work on either Model A or Model B.
|
||||||
|
|
||||||
@@ -13,6 +16,7 @@ It currently supports the following devices:
|
|||||||
|
|
||||||
To run an RTEMS binary, it must be stripped and loaded on the SD card along with
|
To run an RTEMS binary, it must be stripped and loaded on the SD card along with
|
||||||
the following files:
|
the following files:
|
||||||
|
|
||||||
bootcode.bin
|
bootcode.bin
|
||||||
config.txt
|
config.txt
|
||||||
loader.bin
|
loader.bin
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
|
realview-pbx-a9
|
||||||
|
===============
|
||||||
|
|
||||||
Tested only on Qemu.
|
Tested only on Qemu.
|
||||||
|
|
||||||
|
```shell
|
||||||
git clone git://git.qemu.org/qemu.git qemu
|
git clone git://git.qemu.org/qemu.git qemu
|
||||||
cd qemu
|
cd qemu
|
||||||
git co a1bff71c56f2d1048244c829b63797940dd4ba0e
|
git co a1bff71c56f2d1048244c829b63797940dd4ba0e
|
||||||
@@ -13,3 +17,4 @@ export PATH="$PATH:/opt/qemu/bin"
|
|||||||
qemu-system-arm -S -s -no-reboot -net none -nographic -M realview-pbx-a9 -m 256M -kernel ticker.exe
|
qemu-system-arm -S -s -no-reboot -net none -nographic -M realview-pbx-a9 -m 256M -kernel ticker.exe
|
||||||
|
|
||||||
qemu-system-arm -S -s -no-reboot -net none -nographic -smp 2 -icount auto -M realview-pbx-a9 -m 256M -kernel ticker.exe
|
qemu-system-arm -S -s -no-reboot -net none -nographic -smp 2 -icount auto -M realview-pbx-a9 -m 256M -kernel ticker.exe
|
||||||
|
```
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
rtl22xx
|
||||||
|
=======
|
||||||
|
|
||||||
RTEMS BSP for Philips's ARM processor
|
RTEMS BSP for Philips's ARM processor
|
||||||
|
|
||||||
This BSP is designed for the following Philips' ARM microprocessors:
|
This BSP is designed for the following Philips' ARM microprocessors:
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
SMDK2410
|
||||||
|
========
|
||||||
|
|
||||||
SMDK2410 is a standard evaluation board for samsung s3c2410 ARM9 CPU
|
SMDK2410 is a standard evaluation board for samsung s3c2410 ARM9 CPU
|
||||||
|
|
||||||
This BSP was first developed by xiajiashan <ximenchuixue4016@sina.com>,
|
This BSP was first developed by xiajiashan <ximenchuixue4016@sina.com>,
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
STM32F4-Discovery
|
||||||
|
=================
|
||||||
|
|
||||||
Tested with STM32F4-Discovery evaluation board.
|
Tested with STM32F4-Discovery evaluation board.
|
||||||
|
|
||||||
For debugging on Linux use:
|
For debugging on Linux use:
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
TI Hercules TMS570
|
||||||
|
==================
|
||||||
|
|
||||||
TI Hercules TMS570 series development boards:
|
TI Hercules TMS570 series development boards:
|
||||||
|
|
||||||
TMS570LS31:
|
TMS570LS31:
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
xilinx-zynqmp
|
||||||
|
=============
|
||||||
|
|
||||||
Tested on an Ultra96 board with JTAG boot.
|
Tested on an Ultra96 board with JTAG boot.
|
||||||
|
|
||||||
Make sure to configure the boot mode switches for JTAG mode.
|
Make sure to configure the boot mode switches for JTAG mode.
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
TLL6527M
|
||||||
|
========
|
||||||
|
|
||||||
|
```
|
||||||
BSP NAME: TLL6527M
|
BSP NAME: TLL6527M
|
||||||
BOARD: TLL6527M
|
BOARD: TLL6527M
|
||||||
CPU FAMILY: Blackfin
|
CPU FAMILY: Blackfin
|
||||||
@@ -6,9 +10,12 @@ MODE: 32 bit mode
|
|||||||
|
|
||||||
DEBUG MONITOR:
|
DEBUG MONITOR:
|
||||||
SIMULATOR:
|
SIMULATOR:
|
||||||
|
```
|
||||||
|
|
||||||
PERIPHERALS
|
PERIPHERALS
|
||||||
===========
|
-----------
|
||||||
|
|
||||||
|
```
|
||||||
TIMERS: internal
|
TIMERS: internal
|
||||||
RESOLUTION: 1 milisecond
|
RESOLUTION: 1 milisecond
|
||||||
SERIAL PORTS: 2 internal UART (polled/interrupt/dma)
|
SERIAL PORTS: 2 internal UART (polled/interrupt/dma)
|
||||||
@@ -17,29 +24,32 @@ DMA: internal
|
|||||||
VIDEO: none
|
VIDEO: none
|
||||||
SCSI: none
|
SCSI: none
|
||||||
NETWORKING: none
|
NETWORKING: none
|
||||||
|
```
|
||||||
|
|
||||||
DRIVER INFORMATION
|
DRIVER INFORMATION
|
||||||
==================
|
------------------
|
||||||
|
```
|
||||||
CLOCK DRIVER: internal
|
CLOCK DRIVER: internal
|
||||||
TIMER DRIVER: internal
|
TIMER DRIVER: internal
|
||||||
I2C:
|
I2C:
|
||||||
SPI:
|
SPI:
|
||||||
PPI:
|
PPI:
|
||||||
SPORT:
|
SPORT:
|
||||||
|
```
|
||||||
|
|
||||||
STDIO
|
STDIO
|
||||||
=====
|
-----
|
||||||
|
```
|
||||||
PORT: Console port 1
|
PORT: Console port 1
|
||||||
ELECTRICAL: RS-232
|
ELECTRICAL: RS-232
|
||||||
BAUD: 9600
|
BAUD: 9600
|
||||||
BITS PER CHARACTER: 8
|
BITS PER CHARACTER: 8
|
||||||
PARITY: None
|
PARITY: None
|
||||||
STOP BITS: 1
|
STOP BITS: 1
|
||||||
|
```
|
||||||
|
|
||||||
NOTES
|
NOTES
|
||||||
=====
|
-----
|
||||||
The TLL56527M board contains analog devices blackfin 527 processor. In addition
|
The TLL56527M board contains analog devices blackfin 527 processor. In addition
|
||||||
to the peripherals provided by bf527 the board has a temprature sensor,
|
to the peripherals provided by bf527 the board has a temprature sensor,
|
||||||
accelerometer and power module connected via I2C. It also has LCD interface,
|
accelerometer and power module connected via I2C. It also has LCD interface,
|
||||||
@@ -68,13 +78,12 @@ ports. Under bsp configure.ac files
|
|||||||
polling to transmit data over uart. This call is blocking.
|
polling to transmit data over uart. This call is blocking.
|
||||||
|
|
||||||
TLL6527 specific file are mentioned below.
|
TLL6527 specific file are mentioned below.
|
||||||
=====================================
|
|
||||||
c/src/lib/libcpu/bfin/bf52x/*
|
c/src/lib/libcpu/bfin/bf52x/*
|
||||||
c/src/lib/libbsp/bfin/TLL6527M/*
|
c/src/lib/libbsp/bfin/TLL6527M/*
|
||||||
|
|
||||||
|
|
||||||
The port was compiled using
|
The port was compiled using
|
||||||
===========================
|
---------------------------
|
||||||
1. bfin-rtems4.11-gcc (GCC) 4.5.2 20101216
|
1. bfin-rtems4.11-gcc (GCC) 4.5.2 20101216
|
||||||
(RTEMS gcc-4.5.2-3.el5/newlib-1.19.0-1.el5)
|
(RTEMS gcc-4.5.2-3.el5/newlib-1.19.0-1.el5)
|
||||||
2. automake (GNU automake) 1.11.1
|
2. automake (GNU automake) 1.11.1
|
||||||
@@ -82,11 +91,12 @@ The port was compiled using
|
|||||||
|
|
||||||
|
|
||||||
The port was configured using the flags
|
The port was configured using the flags
|
||||||
==========================================
|
---------------------------------------
|
||||||
--target=bfin-rtems4.11 --enable-rtemsbsp=TLL6527M --enable-tests=samples
|
--target=bfin-rtems4.11 --enable-rtemsbsp=TLL6527M --enable-tests=samples
|
||||||
--disable-posix --disable-itron
|
--disable-posix --disable-itron
|
||||||
|
|
||||||
|
|
||||||
ISSUES:
|
ISSUES
|
||||||
|
------
|
||||||
Could not place code in l1code (SRAM) because it was not being loaded by the
|
Could not place code in l1code (SRAM) because it was not being loaded by the
|
||||||
gnu loaded.
|
gnu loaded.
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
bf537Stamp
|
||||||
|
==========
|
||||||
|
```
|
||||||
BSP NAME: bf537Stamp
|
BSP NAME: bf537Stamp
|
||||||
BOARD: ADZS-BF537-STAMP
|
BOARD: ADZS-BF537-STAMP
|
||||||
CPU FAMILY: Blackfin
|
CPU FAMILY: Blackfin
|
||||||
@@ -6,9 +9,11 @@ MODE: 32 bit mode
|
|||||||
|
|
||||||
DEBUG MONITOR: ICEBear
|
DEBUG MONITOR: ICEBear
|
||||||
SIMULATOR: Skyeye
|
SIMULATOR: Skyeye
|
||||||
|
```
|
||||||
|
|
||||||
PERIPHERALS
|
PERIPHERALS
|
||||||
===========
|
-----------
|
||||||
|
```
|
||||||
TIMERS: internal
|
TIMERS: internal
|
||||||
RESOLUTION: 1 milisecond
|
RESOLUTION: 1 milisecond
|
||||||
SERIAL PORTS: internal UART (polled/interrupt)
|
SERIAL PORTS: internal UART (polled/interrupt)
|
||||||
@@ -17,21 +22,22 @@ DMA: internal
|
|||||||
VIDEO: none
|
VIDEO: none
|
||||||
SCSI: none
|
SCSI: none
|
||||||
NETWORKING: internal
|
NETWORKING: internal
|
||||||
|
```
|
||||||
|
|
||||||
DRIVER INFORMATION
|
DRIVER INFORMATION
|
||||||
==================
|
------------------
|
||||||
|
```
|
||||||
CLOCK DRIVER: internal
|
CLOCK DRIVER: internal
|
||||||
TIMER DRIVER: internal
|
TIMER DRIVER: internal
|
||||||
|
```
|
||||||
|
|
||||||
STDIO
|
STDIO
|
||||||
=====
|
-----
|
||||||
|
```
|
||||||
PORT: Console port 0
|
PORT: Console port 0
|
||||||
ELECTRICAL: RS-232
|
ELECTRICAL: RS-232
|
||||||
BAUD: 57600
|
BAUD: 57600
|
||||||
BITS PER CHARACTER: 8
|
BITS PER CHARACTER: 8
|
||||||
PARITY: None
|
PARITY: None
|
||||||
STOP BITS: 1
|
STOP BITS: 1
|
||||||
|
```
|
||||||
NOTES
|
|
||||||
=====
|
|
||||||
|
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
eZKit533
|
||||||
|
========
|
||||||
|
```
|
||||||
BSP NAME: eZKit533
|
BSP NAME: eZKit533
|
||||||
BOARD: ADSP-BF533 EzKit Lite
|
BOARD: ADSP-BF533 EzKit Lite
|
||||||
CPU FAMILY: Blackfin
|
CPU FAMILY: Blackfin
|
||||||
@@ -6,9 +9,11 @@ MODE: 32 bit mode
|
|||||||
|
|
||||||
DEBUG MONITOR: ICEBear
|
DEBUG MONITOR: ICEBear
|
||||||
SIMULATOR: Skyeye
|
SIMULATOR: Skyeye
|
||||||
|
```
|
||||||
|
|
||||||
PERIPHERALS
|
PERIPHERALS
|
||||||
===========
|
-----------
|
||||||
|
```
|
||||||
TIMERS: internal
|
TIMERS: internal
|
||||||
RESOLUTION: 1 milisecond
|
RESOLUTION: 1 milisecond
|
||||||
SERIAL PORTS: internal UART (polled/interrupt)
|
SERIAL PORTS: internal UART (polled/interrupt)
|
||||||
@@ -17,20 +22,22 @@ DMA: internal
|
|||||||
VIDEO: none
|
VIDEO: none
|
||||||
SCSI: none
|
SCSI: none
|
||||||
NETWORKING: none
|
NETWORKING: none
|
||||||
|
```
|
||||||
|
|
||||||
DRIVER INFORMATION
|
DRIVER INFORMATION
|
||||||
==================
|
------------------
|
||||||
|
```
|
||||||
CLOCK DRIVER: internal
|
CLOCK DRIVER: internal
|
||||||
TIMER DRIVER: internal
|
TIMER DRIVER: internal
|
||||||
|
```
|
||||||
|
|
||||||
STDIO
|
STDIO
|
||||||
=====
|
-----
|
||||||
|
```
|
||||||
PORT: Console port 0
|
PORT: Console port 0
|
||||||
ELECTRICAL: RS-232
|
ELECTRICAL: RS-232
|
||||||
BAUD: 57600
|
BAUD: 57600
|
||||||
BITS PER CHARACTER: 8
|
BITS PER CHARACTER: 8
|
||||||
PARITY: None
|
PARITY: None
|
||||||
STOP BITS: 1
|
STOP BITS: 1
|
||||||
|
```
|
||||||
NOTES
|
|
||||||
=====
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
#
|
pc386
|
||||||
# This board support package works with a target PC
|
=====
|
||||||
#
|
|
||||||
|
This board support package works with a target PC
|
||||||
|
|
||||||
This BSP supports a standard Intel/AMD PC on i386 and up CPUs. If on
|
This BSP supports a standard Intel/AMD PC on i386 and up CPUs. If on
|
||||||
a Pentium or above, the TSC register is used for timing calibration
|
a Pentium or above, the TSC register is used for timing calibration
|
||||||
@@ -9,8 +10,9 @@ purposes rather than relying entirely on the i8254.
|
|||||||
Partial support is implemented for more modern PCs which do not have
|
Partial support is implemented for more modern PCs which do not have
|
||||||
a complete complement of legacy peripherals.
|
a complete complement of legacy peripherals.
|
||||||
|
|
||||||
|
|
||||||
Console/Printk Device Selection
|
Console/Printk Device Selection
|
||||||
===============================
|
-------------------------------
|
||||||
The pc386 console device driver supports a variety of devices
|
The pc386 console device driver supports a variety of devices
|
||||||
including the VGA/keyboard and a number of serial ports. The
|
including the VGA/keyboard and a number of serial ports. The
|
||||||
default console is selected based on which devices are present
|
default console is selected based on which devices are present
|
||||||
@@ -31,9 +33,11 @@ are enabled. The configure time options are:
|
|||||||
|
|
||||||
An example of using these to force the console to COM1 is:
|
An example of using these to force the console to COM1 is:
|
||||||
|
|
||||||
|
```shell
|
||||||
../rtems/configure --target=i386-rtems4.12 \
|
../rtems/configure --target=i386-rtems4.12 \
|
||||||
USE_COM1_AS_CONSOLE=1 --enable-rtemsbsp=pc386 \
|
USE_COM1_AS_CONSOLE=1 --enable-rtemsbsp=pc386 \
|
||||||
... other arguments ...
|
... other arguments ...
|
||||||
|
```
|
||||||
|
|
||||||
The --console and --printk options can be used to specify the
|
The --console and --printk options can be used to specify the
|
||||||
device associated with stdin, stdout, and stderr as well as
|
device associated with stdin, stdout, and stderr as well as
|
||||||
@@ -45,7 +49,9 @@ specify the console and kernel debug IO device. The --printk
|
|||||||
is then interpreted to specify the debug kernel IO device.
|
is then interpreted to specify the debug kernel IO device.
|
||||||
For example,
|
For example,
|
||||||
|
|
||||||
|
```shell
|
||||||
--console=/dev/com1 --printk=/dev/vgacons
|
--console=/dev/com1 --printk=/dev/vgacons
|
||||||
|
```
|
||||||
|
|
||||||
specifies that com1 is to be used for stdin, stdout, and stderr
|
specifies that com1 is to be used for stdin, stdout, and stderr
|
||||||
while the VGA console is to be used for kernel debug IO.
|
while the VGA console is to be used for kernel debug IO.
|
||||||
@@ -55,7 +61,9 @@ the RTEMS device /dev/com1.
|
|||||||
The device name may be followed by a baud rate. The following
|
The device name may be followed by a baud rate. The following
|
||||||
example illustrates this:
|
example illustrates this:
|
||||||
|
|
||||||
|
```shell
|
||||||
--console=/dev/com1,19200 --printk=/dev/vgacons
|
--console=/dev/com1,19200 --printk=/dev/vgacons
|
||||||
|
```
|
||||||
|
|
||||||
If the specified device is not present, then a suitable fallback
|
If the specified device is not present, then a suitable fallback
|
||||||
device is selected. The fallback order is based upon the probe
|
device is selected. The fallback order is based upon the probe
|
||||||
@@ -64,12 +72,14 @@ order listed earlier.
|
|||||||
PCI UART devices are /dev/pcicom1 etc as they are probed and found.
|
PCI UART devices are /dev/pcicom1 etc as they are probed and found.
|
||||||
|
|
||||||
GDB
|
GDB
|
||||||
===
|
---
|
||||||
|
|
||||||
GDB can be support using:
|
GDB can be support using:
|
||||||
|
|
||||||
|
```
|
||||||
--gdb=/dev/com1,115200 : where the device and baudrate are selectable.
|
--gdb=/dev/com1,115200 : where the device and baudrate are selectable.
|
||||||
--gdb-break : halt at a break point in the BSP and wait for GDB.
|
--gdb-break : halt at a break point in the BSP and wait for GDB.
|
||||||
--gdb-remote-debug : Output the GDB remote protocol data to printk
|
--gdb-remote-debug : Output the GDB remote protocol data to printk
|
||||||
|
```
|
||||||
|
|
||||||
The GDB stub details and in shared/comm/GDB.HOWTO.
|
The GDB stub details and in shared/comm/GDB.HOWTO.
|
||||||
@@ -1,18 +1,24 @@
|
|||||||
# The Lattice Mico32 port uses the system_config.h generated by the Mico
|
Lattice Mico32
|
||||||
# System Builder to retrieve the properties of the peripherals.
|
==============
|
||||||
#
|
|
||||||
# Implemented (in shared/ subdirectory)
|
|
||||||
# Polled console driver (uart)
|
|
||||||
# Clock interrupt with 10 ms tick
|
|
||||||
# Networking using Lattice tri-speed ethernet MAC
|
|
||||||
#
|
|
||||||
# Todo
|
|
||||||
# Support more peripherals:
|
|
||||||
# - uart driver using interrupts
|
|
||||||
#
|
|
||||||
# jukka.pietarinen@mrf.fi, 3.12.2008
|
|
||||||
#
|
|
||||||
|
|
||||||
|
The Lattice Mico32 port uses the system_config.h generated by the Mico
|
||||||
|
System Builder to retrieve the properties of the peripherals.
|
||||||
|
|
||||||
|
Implemented (in shared/ subdirectory)
|
||||||
|
Polled console driver (uart)
|
||||||
|
Clock interrupt with 10 ms tick
|
||||||
|
Networking using Lattice tri-speed ethernet MAC
|
||||||
|
|
||||||
|
TODO
|
||||||
|
----
|
||||||
|
|
||||||
|
Support more peripherals:
|
||||||
|
* uart driver using interrupts
|
||||||
|
|
||||||
|
jukka.pietarinen@mrf.fi, 3.12.2008
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
BSP NAME: lm32_evr
|
BSP NAME: lm32_evr
|
||||||
BOARD: cRIO-EVR, Micro-Research Finland Oy
|
BOARD: cRIO-EVR, Micro-Research Finland Oy
|
||||||
BUS: wishbone
|
BUS: wishbone
|
||||||
@@ -22,9 +28,11 @@ COPROCESSORS: none
|
|||||||
MODE: 32 bit mode
|
MODE: 32 bit mode
|
||||||
|
|
||||||
DEBUG MONITOR: none
|
DEBUG MONITOR: none
|
||||||
|
```
|
||||||
|
|
||||||
PERIPHERALS
|
PERIPHERALS
|
||||||
===========
|
-----------
|
||||||
|
```
|
||||||
TIMERS: clock
|
TIMERS: clock
|
||||||
RESOLUTION: 10 ms
|
RESOLUTION: 10 ms
|
||||||
SERIAL PORTS: uart
|
SERIAL PORTS: uart
|
||||||
@@ -33,9 +41,10 @@ DMA: none
|
|||||||
VIDEO: none
|
VIDEO: none
|
||||||
SCSI: none
|
SCSI: none
|
||||||
NETWORKING: tsmac
|
NETWORKING: tsmac
|
||||||
|
```
|
||||||
To on the simulator included in lm32-gdb use these commands:
|
To on the simulator included in lm32-gdb use these commands:
|
||||||
|
|
||||||
|
```shell
|
||||||
tar sim --hw-device lm32cpu \
|
tar sim --hw-device lm32cpu \
|
||||||
--hw-device "lm32uart/reg 0x80006000 0x100" \
|
--hw-device "lm32uart/reg 0x80006000 0x100" \
|
||||||
--hw-device "/lm32uart > int int0 /lm32cpu" \
|
--hw-device "/lm32uart > int int0 /lm32cpu" \
|
||||||
@@ -43,6 +52,7 @@ tar sim --hw-device lm32cpu \
|
|||||||
--hw-device "/lm32timer > int int1 /lm32cpu" \
|
--hw-device "/lm32timer > int int1 /lm32cpu" \
|
||||||
--memory-region 0x08000000,0x4000000
|
--memory-region 0x08000000,0x4000000
|
||||||
load
|
load
|
||||||
|
```
|
||||||
|
|
||||||
The simulator is VERY VERY slow when RTEMS is idle.
|
The simulator is VERY VERY slow when RTEMS is idle.
|
||||||
To speed this up, add SIMULATOR_FAST_IDLE=1 to the
|
To speed this up, add SIMULATOR_FAST_IDLE=1 to the
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
milkymist
|
||||||
|
=========
|
||||||
|
|
||||||
Full RTEMS port to the Milkymist One. Supports Milkymist SoC 1.0.x.
|
Full RTEMS port to the Milkymist One. Supports Milkymist SoC 1.0.x.
|
||||||
|
|
||||||
Includes drivers for:
|
Includes drivers for:
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
GDB Stub lm32
|
||||||
|
=============
|
||||||
|
|
||||||
This is a thread-aware gdb stub for the lm32 architecture. It has to be
|
This is a thread-aware gdb stub for the lm32 architecture. It has to be
|
||||||
linked with the application, which should be debugged. The application has
|
linked with the application, which should be debugged. The application has
|
||||||
to call 'lm32_gdb_stub_install' to setup the stub.
|
to call 'lm32_gdb_stub_install' to setup the stub.
|
||||||
@@ -44,6 +47,7 @@ NOTE2: make sure you have the following CFLAGS set:
|
|||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
|
|
||||||
|
```shell
|
||||||
char gdb_get_debug_char(void)
|
char gdb_get_debug_char(void)
|
||||||
{
|
{
|
||||||
/* Wait until there is a byte in RXTX */
|
/* Wait until there is a byte in RXTX */
|
||||||
@@ -79,4 +83,4 @@ EXAMPLES
|
|||||||
{
|
{
|
||||||
lm32_interrupt_ack(1 << DEBUG_UART_IRQ);
|
lm32_interrupt_ack(1 << DEBUG_UART_IRQ);
|
||||||
}
|
}
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user