( I2C address << 1 )
IIC_WriteReadBuffer( ( I2C_ADDRESS << 1 ), wBuffer, wLength, rBuffer, rLength);
wBuffer[0] --> I2C register address
wBuffer[1] --> data to write
- When reading:
wLength = 1
- When writing 1 byte:
wLength = 2
project properties window, then to C/C++ build --> settings --> GNU ARM C linker --> Libraries, then in the Libraries (-l) window, click "Add..>" and type "m" in the window that pops up. This should allow you to add the standard C math library into the project.
- No. 1:
Clean build
!!! - enable necessary
clocks
- include all
em_lib.c
files - include all
em_lib.h
files - include
folders
in project - Sometimes you think it's included, but it's not!
-
Debug --> Debug Configurations --> Exceptions -->
Enable All
-
Project properties --> C/C++ Build --> Settings --> Debug Settings --> Debug Level -->
Maximum (-g3)
orDefault (-g)
-
Project properties --> C/C++ Build --> Settings --> Optimization -->
None (-O0)
orOptimize for debugging (-Og)
-
Problem can be invisible character in code:
With:#ifdef x -- #endif
check until where code runs
-
Disable pins using:
GPIO_PinModeSet(BLE_PORT, BLE_PIN_TX, gpioModeDisabled, 0);
-
Do NOT use 1 at the end, this sets a pullup resistor and draws about
15 microA
per pin!! -
Disable clocks to all peripherals
-
When using RTCDRV timer, you must use RTCDRV_DeInit() otherwise MCU will wake-up every 7-8 minutes.
Correct usage:
RTCDRV_Init();
RTCDRV_AllocateTimer (&IMU_Idle_Timer );
RTCDRV_StartTimer( IMU_Idle_Timer, rtcdrvTimerTypePeriodic, 2000, (RTCDRV_Callback_t)CheckIMUidle, NULL);
RTCDRV_StopTimer( IMU_Idle_Timer );
RTCDRV_DeInit();
-
No ground plane under antenna
-
Use test-points + jumpers
-
Decoupling, decoupling, decoupling!
-
100nF on VDD lines
-
ALWAYS follow datasheet recommendations
-
Be carefull with
ground planes next to traces!
, this creates parasitic capacitances which may influence your circuit -
Separate DGND and AGND plane - separate by condensator or high ohm resistor
Shortcut | Action |
---|---|
CHANGE PACKAGE 'xxx' |
Change multiple footprints |
RATSNEST |
FIll all planes |
RIPUP @; |
Ripup ground planes after ratsnest |
VIA 'GND' |
Place via connected to GND |
-
git reset --hard d4df9b850f25ae8ae81a41d7979ebbdb77a1eefb
-
git push origin +d4df9b850f25ae8ae81a41d7979ebbdb77a1eefb^:develop
-
d4df9b850f25ae8ae81a41d7979ebbdb77a1eefb = commit nr
-
develop = branch name
git branch newbranch_name
Add .nojekyll
file to /docs/
folder
Github does not recognize /_filename
files
tar -czvf xxx.tar.gz xxx
For a full overview of shortcuts, see: VS Shortcuts
Shortcut | Action |
---|---|
ALT+Z |
Toggle Word Wrap |
F1 |
Command Window |
CTRL+K CTRL+O |
Open folder |
CTRL+: |
Toggle line comment |
CTRL+K+C: |
Comment |
CTRL+K+U: |
Uncomment |
SHIFT+ALT+F |
Auto format document |
CTRL + K (then press O) |
Open current tab in new window |
Place {...}
around capital letters
use
\begin{figure*}
\centering
\includegraphics{}
\caption{Caption}
\label{fig:my_label}
\end{figure*}
Include package
\usepackage{orcidlink}
and in text use:
Name Surname \orcidlink{0000-0000-0000-0000}
maple to latex: latex( "insert maple formula here" )
Mathpix converts pictures / screenshots to LaTeX formulas.
\usepackage[]{textcmds}
\q{}
python -m venv .venv
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
.venv\Scripts\activate
pip install -r requirements.txt
PDF to SVG conversion: inkscape -l output.svg input.pdf
https://www.pcbway.com/
https://jlcpcb.com/
Shortcut | Action |
---|---|
WIN+E |
File explorer |
CTRL+SHIFT+ESC |
Task manager |
CTRL+ALT+DEL |
Task manager 2 |
Shortcut | Action |
---|---|
CTRL+T |
Open new tab |
CTRL+N |
Open new window |
CTRL+SHIFT+T |
Open recently closed tab |
CTRL+W |
Close tab |
- Search
Macro's
Add macro
- Add This Code
- Open
CMD
orPowershell
ren *.LRV *.mp4
- HDR photo's auto stack:
photo
-->Auto stack by capture time
Shortcut | Action |
---|---|
CTRL+H |
Make HDR |
CTRL+SHIFT+H |
HDR based on previous settings |