nulllaborg / arduino_nulllab Goto Github PK
View Code? Open in Web Editor NEWThis project forked from lgtmcu/larduino_hsp
Hardware support package for LGT AVR Compatible Chips
License: MIT License
This project forked from lgtmcu/larduino_hsp
Hardware support package for LGT AVR Compatible Chips
License: MIT License
When clock source select 32M and CPU set 32M, if use MsTImer2 or MsTimer3 library, serial communication abnormal.
set_sleep_mode(SLEEP_MODE_STANDBY);
sleep_enable();
sleep_mode();
Serial.println(millis());
delay(100);
set_sleep_mode(SLEEP_MODE_STANDBY);
sleep_mode();
Serial.println("pass");
delay(1000);
inSleep();
11500
pass
12801
pass
14101
pass
15401
pass
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
Hi there. I've tried to compile some examples from the 'pwm' library and failed.
To Reproduce
Just open the 'pwm_d5d6_duo0.ino' or 'pwm_d5d6_solo.ino' or 'pwm_d9d10_duo1.ino' example and try to compile it.
IDE output:
In file included from C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.cpp:1:0:
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:8:1: error: 'uint16_t' does not name a type; did you mean 'char16_t'?
uint16_t pwmFrequency(uint8_t, uint32_t);
^~~~~~~~
char16_t
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:9:1: error: 'uint32_t' does not name a type; did you mean 'char32_t'?
uint32_t pwmResolution(uint8_t, uint8_t);
^~~~~~~~
char32_t
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:14: error: variable or field 'pwmMode' declared void
void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
^~~~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:14: error: 'uint8_t' was not declared in this scope
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:27: error: 'uint8_t' was not declared in this scope
void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
^~~~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:42: error: 'uint8_t' was not declared in this scope
void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
^~~~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:73: error: 'uint8_t' was not declared in this scope
void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
^~~~~~~
exit status 1
Compilation error: exit status 1
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Hi Community
On referring the LQF8 Nano schematic https://github.com/nulllaborg/arduino_nulllab/blob/master/doc/LGT328P-LQFP32-Nano.pdf
I see the pins for ISP programming not matching the ones on the original 328P
Please let me know the wiring connections as well as the software settings needed to be done to upload firmware via USBASP which has MISO,MOSI,SCK and RST pins for programming
Help is much appreciated
On cores/lgt8f/ is an object file named start.o but the source file is missing. Where is it possible to find the source file and examine its contents?
Thanks in advance,
Guglielmo
If set 32M internal RC and 32M CPU Speed, if use serial port, the 9600bps not working. Only if select 16M CPU Speed.
In 32M internal RC and 32M CPU speed, only 56000 bps baud rate is working.
Describe
in Arduino ide 2.2.x and up the json file must be clear to get last version
solution
{
"packages": [
{
"name": "nulllab avr compatible boards",
"maintainer": "nulllab.org",
"websiteURL": "https://github.com/nulllaborg/arduino_nulllab",
"email": "[email protected]",
"help": {
"online": "www.nulllab.org"
},
"platforms": [
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "2.0.0",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/archive/master.zip",
"archiveFileName": "arduino_nulllab-master.zip",
"checksum": "SHA-256:11a3d90729786cd46ad004b2db70c0b85c2e1b546055947c2fbd12a560528f14",
"size": "7750729",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano/Maker-Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
},
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "1.0.8",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.8/nulllab_arduino-1.0.8.zip",
"archiveFileName": "nulllab_arduino-1.0.8.zip",
"checksum": "SHA-256:644f548ef133271c677270d6331da720fe31aca4976a2123afa3b345a5bd3394",
"size": "2025081",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano/Maker-Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
},
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "1.0.7",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.7/nulllab_arduino-1.0.7.zip",
"archiveFileName": "nulllab_arduino-1.0.7.zip",
"checksum": "SHA-256:55a2fc35f4ba777ef9314e482e1fa9eab4e9aa90122683146b998a9be36c737f",
"size": "2015756",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano/Maker-Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
},
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "1.0.6",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.6/nulllab_arduino-1.0.6.zip",
"archiveFileName": "nulllab_arduino-1.0.6.zip",
"checksum": "SHA-256:123534a51050704de25c3baa35c8c1533708d1d2eded6573835c6522a72f1490",
"size": "2334794",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano/Maker-Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
},
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "1.0.5",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.5/nulllab_arduino-1.0.5.zip",
"archiveFileName": "nulllab_arduino-1.0.5.zip",
"checksum": "SHA-256:7c0e1fae13f5fe91668ef025fdd16110e3244c83df1cdd5737ad93b36336f16c",
"size": "1578846",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano/Maker-Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
},
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "1.0.4",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.4/nulllab_arduino-1.0.4.zip",
"archiveFileName": "nulllab_arduino-1.0.4.zip",
"checksum": "SHA-256:6f173bb6205022f26bb15140bf94f7813e575a10d07a9d67538ebc824c39b233",
"size": "1588177",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano/Maker-Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
},
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "1.0.3",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.3/nulllab_arduino-1.0.3.zip",
"archiveFileName": "nulllab_arduino-1.0.3.zip",
"checksum": "SHA-256:fbff13b98211d6de3987ea9f90794c0fa07950eb46e132561cbb4afafa2b2e5b",
"size": "1575248",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano/Maker-Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
},
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "1.0.2",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.2/nulllab_arduino-1.0.2.zip",
"archiveFileName": "nulllab_arduino-1.0.2.zip",
"checksum": "SHA-256:2efb3f5806dfb995395ebc858ca1998dc74b70063fc168dad064d2dc94f87422",
"size": "3743744",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano/Maker-Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
},
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "1.0.1",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.1/nulllab_arduino-1.0.1.zip",
"archiveFileName": "nulllab_arduino-1.0.1.zip",
"checksum": "SHA-256:04f040d47e1ee28d19e727afef64a2f1d0b7499d35dedc2fc77c7c4e8066d6be",
"size": "3393538",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano/Maker-Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
},
{
"name": "Nulllab AVR Compatible Boards",
"architecture": "avr",
"version": "1.0.0",
"category": "lgt8fx",
"url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.0/nulllab_arduino-1.0.0.zip",
"archiveFileName": "nulllab_arduino-1.0.0.zip",
"checksum": "SHA-256:73914adee0e1364abbfd35e919a7324d22beca7c589474f7e0a26ec62682408d",
"size": "3583176",
"help": {
"online": "https://github.com/nulllaborg/arduino_nulllab/issues"
},
"boards": [
{"name": "Nulllab Mini-Nano"},
{"name": "Nulllab Nano"},
{"name": "Nulllab Mango Uno"},
{"name": "Nulllab Orion"},
{"name": "DIY Boards"}
]
}
],
"tools": []
}
]
}
In Arduino IDE, after using the additional boards manager "https://raw.githubusercontent.com/nulllaborg/arduino_nulllab/master/package_nulllab_boards_index.json",
this is the output content when trying to install "Nulllab AVR Compatible Boards v1.0.2" -->
Downloading packages
nulllab avr compatible boards:[email protected]
Installing platform nulllab avr compatible boards:[email protected]
Failed to install platform: nulllab avr compatible boards:avr.
Error: 13 INTERNAL: Cannot install platform: installing platform nulllab avr compatible boards:[email protected]: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index
It works fine in ArduionoIDE.
This time, we want to use it in PlatformIO.
I'm worried because I don't know how to use it.
Please inquire how to do it.
Thank you.
wiring.c.o (symbol from plugin): In function __vector_9': (.text+0x0): multiple definition of
__vector_9'
libraries\MsTimer2\MsTimer2.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
为开发板 Nulllab Nano 编译时出错。
同样的arduino代码,用来控制595读取eeprom芯片,spi控制595连接eeprom的地址线,lgt8f328p的io连接eeprom的数据pin
使用arduino的spi库,连接3片74hc595,使用spi模式发送地址数据
使用atmega168pa没有问题,使用lgt8f328p的片不行
32M内置晶振 16M频率,串口收发正常
调用 SPI.transfer(addr & 0xff); 方法向595发送数据控制595输出异常
3片595串联,addr=0时候,0-6是low低电平,7是高,后面的也是高。
换了atmega168pa的片之后一切正常,可以正常控制595连接的地址线,读取来芯片的数据
先提交个bug,后面我再试试只用1片595连led看看情况再来反馈
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
when we use mixly on LGT8 board ,the PE port can not be used, can you add the LGT8 surport to the MIXLY in short time.thank you
Describe the bug
in opitboot.c i see this
#if defined (AVR_ATmega328) || defined(AVR_ATmega328P)
// boot_code : jmp to 0x7400 (start of bootloader)
asm(" .section .bootv\n"
"boot_code: .word 0x940c\n"
".word 0x3a00\n");
#else
#if #defined(AVR_ATmega168)
// boot_code : jmp to 0x3c00 (start of bootloader)
asm(" .section .bootv\n"
"boot_code: .word 0x940c\n"
".word 0x1e00\n");
#endif
#endif
i know it can compile to this
but in my project, i cant compile ,dont know why?
U8g2 library only working when use internal 32M RC and 16M CPU Speed
Timer 3 is added to the LGT8F328 comparing with the Atmega328. But the according application about the timer 3 is a rare example. Please add the timer 3 example.thank you very much
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.