Keine Ahnung wer der Idiot ist:p
schon länger dabei
Offline
Posts: 81
|
|
{done} error: flash memory to small
« on: 09. July 2019, 06:10:56 »
|
|
Hi OM, YL, SWL's today I compile the changed firmware file out of the eclipse development tool without any errors. The file.bin is 614kb and if I want to flash it via usb stick, I get following error code:
error 3 - flash memory to small
Any solution? How to compress? What can I do?
73 Dirk de DL
|
« Last Edit: 12. July 2019, 20:39:29 by MFT » |
Logged
|
|
|
|
|
Keine Ahnung wer der Idiot ist:p
schon länger dabei
Offline
Posts: 81
|
|
Re:error: flash memory to small
« Reply #2 on: 09. July 2019, 07:25:09 »
|
|
Hi Andreas, I'm a hardcore beginner and had now know-how in software development.
Here my informations to the software I use. 1. Java 1.8+ VM (12.1 SDK) 2. GNU Arm Embedded Toolchain (gcc-arm-none-eabi-8-2018-q4-major-mac.tar.bz2) 3. Eclipse IDE for C/C++ Development (2019-06) 4.GNU MCU Eclipse (4.5.1)
I don't change any settings inside Eclipse just check the format in the project to use the right template. I start a new workplace and import again. I do exactly the process y written down and after the bin-file has been created its still 614kb without any changes inside.
|
« Last Edit: 09. July 2019, 07:51:43 by MFT » |
Logged
|
|
|
|
|
Keine Ahnung wer der Idiot ist:p
schon länger dabei
Offline
Posts: 81
|
|
Re:error: flash memory to small
« Reply #4 on: 09. July 2019, 08:21:12 »
|
|
Ok Andreas,
now I reinstall Eclipse and the GNU MUC engine too. Update all and import the zip-file to a new workspace.
I need to debug first, right, to start the "make all" command?
PS: Isn't my passion;) But I give them a tray:)
|
« Last Edit: 09. July 2019, 08:23:47 by MFT » |
Logged
|
|
|
|
|
Keine Ahnung wer der Idiot ist:p
schon länger dabei
Offline
Posts: 81
|
|
Re:error: flash memory to small
« Reply #6 on: 09. July 2019, 08:55:33 »
|
|
Andreas, on macOS the toolchain isn't implemented. I have to copy them into /opt directory manually for eclipse to find automatically.
ok, now I extract the zip-file. If I start command (make all) inside i get this error:
Dirks-MacBook:mchf-eclipse $ make all make: gsed: Command not found make: gsed: Command not found make: gsed: Command not found fatal: not a git repository (or any of the parent directories): .git [CC] basesw/mcHF/Src/startup_stm32f407xx.o make: arm-none-eabi-gcc: No such file or directory make: *** [basesw/mcHF/Src/startup_stm32f407xx.o] Error 1
|
« Last Edit: 09. July 2019, 09:15:28 by MFT » |
Logged
|
|
|
|
|
Keine Ahnung wer der Idiot ist:p
schon länger dabei
Offline
Posts: 81
|
|
Re:error: flash memory to small
« Reply #8 on: 09. July 2019, 09:16:53 »
|
|
512kb, I take a look inside the system info of the model.
PS: Andreas, I just want to make a litte change in the fw for the correct cut-of frequencies and to open (if possible) the rx side put to 4m for listening only. Can y do the canes for me and send me the ready to use fw to flash?!
I#m not a coder and I less my fun in moment ;(
|
« Last Edit: 09. July 2019, 09:22:02 by MFT » |
Logged
|
|
|
|
|
Keine Ahnung wer der Idiot ist:p
schon länger dabei
Offline
Posts: 81
|
|
Re:error: flash memory to small
« Reply #10 on: 09. July 2019, 10:27:53 »
|
|
I buy the Ailuance Retevis HS1plus model here in germany. Don't want to buy a china build, but this is what I get.
The band cut's cosmetic is right, but I want to correct it for region 1. RX on 4m isn't necessary just a mind, is 6m possible?
Thank y to make a test about different version. I take a look for a other older one and try.
Whatever.. is there anybody who can create me the fw for my own use with my litte difference? Thanks!
|
|
Logged
|
|
|
|
DL8EBD
positron Urgestein
Offline
Posts: 1926
|
|
Re:error: flash memory to small
« Reply #11 on: 09. July 2019, 10:50:17 »
|
|
Hello Dirk, I can do it for you.... but I need some time, maybe this evening or tomorrow. okay?
|
|
Logged
|
bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da. vy73 Thomas
|
|
|
Keine Ahnung wer der Idiot ist:p
schon länger dabei
Offline
Posts: 81
|
|
Re:error: flash memory to small
« Reply #12 on: 09. July 2019, 11:48:28 »
|
|
I installed Eclipse 2018-12 version on same gnu-mcu pack out if market. Also gcc-arm-none-eabi-8-2018-q4-major engine but same problem, file is 614kb big ;(
|
|
Logged
|
|
|
|
DB4PLE
positron Urgestein
Offline
Posts: 1278
|
|
Re:error: flash memory to small
« Reply #13 on: 09. July 2019, 11:53:39 »
|
|
Hi,
short version: the Eclipse builds are larger than the makefile builds. So for 512k machines you have to compile using make to get a working binary.
The reason is a combination of two issues: - The Eclipse build system cannot handle the very long command created if we build all sources files together on Windows. So we split the DSP code into a separate library. - The compiler optimization -flto cannot be applied to the library since not all all compiler tool chains can handle this for libraries.
The result is that we get somewhat larger binaries using Eclipse.
|
|
Logged
|
|
|
|
Keine Ahnung wer der Idiot ist:p
schon länger dabei
Offline
Posts: 81
|
|
Re:error: flash memory to small
« Reply #14 on: 09. July 2019, 11:59:42 »
|
|
Ok and is there a fast easy solution for me to handle this here on my system? I just do the basic instructions like the guide.
I also install eclipse on my windows 10 64-bit system, but if I run the debug I get a "to long path error" and it stops at step two. Shit happens;)
|
|
Logged
|
|
|
|