Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug check #1

Open
Sickeroni opened this issue Mar 27, 2017 · 0 comments
Open

bug check #1

Sickeroni opened this issue Mar 27, 2017 · 0 comments

Comments

@Sickeroni
Copy link

This is a reminder-issue
At this point a bug is in one repo. Should be checked early in development of the updated Kvasir.

board ist nxp/freescale k64

`#include "Chip/MK64F12.hpp"
#include "Mpl/IntegralConstants.hpp"

apply(write(Kvasir::DmaTcd2Saddr::saddr, Kvasir::Register::value<0x400BB010>()), // DMA2 = ADC1 -> Array  // ADC0a Result Register = 4003B010  //  ADC1a Result Register = 400BB010
  write(Kvasir::DmaTcd2Attr::smod, _0),
  write(Kvasir::DmaTcd2Attr::SsizeValC::v001), // Source Size = 16 bit
  write(Kvasir::DmaTcd2Attr::dmod, _0),
  write(Kvasir::DmaTcd2Attr::dsize, _1), // Destination Size = 16 bit
  write(Kvasir::DmaTcd2Soff::soff, _0),
  write(Kvasir::DmaTcd2NbytesMloffno::SmloeValC::v0),
  write(Kvasir::DmaTcd2NbytesMloffno::DmloeValC::v0),
  write(Kvasir::DmaTcd2NbytesMloffno::nbytes, _2),
  write(Kvasir::DmaTcd2Doff::doff, _2),
  write(Kvasir::DmaTcd2CiterElinkno::ElinkValC::v0),  // PIT
                            //    write(Kvasir::DmaTcd2CiterElinkyes::ElinkValC::v1), // no PIT
                            //    write(Kvasir::DmaTcd2CiterElinkyes::linkch, _3), // no PIT
  write(Kvasir::DmaTcd2Csr::BwcValC::v00),
  write(Kvasir::DmaTcd2Csr::MajorelinkValC::v0),
  write(Kvasir::DmaTcd2Csr::majorlinkch, _3),
  write(Kvasir::DmaTcd2Csr::EsgValC::v1),
  write(Kvasir::DmaTcd2Csr::DreqValC::v0),
  write(Kvasir::DmaTcd2Csr::InthalfValC::v0),
  write(Kvasir::DmaTcd2Csr::IntmajorValC::v1),
  write(Kvasir::DmaTcd2Csr::StartValC::v0),
  write(Kvasir::DmaTcd2BiterElinkno::ElinkValC::v0) // PIT
                            //    write(Kvasir::DmaTcd2BiterElinkyes::ElinkValC::v1), // no PIT
                            //    write(Kvasir::DmaTcd2BiterElinkyes::linkch, _3) // no PIT
  );`

nbytes was set to 0, even with Kvasir::Register::value<2>();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant