Skip to content

EDU-CIAA-NXP Support #1732

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

Closed
wants to merge 233 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
1ed4229
[EDU-CIAA-NXP Support] First commit
martinribelotta Aug 29, 2015
533f566
[EDU-CIAA-NXP] Add download, erase, openocd and debug targets on Make…
martinribelotta Aug 29, 2015
967dca9
[EDU-CIAA-NXP] Arrange system.c
martinribelotta Aug 29, 2015
c79046a
Se agrego soporte para los 3 leds y los 4 pulsadores de la EDU-CIAA.
ernesto-g Aug 30, 2015
61739a4
Nuevos archivos agregados para el soporte pyb.LED y pyb.Switch
ernesto-g Aug 30, 2015
c842db1
Archivo de ayuda
ernesto-g Aug 30, 2015
4b28edd
Merge pull request #1 from ernesto-g/pyb_support
martinribelotta Aug 30, 2015
706397f
Se agrego ejcucion de script py2c a Makefile
ernesto-g Aug 30, 2015
9da91b2
Se habilito la GC
ernesto-g Aug 30, 2015
ec42e5f
Inicializacion de GC
ernesto-g Sep 1, 2015
6d1ed20
Merge pull request #2 from ernesto-g/gc_support
martinribelotta Sep 1, 2015
8135110
bytearray enabled
ernesto-g Sep 2, 2015
4ea4faf
slice enabled
ernesto-g Sep 2, 2015
b5eae38
math enabled
ernesto-g Sep 2, 2015
de9aba1
array enabled
ernesto-g Sep 2, 2015
ada0513
sets enabled
ernesto-g Sep 2, 2015
c5988f4
speed up
ernesto-g Sep 2, 2015
0ab83bd
[EDU-CIAA-NXP] Improve pmhal module
martinribelotta Sep 4, 2015
045b78a
[EDU-CIAA-NXP] Experiments with performance
martinribelotta Sep 4, 2015
bd2a3d2
[EDU-CIAA-NXP] Added minimal repl
martinribelotta Sep 5, 2015
51de243
hal updated. collections enabled
ernesto-g Sep 6, 2015
6fced7c
uart 0 and uart3 TX enabled in board.c
ernesto-g Sep 6, 2015
3cf3f63
Merge branch 'enhanced_python' of https://github.com/ernesto-g/microp…
martinribelotta Sep 6, 2015
d3730a8
Merge branch 'ernesto-g-enhanced_python'
martinribelotta Sep 6, 2015
85b0775
Merge branch 'ciaa_repl'
martinribelotta Sep 6, 2015
94dc290
[EDU-CIAA-NXP] Move ProgramScript.c to build/ProgramScript.c. Improve…
martinribelotta Sep 6, 2015
e81816f
uart3 tx rx test
ernesto-g Sep 6, 2015
a26dce0
rs232 rs485 hal ok
ernesto-g Sep 7, 2015
ccf23a5
modpyb uart init
ernesto-g Sep 7, 2015
b58841f
uart module added
ernesto-g Sep 7, 2015
0a67ecb
uart module any() and readchar()
ernesto-g Sep 8, 2015
594aa54
uart read and write functions
ernesto-g Sep 9, 2015
e6c3a5c
uart rs232 ok
ernesto-g Sep 12, 2015
d4a1fd4
readme
ernesto-g Sep 12, 2015
680d83d
readme
ernesto-g Sep 12, 2015
0048572
readme
ernesto-g Sep 12, 2015
489dc63
switch callback
ernesto-g Sep 15, 2015
ca3a4ff
callbacks in switch module
ernesto-g Sep 15, 2015
6c5127a
Improbe py2c
martinribelotta Sep 17, 2015
641bd4e
Merge branch 'rs485' of git://github.com/ernesto-g/micropython into e…
martinribelotta Sep 17, 2015
63e53ac
Merge branch 'ernesto-g-rs485'
martinribelotta Sep 17, 2015
3990817
README to english. Added README_ES.md for spanish users.
martinribelotta Sep 17, 2015
45d3a3a
[EDU-CIAA-NXP] Revert global LD to $(CROSS_COMPILE)ld. Local LD=$(CRO…
martinribelotta Sep 18, 2015
b3683f1
Merge branch 'master' of https://github.com/micropython/micropython
martinribelotta Sep 18, 2015
770b214
callbacks in switches
ernesto-g Sep 20, 2015
61c9d17
callbacks in switches
ernesto-g Sep 20, 2015
01cf11a
callback() function added to switch module. function value() was chan…
ernesto-g Sep 20, 2015
3d1e908
Pin module added
ernesto-g Sep 20, 2015
2c9fd96
low level for module ExtInt
ernesto-g Sep 21, 2015
5f4e326
ExtInt module added
ernesto-g Sep 22, 2015
65ccc5d
ExtInt methods added
ernesto-g Sep 22, 2015
a344d6e
README modified
ernesto-g Sep 22, 2015
9cee66d
ExtInt example
ernesto-g Sep 23, 2015
cebed4a
dac support added in Board.c
ernesto-g Sep 23, 2015
510c6ac
DAC support on board.c
ernesto-g Sep 27, 2015
8b8e4d2
DAC module added
ernesto-g Sep 28, 2015
4290da5
clean code
ernesto-g Sep 28, 2015
0f238e9
Readme updated with DAC class
ernesto-g Sep 28, 2015
0b6dac2
Merge branch 'callbacks' of git://github.com/ernesto-g/micropython in…
martinribelotta Sep 28, 2015
6b63a8f
Merge branch 'dac' of git://github.com/ernesto-g/micropython into ern…
martinribelotta Sep 29, 2015
aad8fd3
Merge branch 'ernesto-g-dac'
martinribelotta Sep 29, 2015
0a5ef4c
[EDU-CIAA-NXP] Migrate from embedded script to ROMFS (in zip)
martinribelotta Sep 30, 2015
7bf719a
[EDU-CIAA-NXP] Minimal moduos added. Enalbe some builtin modules
martinribelotta Oct 1, 2015
61f92aa
[EDU-CIAA-NXP] Minor features enable. Use builtin execfile, remove no…
martinribelotta Oct 3, 2015
010fc66
red led pwm test
ernesto-g Oct 7, 2015
a6bc1a8
intensity function added in LED module for RGB management
ernesto-g Oct 11, 2015
fa423d3
readme fix
ernesto-g Oct 11, 2015
10020d7
readme fix
ernesto-g Oct 11, 2015
867f50b
board timer support ok
ernesto-g Oct 12, 2015
074d6b0
timer module
ernesto-g Oct 12, 2015
a0fc3aa
timer module
ernesto-g Oct 12, 2015
a954925
Timer module without channels OK
ernesto-g Oct 12, 2015
776d386
Readme with timer
ernesto-g Oct 12, 2015
2cab77d
Readme with timer
ernesto-g Oct 12, 2015
a9d4595
Readme with timer
ernesto-g Oct 12, 2015
0d08f18
Readme with timer
ernesto-g Oct 12, 2015
4268063
Merge pull request #7 from ernesto-g/timers
martinribelotta Oct 14, 2015
ec78996
Move to FATFS on flash (untested)
martinribelotta Oct 14, 2015
556e0a9
FATFS fist work (write do not work)
martinribelotta Oct 18, 2015
d273148
pwm info
ernesto-g Oct 21, 2015
7c5f4f2
[EDU-CIAA-NXP] Migration to FATFS completed (need more test but it wo…
martinribelotta Oct 21, 2015
a558051
Merge branch 'vfs'
martinribelotta Oct 21, 2015
3384ea8
[EDU-CIAA-NXP] Enable computed branch for performance
martinribelotta Oct 24, 2015
6f85450
Merge branch 'master' of https://github.com/micropython/micropython
martinribelotta Oct 24, 2015
3a20c47
[EDU-CIAA-NXP] Remove unused do_str function from main
martinribelotta Oct 24, 2015
b501046
[EDU-CIAA-NXP] Enable auto-indent
martinribelotta Oct 24, 2015
0dce56b
[EDU-CIAA-NXP] Enable RAW/Friendly REPL and good end
martinribelotta Oct 24, 2015
9e03327
pwm test
ernesto-g Oct 26, 2015
5f1a815
pwm module OK
ernesto-g Oct 28, 2015
24998f8
pwm module readme
ernesto-g Oct 28, 2015
0fe09c4
pwm module readme
ernesto-g Oct 28, 2015
e96118d
pwm module readme
ernesto-g Oct 28, 2015
88848cf
Merge branch 'pwm' of git://github.com/ernesto-g/micropython into ern…
martinribelotta Oct 31, 2015
6b40bf6
Merge branch 'ernesto-g-pwm'
martinribelotta Nov 1, 2015
fe4af6d
adc first test
ernesto-g Nov 1, 2015
2ead2d0
Merge branch 'master' of https://github.com/micropython/micropython
martinribelotta Nov 3, 2015
c0b1982
adc test ok
ernesto-g Nov 4, 2015
4e04073
adc mp_hal
Nov 4, 2015
a93b2ae
[EDU-CIAA-NXP] Rework mphal to accomodate new pyexec change
martinribelotta Nov 5, 2015
5d72bf1
Merge branch 'master' of https://github.com/micropython/micropython
martinribelotta Nov 5, 2015
a9954e9
adc module test
Nov 5, 2015
4b612ac
[EDU-CIAA-NXP] Soft reset on CTRL+D
martinribelotta Nov 7, 2015
f813502
tests adc
ernesto-g Nov 9, 2015
9445c5e
ADC module OK
ernesto-g Nov 10, 2015
2d1b2cb
ADC module OK
ernesto-g Nov 10, 2015
6d96b27
[EDU-CIAA-NXP] Fix flash write bug. Move write function to RAM
martinribelotta Nov 12, 2015
2b0cfa5
[EDU-CIAA-NXP] Clean flash code
martinribelotta Nov 12, 2015
6ecce92
[EDU-CIAA-NXP] Move erase page to RAM for security
martinribelotta Nov 12, 2015
52bc5f9
Merge branch 'adc' of git://github.com/ernesto-g/micropython into ern…
martinribelotta Nov 12, 2015
cef10be
Merge branch 'ernesto-g-adc'
martinribelotta Nov 12, 2015
71204e1
[EDU-CIAA-NXP] Update README|README_ES
martinribelotta Nov 12, 2015
ef9e54e
master
ernesto-g Nov 12, 2015
c02ef1b
Merge branch 'master' of https://github.com/martinribelotta/micropython
ernesto-g Nov 12, 2015
f26d64f
[EDU-CIAA-NXP] Clean code, added help, input and FileIO
martinribelotta Nov 13, 2015
05ae328
Merge branch 'master' of https://github.com/micropython/micropython
martinribelotta Nov 13, 2015
8fa8ac6
[EDU-CIAA-NXP] Make FATFS work
martinribelotta Nov 13, 2015
c59d1f9
[EDU-CIAA-NXP] README_ES.md prettify
martinribelotta Nov 14, 2015
dc5a2d8
script from ide
ernesto-g Nov 16, 2015
2a1371c
fatfs test
ernesto-g Nov 17, 2015
8e892c6
[EDU-CIAA-NXP] FIX Internal flash init
martinribelotta Nov 22, 2015
20c5650
test write
ernesto-g Nov 23, 2015
32665ef
script from ide test
ernesto-g Nov 23, 2015
7a2eb8a
receive script ok
ernesto-g Nov 25, 2015
b177cfa
download script test
ernesto-g Nov 25, 2015
0b1f84b
receive script from ide OK
ernesto-g Nov 26, 2015
133d121
crc check
ernesto-g Nov 28, 2015
e3ef943
crc check
ernesto-g Nov 28, 2015
e399951
Merge https://github.com/micropython/micropython
martinribelotta Nov 28, 2015
6da2afc
[EDU-CIAA-NXP] Compile before merge
martinribelotta Nov 28, 2015
d5e82a8
boot OK
ernesto-g Nov 29, 2015
7e0da23
[EDU-CIAA-NXP] Expand uPy HEAP to 40 to 64K
martinribelotta Nov 29, 2015
9e37d04
Merge https://github.com/micropython/micropython
martinribelotta Nov 29, 2015
2dce69b
keyboard support
ernesto-g Nov 30, 2015
87d0b1f
Merge https://github.com/micropython/micropython
martinribelotta Dec 5, 2015
7b0295a
lcd support
ernesto-g Dec 7, 2015
f0f1f14
lcd support
ernesto-g Dec 7, 2015
0e3535f
lcd support
ernesto-g Dec 7, 2015
53a3291
[EDU-CIAA-NXP] Enable __file__ property
martinribelotta Dec 7, 2015
cdfe300
Merge branch 'ponchoui' of git://github.com/ernesto-g/micropython int…
martinribelotta Dec 7, 2015
6355f5f
Merge branch 'ernesto-g-ponchoui'
martinribelotta Dec 7, 2015
0f9d357
eeprom core
ernesto-g Dec 8, 2015
f9dca6b
eeprom
ernesto-g Dec 9, 2015
88ee837
eeprom python module
ernesto-g Dec 12, 2015
9ed9d12
eeprom module ok
ernesto-g Dec 13, 2015
f39c6a0
Merge pull request #11 from ernesto-g/eeprom
martinribelotta Dec 14, 2015
f492022
timer module. timeout method. bug fix
ernesto-g Dec 15, 2015
d6bef25
Merge https://github.com/micropython/micropython
martinribelotta Dec 16, 2015
199b21a
Merge https://github.com/micropython/micropython
martinribelotta Dec 19, 2015
a38bf1d
[EDU-CIAA-NXP] Enable io module
martinribelotta Dec 19, 2015
43da570
spi module added
ernesto-g Dec 27, 2015
c4fb6ef
spi readme
ernesto-g Dec 27, 2015
7da268d
Merge pull request #12 from ernesto-g/bugfixes1
martinribelotta Dec 28, 2015
3e4a251
Merge pull request #13 from ernesto-g/spi
martinribelotta Dec 28, 2015
cd3c48d
rtc test
ernesto-g Dec 29, 2015
763646f
[EDU-CIAA-NXP] Remove warnings (partial)
martinribelotta Dec 29, 2015
6b6486a
[EDU-CIAA-NXP] Remove warnings (partial)
martinribelotta Dec 29, 2015
09037e7
Merge branch 'master' of github.com:martinribelotta/micropython
martinribelotta Dec 29, 2015
22427a6
[EDU-CIAA-NXP] Clean Makefile and remove unnecesary files
martinribelotta Dec 29, 2015
bf57d79
[EDU-CIAA-NXP] PSeudo random number generator uos.urandom
martinribelotta Dec 29, 2015
84d7cfe
rtc test
ernesto-g Dec 30, 2015
aa171cf
Merge https://github.com/micropython/micropython
martinribelotta Dec 30, 2015
4f6dbd1
[EDU-CIAA-NXP] Entropy pool fix
martinribelotta Dec 31, 2015
9b82196
Merge https://github.com/micropython/micropython
martinribelotta Dec 31, 2015
b977e24
rtc module ok
ernesto-g Dec 31, 2015
6528ed9
rtc module ok
ernesto-g Dec 31, 2015
5005a2e
rtc module ok
ernesto-g Dec 31, 2015
3d1ecbd
rtc alarm
ernesto-g Jan 2, 2016
6294116
Merge branch 'rtc' of git://github.com/ernesto-g/micropython
martinribelotta Jan 2, 2016
eb2535a
Merge https://github.com/micropython/micropython
martinribelotta Jan 3, 2016
3ab2657
[EDU-CIAA-NXP] Incompatible type pointer of modpybtimer and ciaa_help…
martinribelotta Jan 3, 2016
22a61f0
[EDU-CIAA-NXP] Remove warnings and do more strict compliations flags
martinribelotta Jan 5, 2016
7805c59
Merge branch 'master' of https://github.com/micropython/micropython
martinribelotta Jan 5, 2016
42bd752
[EDU-CIAA-NXP] SPI write_readinto and readinto implementation (for in…
martinribelotta Jan 6, 2016
de18397
utime module added
ernesto-g Jan 17, 2016
5537835
Merge pull request #15 from ernesto-g/utime
martinribelotta Jan 18, 2016
b1d50df
i2c board support
ernesto-g Jan 29, 2016
c2fe36d
i2c board ok
ernesto-g Jan 31, 2016
d1ca497
i2c module
ernesto-g Feb 1, 2016
e0fd231
i2c module OK
ernesto-g Feb 3, 2016
70da36d
Merge pull request #16 from ernesto-g/i2c
martinribelotta Feb 3, 2016
4e3b441
[EDU-CIAA-NXP] Flash FS erase, WFI on stdin read
martinribelotta Feb 8, 2016
0478476
[EDU-CIAA-NXP] Add frozen directory
martinribelotta Feb 8, 2016
6f21d9b
modbus module test
ernesto-g Feb 18, 2016
f32c9ff
modbus with frozen module. test2
ernesto-g Feb 18, 2016
d201178
[EDU-CIAA-NXP] Enable bigint
martinribelotta Feb 21, 2016
0ff2836
modbus function 5 rtu tx ok
ernesto-g Feb 22, 2016
396af11
modbus rtu rx ok
ernesto-g Feb 22, 2016
c15fea1
reception ok
ernesto-g Feb 23, 2016
b4bab90
reception ok
ernesto-g Feb 23, 2016
ba47638
responses validation ok
ernesto-g Feb 25, 2016
d3fdfd5
modbus RTU OK
ernesto-g Feb 26, 2016
d0b7c92
modbus ascii test1
ernesto-g Feb 27, 2016
97e3aa4
modbus ascii ok
ernesto-g Feb 27, 2016
c9f2576
slave test
ernesto-g Mar 1, 2016
f3fbf65
Modbus module minimized
ernesto-g Mar 6, 2016
06f2670
modbus slave f3,f4 and f6 ok
ernesto-g Mar 12, 2016
f3a42a1
modbus module ok
ernesto-g Mar 13, 2016
59f8645
frozen structure modified. make-frozen tool modified for .py files only
ernesto-g Mar 18, 2016
fcb25f5
readme (incomplete)
ernesto-g Mar 19, 2016
556d66f
modbus slave: receive method return vale. Readmes updated
ernesto-g Mar 25, 2016
741be9f
frozen merged to master
ernesto-g Apr 3, 2016
69b9f2b
unit test library implemented. 'make test' command implemented
ernesto-g Apr 3, 2016
b5049cd
unittest python module beta
ernesto-g Apr 4, 2016
c399e98
unittest statistics
ernesto-g Apr 5, 2016
6e2a93d
first tests: leds, switches and uart (lastone incomplete)
ernesto-g Apr 10, 2016
46c83a5
uart0 buffer index bug fixed
ernesto-g Apr 10, 2016
7507b4c
uart rs232 test ok
ernesto-g Apr 11, 2016
c160bc9
eeprom tests ok
ernesto-g Apr 17, 2016
082903b
test eeprom with mphal
ernesto-g Apr 17, 2016
c375aa3
test dac ok
ernesto-g Apr 17, 2016
4887401
adc test
ernesto-g Apr 24, 2016
90ae091
gpio test ok
ernesto-g Apr 25, 2016
c371e7d
python tests architecture ok
ernesto-g May 1, 2016
b7b865e
python leds test
ernesto-g May 29, 2016
2e1a179
python switches tests
ernesto-g Jun 5, 2016
3d9960c
python tests for uart and eeprom
ernesto-g Jun 19, 2016
6148151
tests dac
ernesto-g Jun 19, 2016
e47095f
Python ADC tests
ernesto-g Jun 25, 2016
722d65e
python tests gpio ok
ernesto-g Jun 25, 2016
f8e8512
python tests 485 OK
ernesto-g Jun 26, 2016
b2f1a4c
Merge branch 'frozen' of https://github.com/ernesto-g/micropython int…
martinribelotta Jul 3, 2016
a13c730
Merge branch 'ernesto-g-frozen'
martinribelotta Jul 3, 2016
3aaf97f
timers C tests OK
ernesto-g Jul 3, 2016
8db441c
tests python timers ok
ernesto-g Jul 3, 2016
c325340
tests python timers ok
ernesto-g Jul 3, 2016
73b7eba
test rs845 ok. bug fix rs485 packet mode
ernesto-g Jul 10, 2016
9213f74
Licenses for testing code. rs485 echo terminal. Readme with tests
ernesto-g Jul 10, 2016
112a3fc
Merge pull request #18 from ernesto-g/testing
martinribelotta Jul 23, 2016
438192c
uart module: rx char fix for high speed. Modbus module signed support…
ernesto-g Sep 12, 2016
8aca879
Merge pull request #19 from ernesto-g/bugfixes2
martinribelotta Sep 13, 2016
116773e
license updates. led and switch module using mp_hal
ernesto-g Oct 15, 2016
97a7da4
testing: echo terminal changed port number
ernesto-g Oct 15, 2016
4ad9baf
Merge pull request #20 from ernesto-g/cese
martinribelotta Oct 31, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
155 changes: 155 additions & 0 deletions ciaa-nxp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
include ../py/mkenv.mk

# qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h

# include py core make definitions
include ../py/py.mk
LD=$(CROSS_COMPILE)gcc

CROSS_COMPILE = arm-none-eabi-

INC = -I.
INC += -I..
INC += -I../stmhal
INC += -I../teensy
INC += -I../lib/mp-readline
INC += -I../lib/timeutils
INC += -Iboard_ciaa_edu_4337/inc/ -Ilpc_chip_43xx/inc/
INC += -I$(BUILD)

COPT += -DCORE_M4 -D__USE_LPCOPEN -D__USE_NEWLIB

ARCH_FLAGS = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard
CFLAGS_CORTEX_M4 = $(ARCH_FLAGS) -fsingle-precision-constant -Wdouble-promotion -fshort-enums
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)

#Debugging/Optimization
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -ggdb
else
CFLAGS += -Os -DNDEBUG
endif

LDFLAGS = $(ARCH_FLAGS) -nostdlib -T ciaa_lpc4337.ld -Wl,-Map=$@.map -Wl,--cref
LIBS =

SRC_C = \
main.c \
sysinit.c \
system.c \
cr_startup_lpc43xx.c \
ciaanxp_mphal.c \
ciaa_help.c \
bootSys.c \
lpc43_diskio.c \
lpc43_flash.c \
lpc43_storage.c \
ffconf.c \
moduos.c \
modutime.c \
modpyb.c \
modpybled.c \
modpybswitch.c \
modpybuart.c \
modpybpin.c \
modpybextint.c \
modpybdac.c \
modpybtimer.c \
modpybpwm.c \
modpybadc.c \
modpybkeyboard.c \
modpyblcd44780u.c \
modpybeeprom.c \
modpybspi.c \
modpybrtc.c \
modpybi2c.c \
lib/fatfs/ff.c \
lib/fatfs/option/ccsbcs.c \
lib/mp-readline/readline.c \
lib/timeutils/timeutils.c \
lib/utils/pyexec.c \
stmhal/file.c \
stmhal/import.c \
stmhal/input.c \
stmhal/lexerfatfs.c \
stmhal/pybstdio.c \
stmhal/bufhelper.c \
$(wildcard lpc_chip_43xx/src/*.c) \
$(wildcard board_ciaa_edu_4337/src/*.c) \
$(wildcard board_ciaa_edu_4337/src/ponchos/*.c)

SRC_S = \
# startup_stm32f40xx.s \
gchelper.s \

OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(SRC_S:.s=.o))

all: $(BUILD)/firmware.elf

# Frozen ####################################################################

OBJ += $(BUILD)/frozen-files.o
MAKE_FROZEN = tools/make-frozen.py

ifeq ($(FROZEN_DIR),)
FROZEN_DIR = frozen
endif

$(BUILD)/frozen-files.o: $(BUILD)/frozen-files.c
$(call compile_c)

$(BUILD)/frozen-files.c: $(shell find ${FROZEN_DIR} -type f)
@$(ECHO) "Creating $@"
$(Q)$(PYTHON) $(MAKE_FROZEN) $(FROZEN_DIR) > $@

# Frozen ####################################################################

$(BUILD)/firmware.elf: $(OBJ)
$(ECHO) "LINK $@"
$(Q)$(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
$(Q)$(SIZE) -A -x $@

$(BUILD)/firmware.bin: $(BUILD)/firmware.elf
$(Q)$(CROSS_COMPILE)objcopy -v -O binary $< $@

PHONY: debug openocd download erase erase_fs

download: $(BUILD)/firmware.bin
@openocd -f ciaa-nxp.cfg \
-c "init" \
-c "halt 0" \
-c "flash write_image erase unlock $^ 0x1A000000 bin" \
-c "reset run" \
-c "shutdown"

fsdownload: $(BUILD)/fs.bin
@openocd -f ciaa-nxp.cfg \
-c "init" \
-c "halt 0" \
-c "flash write_image erase unlock $^ 0x1B000000 bin" \
-c "reset run" \
-c "shutdown"

erase:
@openocd -f ciaa-nxp.cfg \
-c "init" -c "halt 0" -c "flash erase_sector 0 0 last" -c "shutdown"

erase_fs:
@openocd -f ciaa-nxp.cfg \
-c "init" -c "halt 0" -c "flash erase_sector 1 0 last" -c "shutdown"

openocd:
@openocd -f ciaa-nxp.cfg

debug: $(BUILD)/firmware.elf
$(CROSS_COMPILE)gdb $(BUILD)/firmware.elf -ex "target remote :3333" -ex "mon reset halt" -ex "load"


test: CFLAGS += -DTESTING

test: export MP_INCLUDE_TESTS = true

test: all

include ../py/mkrules.mk
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy