|
Post by madzfu on Aug 16, 2020 2:22:46 GMT
Hi Matthew.., I need help, i'm trying to build 2NRFE firmware on Atmel Studio But i got 2 error I hope you can help me Thank You, Madzfu
|
|
|
Post by Admin on Aug 17, 2020 10:51:13 GMT
Hi Madz,
This problem happens when there is not enough data in your application header file.
Probably the code base you have has the EDIS enable flag added, but there is no EDIS flag in your application header file 2NR_FE_CAL.h
Edit the end of the 2NR_FE_CAL.h so the EDIS flag is there as follows:
/* VVTInputResource */\ EH_IO_TMR2,\ /* VVTInputType */\ 0,\ /* EDISEnable */\ 0,\ /* u16CRC16 */\ 0x1234,\ (uint32*)&au32Offsets\
Hope this helps
Matthew
|
|
|
Post by madzfu on Aug 18, 2020 4:10:39 GMT
Hi Matthew, I follow your instruction, and it's work. There is no errors when i build the firmware. After build the firmware, then i programmed the Due with Bossa. I got screwed value at MAP-MATE and CRC Mismatch. Is it if i change all the value at MAP-MATE will make the DUE work fine ? Thank you, Madzfu
|
|
|
Post by Admin on Aug 18, 2020 7:30:50 GMT
Hi Madz, The screwed up values happen when the A2L file does not match the firmware build. The A2L file contains the addresses of all maps, tables, settings etc. To create the A2L file you need to use the ASAM generator tool V1.0.0.1 from here mdac.com.au/support-documents/Just place the tool zipped files within C:\MDAC\ECUHOST\Dev Tools folder. There is a config file alongside the ASAM.exe and the path within needs to point to your project. Just make sure there is only one application header file e.g. 2NR_FE_CAL.h because if you have more than one the ASAM tags within will be duplicated and confuse the tool. Once you build the A2L file correctly and make sure it is in the C:\MDAC\ECUHOST\Database\A2L Databases folder you can link the new ASAM in program settings. Sorry it is slightly complicated but this A2L system is the most flexible and efficient way to tune an ECU! Cheers, Matthew
|
|
|
Post by madzfu on Aug 19, 2020 5:00:31 GMT
Hi Matthew, Thank you for always helping me and always answer everything what i ask. I follow your instruction, but ECUOUT.A2L file only 2kb, and MAP-MATE wouldn't open. I'm totally noob about programming language, but i always try what i can do until it work. Now it's working, after i replaced some new file with old file(file from RabbitECUOpenHAL Trunk Github) like usercal.h&usercal.c - est.h&est.c - lsuh.h&lsuh.c - cem.c&cem.h - temp.c&temp.h, remove edis_8.h and put 2nr_fe_cal.h. Build the project success without errors. After programmed DUE, upload to MAP-MATE with SAMPLE.A2L and GUI Layout Sample.., all values is fine now and without CRCMismatch (CRC is okay now). I think, now i can make some change values at 2nr_fe_cal.h file. Thank You, Madzfu
|
|
|
Post by Admin on Aug 20, 2020 22:04:28 GMT
Hi Madz,
No problem glad you are up and running - now you can make some custom code if you want to.
Please share if you do :-)
Matthew
|
|