Comments (3)
Bad idea use size_t every where, int was very bad.
size_t designed to address host memory size, but this struct device contain external flash memory size.
For example, off_t is used to address some disk/storage offset/size, and sizeof(off_t) not depend on x32/x64 cpu arch.
TL866 uses 24 bit address, so uint32_t - is OK for addresses and flash size (in db - struct device).
get_file_size() - off_t!!!
compare_memory() - size_t - OK
other size_t - ok, it is for in app mem calculations.
from minipro.
Are there any other places where I shouldn't be using size_t besides the type for get_file_size()?
from minipro.
struct device
and all other places where "size" - mean size/offset for flash
from minipro.
Related Issues (20)
- New Programmer: TL866II Plus HOT 14
- Issues with newer firmware? HOT 3
- 1.8V device adapter support HOT 1
- Few documentation about TL866 and comments in code HOT 6
- Re-reverse-engineering the device database HOT 15
- Intel HEX output format needed HOT 3
- New TL866II Plus Support HOT 2
- Possible abandonment of Github HOT 2
- CD4028 CMOS IC check HOT 1
- With firmware versions after 6.71 mini pro doesn't work. HOT 4
- Winbond W27C512 64k EEPROM Device ID Mismatch HOT 4
- is this abandoned ? HOT 1
- After upgrading programmer to V03.2.86, code no longer works HOT 1
- missing "typedef" HOT 1
- I can't seem to write anything or read anything from the programmer, but it recognises it. LIBUSB_ERROR_NO_DEVICE HOT 1
- How to test an SRAM chip
- udev files put in the wrong place for local compilations HOT 5
- Merge in changes from https://github.com/rozhuk-im/minipro HOT 7
- Support for ATmega8/16/32U series wanted HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minipro.