gohai / dsbrut Goto Github PK
View Code? Open in Web Editor NEWArduino-like prototyping for the Nintendo DS (Slot-1)
Home Page: http://dsbrut.sukzessiv.net/
Arduino-like prototyping for the Nintendo DS (Slot-1)
Home Page: http://dsbrut.sukzessiv.net/
Hi any tutorials going in 2021? I tried to run the make file but I get the following:
`make -C arm7
make[1]: Entering directory '/opt/devkitpro/examples/nds/term/arm7'
template.c
linking term.arm7.elf
built ... term.arm7
make[1]: Leaving directory '/opt/devkitpro/examples/nds/term/arm7'
make -C arm9
make[1]: Entering directory '/opt/devkitpro/examples/nds/term/arm9'
bt.c
C:/devkitPro/examples/nds/term/arm9/source/bt.c: In function 'bt_scan':
C:/devkitPro/examples/nds/term/arm9/source/bt.c:317:5: warning: 'strncpy' output may be truncated copying 12 bytes from a string of length 47 [-Wstringop-truncation]
317 | strncpy(devices[num_devices].addr, line, 12);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/bt.c:329:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
329 | strncpy(devices[num_devices].cod, end+1, strlen(end+1)-2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/bt.c:329:46: note: length computed here
329 | strncpy(devices[num_devices].cod, end+1, strlen(end+1)-2);
| ^~~~~~~~~~~~~
main.c
C:/devkitPro/examples/nds/term/arm9/source/main.c: In function 'main':
C:/devkitPro/examples/nds/term/arm9/source/main.c:77:11: warning: '~' on a boolean expression [-Wbool-operation]
77 | echo = ~echo;
| ^
C:/devkitPro/examples/nds/term/arm9/source/main.c:77:11: note: did you mean to use logical not?
77 | echo = ~echo;
| ^
| !
C:/devkitPro/examples/nds/term/arm9/source/main.c:83:24: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32' {aka 'long unsigned int'} [-Wformat=]
83 | iprintf("\nsetting %u bps..", bps_list[bps_list_index]);
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint32 {aka long unsigned int}
| %lu
C:/devkitPro/examples/nds/term/arm9/source/main.c:101:25: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=]
101 | sprintf(tmstr, "%010u", (uint32)tm);
| ~~~~^ ~~~~~~~~~~
| | |
| | long unsigned int
| unsigned int
| %010lu
C:/devkitPro/examples/nds/term/arm9/source/main.c:37:9: warning: variable 'spi_rate' set but not used [-Wunused-but-set-variable]
37 | uint32 spi_rate;
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/main.c:103:5: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
103 | strncpy(fn+8, ".log", 4);
| ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/main.c:102:5: warning: 'strncpy' output may be truncated copying 8 bytes from a string of length 8 [-Wstringop-truncation]
102 | strncpy(fn, tmstr+2, 8);
| ^~~~~~~~~~~~~~~~~~~~~~~
spi_driver.c
In file included from C:/devkitPro/libnds/include/nds.h:238,
from C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:12:
C:/devkitPro/libnds/include/nds/card.h:98:23: error: expected identifier before '(' token
98 | #define CARD_SPI_BUSY (1<<7)
| ^
C:/devkitPro/examples/nds/term/arm9/source/spi.h:20:3: note: in expansion of macro 'CARD_SPI_BUSY'
20 | CARD_SPI_BUSY = 1
| ^~~~~~~~~~~~~
In file included from C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:15:
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c: In function 'read_cardSPI':
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:26:29: error: 'CARD_CR1' undeclared (first use in this function); did you mean 'CARD_WR'?
26 | #define CARD_SPI_BUSY_TEST (CARD_CR1 & CARD_SPI_BUSY_BIT)
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:64:9: note: in expansion of macro 'CARD_SPI_BUSY_TEST'
64 | if ( !CARD_SPI_BUSY_TEST) {
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:26:29: note: each undeclared identifier is reported only once for each function it appears in
26 | #define CARD_SPI_BUSY_TEST (CARD_CR1 & CARD_SPI_BUSY_BIT)
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:64:9: note: in expansion of macro 'CARD_SPI_BUSY_TEST'
64 | if ( !CARD_SPI_BUSY_TEST) {
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:65:18: error: 'CARD_EEPDATA' undeclared (first use in this function); did you mean 'CARD_SEC_DAT'?
65 | *read_byte = CARD_EEPDATA;
| ^~~~~~~~~~~~
| CARD_SEC_DAT
In file included from C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:15:
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c: In function 'readBlocking_cardSPI':
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:26:29: error: 'CARD_CR1' undeclared (first use in this function); did you mean 'CARD_WR'?
26 | #define CARD_SPI_BUSY_TEST (CARD_CR1 & CARD_SPI_BUSY_BIT)
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:29:38: note: in expansion of macro 'CARD_SPI_BUSY_TEST'
29 | #define CARD_SPI_WAIT_IDLE() while ( CARD_SPI_BUSY_TEST);
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:86:3: note: in expansion of macro 'CARD_SPI_WAIT_IDLE'
86 | CARD_SPI_WAIT_IDLE();
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:88:16: error: 'CARD_EEPDATA' undeclared (first use in this function); did you mean 'CARD_SEC_DAT'?
88 | *read_byte = CARD_EEPDATA;
| ^~~~~~~~~~~~
| CARD_SEC_DAT
In file included from C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:15:
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c: In function 'write_cardSPI':
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:26:29: error: 'CARD_CR1' undeclared (first use in this function); did you mean 'CARD_WR'?
26 | #define CARD_SPI_BUSY_TEST (CARD_CR1 & CARD_SPI_BUSY_BIT)
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:109:9: note: in expansion of macro 'CARD_SPI_BUSY_TEST'
109 | if ( !CARD_SPI_BUSY_TEST) {
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:121:5: error: 'CARD_EEPDATA' undeclared (first use in this function); did you mean 'CARD_SEC_DAT'?
121 | CARD_EEPDATA = byte;
| ^~~~~~~~~~~~
| CARD_SEC_DAT
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c: In function 'disable_cardSPI':
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:186:3: error: 'CARD_CR1' undeclared (first use in this function); did you mean 'CARD_WR'?
186 | CARD_CR1 = 0;
| ^~~~~~~~
| CARD_WR
make[2]: *** [/opt/devkitpro/devkitARM/base_rules:85: spi_driver.o] Error 1
make[1]: *** [Makefile:99: build] Error 2
make[1]: Leaving directory '/opt/devkitpro/examples/nds/term/arm9'
make: *** [Makefile:35: arm9/term.elf] Error 2
C:\devkitPro\examples\nds\term>`
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.