Giter VIP home page Giter VIP logo

libsccc's Introduction

libsccc

Build Status

libsccc (previously libsmartcarcpp) is the library being used among the HKUST SmartCar Team

What's Inside

libbase: Peripheral library for MK60D(Z)10, MK60F15(/12), MKL26Z4
libsc: High-level component library based on libbase
libutil: Useful utilities

Dependency

None

Build

GNU Make 3.81+, GNU Tools for ARM Embedded Processor 4.8+

libsccc's People

Contributors

benjaminlair18 avatar chunkitmax avatar danvim avatar dipsywong98 avatar faifai0429 avatar gordoncw avatar harrisong avatar kwleungaj avatar kylelei avatar leechunhei avatar louismo avatar mcreng avatar nkming2 avatar noname0297 avatar pakoyam avatar pklauac avatar tselincoln avatar yudrnihil avatar yungcheukhin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libsccc's Issues

UART Rx get stuck

What

UART Rx could no longer receive new data

How

Flood Rx with many data in a short time

Hard fault while sending buffer via bluetooth frequently

    inno14-d-2014-inno.elf
      Thread [1] (Suspended : User Request)
        HardFaultHandlerC() at vectors.c:443 0xb7fa
        signal handler called() at 0xfffffff9
        _malloc_r() at 0x12808
        operator new() at 0x12370
        libsc::k60::UartDevice::SendBuffer() at uart_device.cpp:205 0x9872
        main() at main.cpp:78 0x711a
stacked_r0 volatile unsigned long 536806660
stacked_r1 volatile unsigned long 536869764
stacked_r2 volatile unsigned long 4
stacked_r3 volatile unsigned long 536869884
stacked_r12 volatile unsigned long 0
stacked_lr volatile unsigned long 74557
stacked_pc volatile unsigned long 75798
stacked_psr volatile unsigned long 16777216
_CFSR volatile unsigned long 1024
_HFSR volatile unsigned long 1073741824
_DFSR volatile unsigned long 1
_AFSR volatile unsigned long 0
_BFAR volatile unsigned long 3758157112
_MMAR volatile unsigned long 3758157108

I2C keeps waiting for one byte transfer completion

// Wait until data is received
while (!GET_BIT(MEM_MAPS[m_module]->S, I2C_S_IICIF_SHIFT))
{
    if (GET_BIT(MEM_MAPS[m_module]->SMB, I2C_SMB_SLTF_SHIFT))
    {
        LOG_DL("i2c scl timeout");
        return false;
    }
}

The interrupt flag in I2C status register was 0. The if statement was false.
The I2C interrupt enable flag in I2C control register 1 was found being 0.

Trying to simply set the I2C interrupt flag to 1 if it is 0 to fix this problem.

Uart calls OnReciveListener after receiving only 1 byte bug

OnReceiveListener in your SmartCar always gets the first byte at the first callback

For example:

Android: output_stream.write("Hi.");
output_stream.flush();

SmartCar:
1st OnReceiveListener: bytes = 'H' , size = 1
2nd OnReceiveListener: bytes = { 'i', '.' } , size = 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.