Got the SSL example for ADSP-21469 EZKIT, can someone port it to ADSP-21489 ezkit?
KCC's Quizzes AQQ305 about a mutual exponentiation equation
1. Quote of the month: "A train station is where a train stops. A bus station is where a bus stops. I have a work station on my desk, so..." - unknown
2. Quiz AQQ305 about finding a mutual exponential equation
Good luck, and try to be among the
View All
October Monthly Blog Quiz! Read the blog, take the quiz, and you could win a gift card
Finding Your Circuit Chi — EMC Quiz!
Think you know EMC? Test your knowledge with our 5-question quiz!
Read the blog first, then take the challenge: Finding Your Circuit Chi
Every current flowing creates electromagnetic fields.
Strong EMC design
View All
Got the SSL example for ADSP-21469 EZKIT, can someone port it to ADSP-21489 ezkit?
Are you looking for SPI or PROM? I did the SPI one a long time ago, which should serve as a good template for you to do the parallel one. You can find it here: Help on ADSP-21489 firmware update via RS-232
Regards,
Craig.
Thanks. It is the answer.
I refered to the EE-345 and thead in EZ:
https://ez.analog.com/message/121089#121089
but failed to run on ADSP-21489 EZKIT.
1) LED image programmed into on-board SPI flash, say offset 0x10000
use default boot kernel.
2) SSL image programmed into on-board SPI flash, say offset 0x0
use default boot kernel
Expect to run SSL firstly after power reset, then the customized SSL will load LED image from SPI flash and should run successful.
Attached the projects I was used for test above. Please extend your help to check what is wrong or anything missed.
BTW, I was using EZ-BOARD 0.1, VisualDSP++5.1.1
Hi Robin,
One benefit of the way this example is written is that you can debug the behaviour by running the SSL code in the IDDE. Simply load it, set a breakpoint at line 59 in "Boot_Kernel.asm", and check the values of R8, R2 and R3 make sense (Block Type - a value between 0x0 and 0xB, Byte Count, and Destination Address - which should obviously match up with the SHARC memory map).
Running to that breakpoint at each step lets you check that the data being read makes sense. You can also determine whether, perhaps, part of your code being downloaded is overwriting your custom kernel (which I would suspect is the most likely case - take a look at this specific message in the thread you linked above for a detailed explanation, as your LDF definitely does not avoid this scenario).
Regards,
Craig.
Hi Robin,
Please find the attached project files, on which one I have ported the ADSP-21469 SSL project to work with ADSP-21489 processor. I have tested the same code in ADSP-21489 EZ-Kit and observed that it is working successfully.
There are two projects in the attachments, 489_SSL code and a LED Blink code (Blink1). The procedure to run the Led blink code using SSL is given below.
While booting, the SSL code expected to run first, then the customized SSL will load blink1(LED blink code) image from SPI flash and should run successfully.
Please let me know if you face any issue regarding this.
Thanks and Regards,
Jithul
Hi Jithul,
Thanks, it works with your assembly code(blink1), but not works if use a c code(attached LED project). May you investigate further to identify root cause of the SSL failure?
robin
Hi Robin,
As mentioned in the EE-345 application note, please ensure that the memory range (256 instructions) being used by the modified boot kernel subroutine is reserved and not used by the application being loaded. This is because the modified boot kernel no longer resides in the IVT. Thus, it may be overwritten at any time (even before the final_init section starts executing). So kindly modify the Linker file accordingly, and find the below screenshot for a reference.
I have attached a C code (LED_BLINK_C) which have been tested and verified with ADSP-21489 EZ-Kit.
Regards,
Jithul
noted with thanks. robin
How is it to be done in CCES? The LDF is quite different.
CCES LDF
mem_iv_code { TYPE(PM RAM) START(0x0008C000) END(0x0008C0A7) WIDTH(48) }
mem_block0_nwco { TYPE(PM RAM) START(0x0008C2A8) END(0x0008C2FF) WIDTH(48) }
mem_block0_sw16 { TYPE(SW RAM) START(0x00124C00) END(0x0013AFFF) WIDTH(16) }
mem_iv_code can NOT be moved, otherwise the program won't run. I tried many configurations but still have trouble. More details of my problem is here Program crashing if loaded by bootloader