free-pdk / free-pdk-examples Goto Github PK
View Code? Open in Web Editor NEWCode Examples for Padauk MCUs using the free-pdk/SDCC toolchain
Code Examples for Padauk MCUs using the free-pdk/SDCC toolchain
Some advance warning: as of current SDCC development version 4.2.10, and for the forthcoming release version 4.3.0, the _sdcc_external_startup
function has been renamed to __sdcc_external_startup
(note the additional underscore at the beginning). See SDCC feature request #859.
This means all the examples in this repository that define a function with the former name will no longer work properly, because the function will not be called. Also, the failure may be entirely transparent, because SDCC may not warn about an unused function.
Perhaps old and new versions of SDCC can be accommodated with some conditional defines?
not exactly sure why but for me I had to do this to get it to work
ROP = (1<<ROP_PA7_CS_SEL_BIT) ;
I know this project is kind of dead, but it's literally the only thing I'm missing, I even got millis + and interrupt working.
All I need is to understand how to read an analog voltage and I'm set :(
Thanks to anyone who replies!
Nobody can freely use the samples and / or contribute to this project when there is no clear LICENSE.
Now that we have a new v1.3 release of the easy-pdk-programmer-software repo (new Firmware and new easypdkprog software), the notes about requiring the development version no longer apply and should be changed/removed.
I think the includes should be structured in a way where they clearly separate system wide includes and local ones.
Right now there are some files like "millis.h" that are in the include root directory and are included with include "". If these are to be used system wide, I would suggest to put them into pdk/ or pdk/util. Otherwise they should reside within the example code directory.
Hi everyone!
I have an issue that how to configure pin A5 as a PRSTB reset pin, i have read datasheet and try it like this but did not work.
uint8_t _sdcc_external_startup(void)
{
PAC &= ~(1<<5);
CLKMD |= (1<<0);
EASY_PDK_INIT_SYSCLOCK_8MHZ(); //use 8MHz sysclock
EASY_PDK_CALIBRATE_IHRC(F_CPU, 5000); //tune SYSCLK to 8MHz @ 4.000V
return 0; //perform normal initialization
}
thank in advance.
It appears there is something broken in SDCC4.4.0
The Serial_HelloWorld example compiles&programs without warnings, but when I run it, there is no output from the serial monitor.
When doing the same with SDCC4.1.0 everything works fine.
I have similar issues with my old code that I cannot get to work with SDCC4.4.0.
Apart from this "silent bug", SDCC4.4.0 also broke compatibility when assembling instructions like t1sn f,z
, which now have to be renamed to t1sn.io f,z
. All in all a very frustrating experience. If one of you has an idea how to fix it, that would be great! Otherwise I suggest adding recommendations to stick with SDCC4.1.0 to the project.
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.