• February 23rd, 2018 Week 8th Friday


    It takes a strong man to save himself, and a great man to save another.

    强者自救,圣者渡人。

    When you are not strong enough to save others, just concentrate on self-improvements and self-promotion.

    For many of us, the best thing we can do to save others is to ensure we are capable of doing our businesses perfect so that we don't need to trouble others.

    But how to become a capable man? How to save ourselves from the deep grooves of life?

    That needs willpower, planning, and resolve.

    It is your life, you don't need someone's permission to live the life you want.

    生活是你自己的,想过什么样的生活,你不需要得到别人的许可。

    From Roy T. Bennett.

    I have been very busy programming for a can-bus device using STM32F407VG, a MCU from the Cortex-M4 family.

    The microchip has two can-bus interface, a master which can directly access the hardware, and a slave which only can indirectly access the hardware with the help of the master interface.

    According to the datasheet, the two interfaces, named bxCan, which means the Basic Extended CAN peripheral, can support the CAN protocols version 2.0A and B.

    It has been designed to manage a high number of incoming messages efficiently with a minimum CPU load, for the hardware in it can tackle the incoming messages first using FIFOs.

    However, after I realized some basic functions, many problems arose when I tried to optimize my code in order to meet the design requirements.

    Maybe I am lack of enough knowledge about the microchip, especially the knowledge needed to tackle the interrupts in it.

    Do not be a coder who just knows copy and paste, please spend some time reading the datasheet and do some experiments to make the code work efficiently and faultlessly.

  • 相关阅读:
    Hadoop学习---Zookeeper+Hbase配置学习
    Hadoop学习---Hadoop的HBase的学习
    Hadoop学习---Hadoop的MapReduce的原理
    Hadoop学习---Hadoop的深入学习
    Hadoop学习---Eclipse中hadoop环境的搭建
    Hadoop学习---CentOS中hadoop伪分布式集群安装
    Hadoop学习---Ubuntu中hadoop完全分布式安装教程
    大数据学习---大数据的学习【all】
    Java实例---flappy-bird实例解析
    UML类图详细介绍
  • 原文地址:https://www.cnblogs.com/dengwenwu/p/8684380.html
Copyright © 2020-2023  润新知