# The parameter is incorrect Compilation error AMB82 Mini

**URL:** <https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365>\
**Category:** SDK\
**Tags:** evb-amb82\
**Created:** [October 31, 2023, 2:06pm UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365 "2023-10-31T14:06:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacques\_Mulder](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/jacques_mulder/32/1651_2.png) [@Jacques\_Mulder](https://forum.amebaiot.com/u/Jacques_Mulder)\
**Post date:** [October 31, 2023, 2:06pm UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/1 "2023-10-31T14:06:17Z")

</div>

Hi All

I’m getting the below error with a blank sketch with empty setup and loop functions. I have the RTL8735B AMB82 Mini board

> Compilation error: fork/exec C:\Users\advic\AppData\Local\Arduino15\packages\realtek\tools\ameba\_pro2\_toolchain\1.0.1-p1/bin/arm-none-eabi-ar.exe: The parameter is incorrect.

Can anyone point me in the right direction with this compilation error  
Thanks

---

<div class="post-metadata">

**Author:** ![dakamaster](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/dakamaster/32/1744_2.png) [@dakamaster](https://forum.amebaiot.com/u/dakamaster)\
**Post date:** [November 1, 2023, 9:47am UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/2 "2023-11-01T09:47:17Z")

</div>

Error occurred while unzipping sdk toolchain. Suspected that the toolchain was not download correctly. Maybe you can try to erase folder under path: `C:\Users\advic\AppData\Local\Arduino15\packages\realtek` and download the AMB82-MINI sdk from Arduino IDE again.  
Thank you

---

<div class="post-metadata">

**Author:** ![Jacques\_Mulder](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/jacques_mulder/32/1651_2.png) [@Jacques\_Mulder](https://forum.amebaiot.com/u/Jacques_Mulder)\
**Post date:** [November 1, 2023, 12:46pm UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/3 "2023-11-01T12:46:55Z")

</div>

Hi thanks

I deleted the Realtek folder, rebooted computer, and reinstalled ameba into board manager, this was the install log

> Downloading packages  
> realtek:ameba\_pro2\_toolchain@1.0.1-p1  
> realtek:ameba\_pro2\_toolchain2@1.0.1-p2  
> [realtek:ameba\_pro2\_tools@1.2.9.1](mailto:realtek:ameba_pro2_tools@1.2.9.1)  
> realtek:AmebaPro2@4.0.4  
> Installing realtek:ameba\_pro2\_toolchain@1.0.1-p1  
> Configuring tool.  
> realtek:ameba\_pro2\_toolchain@1.0.1-p1 installed  
> Installing realtek:ameba\_pro2\_toolchain2@1.0.1-p2  
> Configuring tool.  
> realtek:ameba\_pro2\_toolchain2@1.0.1-p2 installed  
> Installing [realtek:ameba\_pro2\_tools@1.2.9.1](mailto:realtek:ameba_pro2_tools@1.2.9.1)  
> Configuring tool.  
> [realtek:ameba\_pro2\_tools@1.2.9.1](mailto:realtek:ameba_pro2_tools@1.2.9.1) installed  
> Installing platform realtek:AmebaPro2@4.0.4  
> Configuring platform.  
> Platform realtek:AmebaPro2@4.0.4 installed

Then closed Arduino IDE and relaunched it

And below is the current compilation error for the blank setup and loop file

> exit status 0xc0000005  
> Compilation error: exit status 0xc0000005

Your suggestion very much appreciated

---

<div class="post-metadata">

**Author:** ![Jacques\_Mulder](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/jacques_mulder/32/1651_2.png) [@Jacques\_Mulder](https://forum.amebaiot.com/u/Jacques_Mulder)\
**Post date:** [November 2, 2023, 8:04am UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/4 "2023-11-02T08:04:58Z")

</div>

Hi  
Here is another clue.  
I’ve tried to compile with Arduino 1.8.16 and got this compile error with a blank setup and loop test file

> exec: “/bin/arm-none-eabi-g++”: file does not exist  
> Error compiling for board AMB82-MINI.

Hope we can sort this out, I’m stuck

---

<div class="post-metadata">

**Author:** ![dakamaster](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/dakamaster/32/1744_2.png) [@dakamaster](https://forum.amebaiot.com/u/dakamaster)\
**Post date:** [November 6, 2023, 3:10am UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/5 "2023-11-06T03:10:26Z")

</div>

Hi @Jacques_Mulder ,

Error `0xC0000005` in SDK-v4.0.4 is caused by stack overflow in the ino\_validation.exe or nn\_model\_update.exe tools running on some of the Windows machines. Now this bug has been fixed via: [Arduino tool update (#144) · ambiot/ambpro2\_arduino@856abb8 · GitHub](https://github.com/ambiot/ambpro2_arduino/commit/856abb837b36fe1f749c0ded51032c8af5ac6f09).

Currently the fix is on the `/dev` branch, if you wish to continuing using released version `v4.0.4` for your development, you many download the windows executables tools and replace them under `C:\Users\advic\AppData\Local\Arduino15\packages\realtek\tools\ameba_pro2_tools\1.x.x` upon reinstall your Arduino SDK environment.

> Note:  
> In order to set up a clear environment without causing any compilation issues from toolchain folder, I suggest to delete everything under `C:\Users\advic\AppData\Local\Arduino15\packages\realtek\tools` and `C:\Users\advic\AppData\Local\Arduino15\packages\realtek\hardware` before download a new SDK from Arduino IDE.

Hope it could help. Thanks.

---

<div class="post-metadata">

**Author:** ![Jacques\_Mulder](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/jacques_mulder/32/1651_2.png) [@Jacques\_Mulder](https://forum.amebaiot.com/u/Jacques_Mulder)\
**Post date:** [November 10, 2023, 8:45am UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/6 "2023-11-10T08:45:45Z")

</div>

Hi,

Ok great, so do you mean this is a known issue with 4.0.4  
Because in that case it might be easier just to install earlier version instead of trying to fix 4.0.4

---

<div class="post-metadata">

**Author:** ![dakamaster](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/dakamaster/32/1744_2.png) [@dakamaster](https://forum.amebaiot.com/u/dakamaster)\
**Post date:** [November 10, 2023, 9:58am UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/7 "2023-11-10T09:58:31Z")

</div>

Hi,  
Yes. Alternatively, you may temporarily use the link provided below to install /dev branch Arduino sdk: [https://github.com/ambiot/ambpro2\_arduino/raw/dev/Arduino\_package/package\_realtek\_amebapro2\_early\_index.json](https://github.com/ambiot/ambpro2_arduino/raw/dev/Arduino_package/package_realtek_amebapro2_early_index.json)  
This issue has been fixed on /dev.

Thanks.

---

<div class="post-metadata">

**Author:** ![Jacques\_Mulder](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/jacques_mulder/32/1651_2.png) [@Jacques\_Mulder](https://forum.amebaiot.com/u/Jacques_Mulder)\
**Post date:** [November 13, 2023, 12:22pm UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/8 "2023-11-13T12:22:53Z")

</div>

Hi

For the dev install on Arduino 2.2.1 Win10\>

> Downloading packages  
> realtek:ameba\_pro2\_toolchain@1.0.1-p1  
> realtek:ameba\_pro2\_toolchain2@1.0.1-p2  
> realtek:ameba\_pro2\_tools@1.2.12  
> realtek:AmebaPro2@4.0.5-build20231108  
> Installing realtek:ameba\_pro2\_toolchain@1.0.1-p1  
> Configuring tool.  
> realtek:ameba\_pro2\_toolchain@1.0.1-p1 installed  
> Installing realtek:ameba\_pro2\_toolchain2@1.0.1-p2  
> Configuring tool.  
> realtek:ameba\_pro2\_toolchain2@1.0.1-p2 installed  
> Installing realtek:ameba\_pro2\_tools@1.2.12  
> Configuring tool.  
> realtek:ameba\_pro2\_tools@1.2.12 installed  
> Installing platform realtek:AmebaPro2@4.0.5-build20231108  
> Configuring platform.  
> Platform realtek:AmebaPro2@4.0.5-build20231108 installed

I’m still getting these compile errors

> fork/exec C:\Users\advic\AppData\Local\Arduino15\packages\realtek\tools\ameba\_pro2\_toolchain\1.0.1-p1/bin/arm-none-eabi-ar.exe: The parameter is incorrect.
> 
> Compilation error: fork/exec C:\Users\advic\AppData\Local\Arduino15\packages\realtek\tools\ameba\_pro2\_toolchain\1.0.1-p1/bin/arm-none-eabi-ar.exe: The parameter is incorrect.

For Blank Test Sketch

> void setup() {
> 
> }
> 
> void loop() {
> 
> }

---

<div class="post-metadata">

**Author:** ![Jacques\_Mulder](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/jacques_mulder/32/1651_2.png) [@Jacques\_Mulder](https://forum.amebaiot.com/u/Jacques_Mulder)\
**Post date:** [November 13, 2023, 12:47pm UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/9 "2023-11-13T12:47:54Z")

</div>

HI

On Version 4.0.0 for dev I get this compilation error

> fork/exec C:\Users\advic\AppData\Local\Arduino15\packages\realtek\tools\ameba\_pro2\_tools\1.0.6/prebuild\_windows.exe: The parameter is incorrect.
> 
> Compilation error: fork/exec C:\Users\advic\AppData\Local\Arduino15\packages\realtek\tools\ameba\_pro2\_tools\1.0.6/prebuild\_windows.exe: The parameter is incorrect.

---

<div class="post-metadata">

**Author:** ![dakamaster](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/dakamaster/32/1744_2.png) [@dakamaster](https://forum.amebaiot.com/u/dakamaster)\
**Post date:** [November 14, 2023, 1:11am UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/10 "2023-11-14T01:11:43Z")

</div>

> [@Jacques\_Mulder](#):
>
> 4.0.5-build20231108

Hi @Jacques_Mulder,

For errors occurring in `\ameba_pro2_toolchain\1.0.1-p1/bin/` folder, mostly related to your tool chain environment was not unzipped correctly. Can you please take a screenshot of your `\ameba_pro2_toolchain` folder and send it here again?

![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/3/36d7c4ab18bce25eea119c3c321d854d2f351cd3.png)

Thanks

---

<div class="post-metadata">

**Author:** ![dakamaster](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/dakamaster/32/1744_2.png) [@dakamaster](https://forum.amebaiot.com/u/dakamaster)\
**Post date:** [November 14, 2023, 1:14am UTC](https://forum.amebaiot.com/t/the-parameter-is-incorrect-compilation-error-amb82-mini/2365/11 "2023-11-14T01:14:00Z")

</div>

Hi,  
Please do not revert back to old version since the tools in v4.0.0 might not be fully supported yet.  
Thanks
