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.

February 23rd, 2018 Week 8th Friday的更多相关文章

  1. February 24th, 2018 Week 8th Saturday

    Those are my principles, and if you don't like them... well, I have others. 那是我的原则,要是你不喜欢......那我还有其 ...

  2. February 22nd, 2018 Week 8th Thursday

    Confine yourself to the present. 着眼当下. The morning wind spreads its fresh smell, we should get up an ...

  3. February 21st, 2018 Week 8th Wednesday

    Our life is what our thoughts make it. 我们的思想成就了我们的生活. The mind is everything. What you think, you be ...

  4. February 20th, 2018 Week 8th Tuesday

    Receive without conceit, release without struggle. 接受时,不狂妄:放手时,不犹豫. How to understand this quote? Do ...

  5. February 19th, 2018 Week 8th Monday

    Love is blind, hard to find, difficult to get, and impossible to forget. 爱,很盲目,很难找,很难得,很难忘. It is al ...

  6. February 18th, 2018 Week 8th Sunday

    Don't cry for what is lost. Smile for what still remains. 别为失去的哭泣,为还留在你身边的一切微笑吧. I have been told th ...

  7. February 16th, 2018 Week 7th Friday

    Full of luck, health and cheer. We wish you a Happy Chinese New Year! 春节快乐,万事如意! From Shanbay. Today ...

  8. June. 23rd 2018, Week 25th. Saturday

    We are who we choose to be. 要成为怎样的人,选择在于自己. From Barry Manilow. I believe that we are who we choose ...

  9. codechef February Challenge 2018 简要题解

    比赛链接:https://www.codechef.com/FEB18,题面和提交记录是公开的,这里就不再贴了 Chef And His Characters 模拟题 Chef And The Pat ...

随机推荐

  1. Go基础系列:构建go程序

    hello world 从一个简单的程序开始解释,将下面的内容放进test.go文件中,路径随意: package main import ( "fmt" ) func main( ...

  2. MDK 中 [WEAK] 的作用

    简介 __weak 或 [weak] 具有相同的功能,用于定义变量或者函数,常见于定义函数,在 MDK 链接时优先链接定义为非 weak 的函数或变量,如果找不到则再链接 weak 函数. 在STM3 ...

  3. Ansible基础认识及安装使用详解(week5_day1_part1)--技术流ken

    Ansible简介 ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet.cfengine.chef.func.fabric)的优点,实现了批量系统配置.批量 ...

  4. SpringBoot学习(一)-->Spring的发展

    一.Spring的发展 1.Spring1.x 时代 在Spring1.x时代,都是通过xml文件配置bean,随着项目的不断扩大,需要将xml配置分放到不同的配置文件中,需要频繁的在java类和xm ...

  5. shell编程基础(五): 正则表达式及其使用

    正则表达式 1.前情提要 以前我们用grep在一个文件中找出包含某些字符串的行,比如在头文件中找出一个宏定义.其实grep还可以找出符合某个模式(Pattern)的一类字符串.例如找出所有符合xxxx ...

  6. overall error

    Overall error is same with total error in math.

  7. 面试官:你分析过mybatis工作原理吗?

    Mybatis工作原理也是面试的一大考点,必须要对其非常清晰,这样才能怼回去.本文建立在Spring+SpringMVC+Mybatis整合的项目之上. 我将其工作原理分为六个部分: 读取核心配置文件 ...

  8. 百度前端学院-基础学院-第七天到第八天之BFC

    1.BFC简介 BFC全称"block formatting context",中文为“块级格式化上下文”.特征总之记住一句话: BFC元素特征表现原则就是:内部元素无论怎么翻江倒 ...

  9. sqlplus导入数据

    从sqlplus命令行中向数据库中导入数据:

  10. Django的下载安装以及实现一个简单示例

    一.Django下载安装 Django下载链接 1. 下载Django: pip3 install django==1.11.9    (大的版本1.11不要错) 2.创建一个django proje ...