Skip to content

Commit

Permalink
Corrections with SpaceWire Channels first config and backup SpW channels
Browse files Browse the repository at this point in the history
  • Loading branch information
rodmarfran committed Jul 6, 2021
1 parent 3f29396 commit 4c76133
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 7 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

/* HW and FW release version */
#define SIMUCAM_RELEASE "D3"
#define SIMUCAM_HW_VERSION "0.4"
#define SIMUCAM_HW_VERSION "0.5"
#define SIMUCAM_FW_VERSION "0.0"

#define N_OF_FastFEE 1
Expand Down
2 changes: 0 additions & 2 deletions G3U_HW_V02_2GB/Software_Project/Firmware/rtos/fee_taskV3.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ void vFeeTaskV3(void *task_data) {
for (ucIL = 0; ucIL < 8; ucIL++){
xTinMode[ucIL].ucAebNumber = 0;
xTinMode[ucIL].ucSideCcd = eDpktCcdSideE;
xTinMode[ucIL].ucSpWChannel = 0;
xTinMode[ucIL].bDataOn = FALSE;
xTinMode[ucIL].bPattern = FALSE;
xTinMode[ucIL].bSent = FALSE;
Expand Down Expand Up @@ -195,7 +194,6 @@ void vFeeTaskV3(void *task_data) {
for (ucIL = 0; ucIL < 8; ucIL++){
xTinMode[ucIL].ucAebNumber = 0;
xTinMode[ucIL].ucSideCcd = eDpktCcdSideE;
xTinMode[ucIL].ucSpWChannel = 0;
xTinMode[ucIL].bDataOn = FALSE;
xTinMode[ucIL].bPattern = FALSE;
xTinMode[ucIL].bSent = FALSE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,21 @@ void vInitialTask(void *task_data)
vChangeSyncSource(&xSimMeb, xDefaults.ucSyncSource);
vChangeEPValue(&xSimMeb, xDefaults.usiExposurePeriod);

/* Set SpaceWire Channels for the Simulation */
if (FALSE == xDefaults.bUseBackupSpwChannels) {
/* Configure Communication Channel 1-4 Demux for A-B-C-D */
bSpwdCh1DemuxSelect(eSpwdCh1DemuxSelIdChA);
bSpwdCh2DemuxSelect(eSpwdCh2DemuxSelIdChB);
bSpwdCh3DemuxSelect(eSpwdCh3DemuxSelIdChC);
bSpwdCh4DemuxSelect(eSpwdCh4DemuxSelIdChD);
} else {
/* Configure Communication Channel 1-4 Demux for E-F-G-H */
bSpwdCh1DemuxSelect(eSpwdCh1DemuxSelIdChE);
bSpwdCh2DemuxSelect(eSpwdCh2DemuxSelIdChF);
bSpwdCh3DemuxSelect(eSpwdCh3DemuxSelIdChG);
bSpwdCh4DemuxSelect(eSpwdCh4DemuxSelIdChH);
}

#if DEBUG_ON
// if ( xDefaults.ucDebugLevel <= dlMinorMessage ) {
if ( xDefaults.ucDebugLevel <= dlMajorMessage ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ void vInitSimucamBasicHW(void) {
vRstcHoldDeviceReset(RSTC_DEV_RS232_RST_CTRL_MSK);
vRstcReleaseDeviceReset(RSTC_DEV_RS232_RST_CTRL_MSK);

/* Configure SCommunication Channel 1 Demux */
/* Configure Communication Channel 1 Demux */
bSpwdCh1DemuxSelect(eSpwdCh1DemuxSelIdChA);

/* Configure SCommunication Channel 2 Demux */
/* Configure Communication Channel 2 Demux */
bSpwdCh2DemuxSelect(eSpwdCh2DemuxSelIdChB);

/* Configure SCommunication Channel 3 Demux */
/* Configure Communication Channel 3 Demux */
bSpwdCh3DemuxSelect(eSpwdCh3DemuxSelIdChC);

/* Configure SCommunication Channel 4 Demux */
/* Configure Communication Channel 4 Demux */
bSpwdCh4DemuxSelect(eSpwdCh4DemuxSelIdChD);

/* Disable the Isolation and LVDS driver boards*/
Expand Down
Binary file added Program_Flash_DE4/D3_0_5.sof
Binary file not shown.
Binary file added Program_Flash_DE4/D3_0_5_0_0.elf
Binary file not shown.
Binary file added Program_Flash_DE4/D3_0_5_DE4530.sof
Binary file not shown.

0 comments on commit 4c76133

Please sign in to comment.